mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Fix error.
This commit is contained in:
parent
5723a11825
commit
e3f73103af
@ -39,7 +39,7 @@ func edit(object):
|
|||||||
# make_bottom_panel_item_visible(editor_scene)
|
# make_bottom_panel_item_visible(editor_scene)
|
||||||
|
|
||||||
if object is WorldGenWorld:
|
if object is WorldGenWorld:
|
||||||
editor_scene.set_mmmaterial(object as WorldGenWorld)
|
editor_scene.set_wgworld(object as WorldGenWorld)
|
||||||
|
|
||||||
func make_visible(visible):
|
func make_visible(visible):
|
||||||
if tool_button:
|
if tool_button:
|
||||||
|
12
game/addons/world_generator/ui/MainScreen.gd
Normal file
12
game/addons/world_generator/ui/MainScreen.gd
Normal 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()
|
@ -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_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
rect_min_size = Vector2( 0, 200 )
|
rect_min_size = Vector2( 0, 200 )
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
|
script = ExtResource( 1 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
@ -27,21 +30,6 @@ __meta__ = {
|
|||||||
"_edit_use_anchors_": false
|
"_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"]
|
[node name="Continent" type="VBoxContainer" parent="TabContainer"]
|
||||||
visible = false
|
visible = false
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
Loading…
Reference in New Issue
Block a user