Refactor gameplay menus into owned scenes
This commit is contained in:
parent
46196a1adb
commit
a17fe88197
50 changed files with 3449 additions and 3619 deletions
73
ui/menus/TransferMenu.tscn
Normal file
73
ui/menus/TransferMenu.tscn
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
[gd_scene load_steps=4 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://ui/IconButton.gd" id="10"]
|
||||
[ext_resource type="Script" path="res://ui/ResourceTransferList.gd" id="27"]
|
||||
[ext_resource type="Script" path="res://ui/menus/TransferMenu.gd" id="menu_script"]
|
||||
|
||||
[node name="TransferMenu" type="Control" groups=["modal_menus"]]
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource("menu_script")
|
||||
|
||||
[node name="Backdrop" type="ColorRect" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
color = Color(0.03, 0.03, 0.08, 0.94)
|
||||
|
||||
[node name="TitleLabel" type="Label" parent="."]
|
||||
mouse_filter = 2
|
||||
anchor_right = 1.0
|
||||
offset_left = 24
|
||||
offset_top = 36
|
||||
offset_right = -200
|
||||
offset_bottom = 166
|
||||
text = "Transfer cargo"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
autowrap_mode = 2
|
||||
theme_override_font_sizes/font_size = 44
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="."]
|
||||
mouse_filter = 2
|
||||
anchor_right = 1.0
|
||||
offset_left = 24
|
||||
offset_top = 184
|
||||
offset_right = -24
|
||||
offset_bottom = 284
|
||||
theme_override_font_sizes/font_size = 32
|
||||
autowrap_mode = 2
|
||||
text = ""
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ResourceList" type="Control" parent="."]
|
||||
mouse_filter = 2
|
||||
anchor_right = 1.0
|
||||
offset_left = 16
|
||||
offset_top = 294
|
||||
offset_right = -16
|
||||
offset_bottom = 1080
|
||||
script = ExtResource("27")
|
||||
|
||||
[node name="CloseButton" type="Control" parent="."]
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -172
|
||||
offset_right = -24
|
||||
offset_top = 24
|
||||
offset_bottom = 172
|
||||
script = ExtResource("10")
|
||||
icon = 1
|
||||
glow_color = Color(1, 0.78, 0.25, 1)
|
||||
|
||||
[node name="HintLabel" type="Label" parent="."]
|
||||
mouse_filter = 2
|
||||
anchor_right = 1.0
|
||||
offset_left = 24
|
||||
offset_top = 1092
|
||||
offset_right = -24
|
||||
offset_bottom = 1150
|
||||
text = "Arrows move the selected amount from that side"
|
||||
horizontal_alignment = 1
|
||||
theme_override_colors/font_color = Color(0.55, 0.7, 0.78, 1)
|
||||
theme_override_font_sizes/font_size = 23
|
||||
Loading…
Reference in a new issue