Map Name
This commit is contained in:
parent
f123b26f12
commit
466c4d3530
2 changed files with 15 additions and 3 deletions
|
|
@ -217,9 +217,11 @@ texture = SubResource("CompressedTexture2D_slrw0")
|
|||
|
||||
[node name="MenuTop" type="HBoxContainer" parent="UI"]
|
||||
unique_name_in_owner = true
|
||||
offset_right = 227.0
|
||||
offset_bottom = 40.0
|
||||
size_flags_horizontal = 0
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 36.0
|
||||
grow_horizontal = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 0
|
||||
|
||||
[node name="MapMenu" type="Button" parent="UI/MenuTop"]
|
||||
|
|
@ -258,6 +260,15 @@ layout_mode = 2
|
|||
text = "Palette"
|
||||
script = ExtResource("2_fax2j")
|
||||
|
||||
[node name="MapName" type="Label" parent="UI/MenuTop"]
|
||||
unique_name_in_owner = true
|
||||
layout_direction = 2
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
text = "MapName"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Dialogs" type="Node2D" parent="UI"]
|
||||
|
||||
[node name="FileDialog" type="FileDialog" parent="UI/Dialogs"]
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ func load_settings():
|
|||
Global.settings = load("user://settings.tres") as Settings
|
||||
print("Current project dir: {0}".format([Global.settings.current_project_dir]))
|
||||
print("Current map: {0}".format([Global.settings.current_map_name]))
|
||||
%MapName.text = Global.settings.current_map_name
|
||||
else:
|
||||
# Global data not found, writing default settings
|
||||
save_settings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue