Fix error.

This commit is contained in:
Relintai 2021-12-21 21:57:15 +01:00
parent 5723a11825
commit e3f73103af
3 changed files with 18 additions and 18 deletions

View File

@ -39,7 +39,7 @@ func edit(object):
# make_bottom_panel_item_visible(editor_scene)
if object is WorldGenWorld:
editor_scene.set_mmmaterial(object as WorldGenWorld)
editor_scene.set_wgworld(object as WorldGenWorld)
func make_visible(visible):
if tool_button:

View File

@ -0,0 +1,12 @@
tool
extends PanelContainer
var edited_world
func refresh() -> void:
pass
func set_wgworld(wgw : WorldGenWorld) -> void:
edited_world = wgw
refresh()

View File

@ -1,10 +1,13 @@
[gd_scene format=2]
[gd_scene load_steps=2 format=2]
[node name="Control" type="PanelContainer"]
[ext_resource path="res://addons/world_generator/ui/MainScreen.gd" type="Script" id=1]
[node name="WorldGenerator" type="PanelContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
rect_min_size = Vector2( 0, 200 )
size_flags_vertical = 3
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
@ -27,21 +30,6 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/World"]
margin_right = 1002.0
margin_bottom = 20.0
[node name="AddButton" type="Button" parent="TabContainer/World/HBoxContainer"]
margin_right = 37.0
margin_bottom = 20.0
text = "Add"
[node name="DeleteButton" type="Button" parent="TabContainer/World/HBoxContainer"]
margin_left = 41.0
margin_right = 96.0
margin_bottom = 20.0
text = "Delete"
[node name="Continent" type="VBoxContainer" parent="TabContainer"]
visible = false
anchor_right = 1.0