add spawn menu for props
This commit is contained in:
parent
6e783e0e57
commit
b9d16360b9
9 changed files with 231 additions and 62 deletions
|
|
@ -5,27 +5,27 @@
|
|||
[ext_resource type="Texture2D" uid="uid://bwhgy4u37jmo1" path="res://UI/TransportControls/Pause.png" id="4_j5gkc"]
|
||||
[ext_resource type="Texture2D" uid="uid://xllpr3qc064c" path="res://UI/TransportControls/Play.png" id="5_4hvdi"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cp535"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_fxnf3"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_esrnp"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_okjcw"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_5t5ap"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_j5gkc"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_4hvdi"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_76ga2"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ausu3"]
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_x8byx"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_b5eqy"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_x8byx"]
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ausu3"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_76ga2"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_4hvdi"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_j5gkc"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_5t5ap"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_okjcw"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_esrnp"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_fxnf3"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cp535"]
|
||||
|
||||
[node name="InGameMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
|
|
@ -51,7 +51,7 @@ anchors_preset = 2
|
|||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 60.0
|
||||
offset_top = -380.0
|
||||
offset_top = -432.0
|
||||
offset_right = 324.0
|
||||
offset_bottom = -64.0
|
||||
grow_vertical = 0
|
||||
|
|
@ -88,20 +88,29 @@ offset_right = 260.0
|
|||
offset_bottom = 208.0
|
||||
text = "Flow Controls"
|
||||
|
||||
[node name="ExitMenuButton" type="Button" parent="Buttons"]
|
||||
[node name="SpawnMenuButton" type="Button" parent="Buttons"]
|
||||
layout_mode = 0
|
||||
offset_left = 4.0
|
||||
offset_top = 212.0
|
||||
offset_right = 260.0
|
||||
offset_bottom = 260.0
|
||||
text = "Exit to Menu"
|
||||
text = "Spawn Menu
|
||||
"
|
||||
|
||||
[node name="ExitButton" type="Button" parent="Buttons"]
|
||||
[node name="ExitMenuButton" type="Button" parent="Buttons"]
|
||||
layout_mode = 0
|
||||
offset_left = 4.0
|
||||
offset_top = 264.0
|
||||
offset_right = 260.0
|
||||
offset_bottom = 312.0
|
||||
text = "Exit to Menu"
|
||||
|
||||
[node name="ExitButton" type="Button" parent="Buttons"]
|
||||
layout_mode = 0
|
||||
offset_left = 4.0
|
||||
offset_top = 316.0
|
||||
offset_right = 260.0
|
||||
offset_bottom = 364.0
|
||||
text = "Exit to Desktop"
|
||||
|
||||
[node name="TransportControls" type="Panel" parent="."]
|
||||
|
|
@ -110,9 +119,9 @@ anchors_preset = 2
|
|||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 60.0
|
||||
offset_top = -476.0
|
||||
offset_top = -524.0
|
||||
offset_right = 324.0
|
||||
offset_bottom = -388.0
|
||||
offset_bottom = -436.0
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="ShowLabel" type="Label" parent="TransportControls"]
|
||||
|
|
@ -189,17 +198,17 @@ anchor_right = 1.0
|
|||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_cp535")
|
||||
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_fxnf3")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_esrnp")
|
||||
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_okjcw")
|
||||
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_5t5ap")
|
||||
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_j5gkc")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_4hvdi")
|
||||
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_76ga2")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_ausu3")
|
||||
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_b5eqy")
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_x8byx")
|
||||
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_b5eqy")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_ausu3")
|
||||
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_76ga2")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_4hvdi")
|
||||
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_j5gkc")
|
||||
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_5t5ap")
|
||||
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_okjcw")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_esrnp")
|
||||
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_fxnf3")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_cp535")
|
||||
|
||||
[node name="DialogPanel" type="Panel" parent="FlowControlsScreen"]
|
||||
layout_mode = 1
|
||||
|
|
@ -270,17 +279,17 @@ anchor_right = 1.0
|
|||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_cp535")
|
||||
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_fxnf3")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_esrnp")
|
||||
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_okjcw")
|
||||
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_5t5ap")
|
||||
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_j5gkc")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_4hvdi")
|
||||
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_76ga2")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_ausu3")
|
||||
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_b5eqy")
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_x8byx")
|
||||
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_b5eqy")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_ausu3")
|
||||
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_76ga2")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_4hvdi")
|
||||
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_j5gkc")
|
||||
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_5t5ap")
|
||||
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_okjcw")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_esrnp")
|
||||
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_fxnf3")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_cp535")
|
||||
|
||||
[node name="DialogPanel" type="Panel" parent="CosmeticsScreen"]
|
||||
layout_mode = 1
|
||||
|
|
@ -326,6 +335,81 @@ offset_bottom = -4.0
|
|||
max_value = 0.0
|
||||
step = 1.0
|
||||
|
||||
[node name="SpawnMenu" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="SpawnMenu"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.121569, 0.121569, 0.121569, 0.501961)
|
||||
|
||||
[node name="InputEater" type="Button" parent="SpawnMenu"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_x8byx")
|
||||
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_b5eqy")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_ausu3")
|
||||
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_76ga2")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_4hvdi")
|
||||
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_j5gkc")
|
||||
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_5t5ap")
|
||||
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_okjcw")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_esrnp")
|
||||
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_fxnf3")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_cp535")
|
||||
|
||||
[node name="DialogPanel" type="Panel" parent="SpawnMenu"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = 64.0
|
||||
offset_right = -64.0
|
||||
offset_bottom = -64.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="SpawnButton" type="Button" parent="SpawnMenu/DialogPanel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -154.0
|
||||
offset_top = -52.0
|
||||
offset_right = -4.0
|
||||
offset_bottom = -4.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Spawn"
|
||||
|
||||
[node name="ItemList" type="ItemList" parent="SpawnMenu/DialogPanel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 4.0
|
||||
offset_top = 4.0
|
||||
offset_right = -4.0
|
||||
offset_bottom = -56.0
|
||||
same_column_width = true
|
||||
fixed_icon_size = Vector2i(64, 64)
|
||||
|
||||
[node name="LoadShowScreen" type="Control" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
|
|
@ -351,17 +435,17 @@ anchor_right = 1.0
|
|||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_cp535")
|
||||
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_fxnf3")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_esrnp")
|
||||
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_okjcw")
|
||||
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_5t5ap")
|
||||
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_j5gkc")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_4hvdi")
|
||||
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_76ga2")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_ausu3")
|
||||
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_b5eqy")
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_x8byx")
|
||||
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_b5eqy")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_ausu3")
|
||||
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_76ga2")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_4hvdi")
|
||||
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_j5gkc")
|
||||
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_5t5ap")
|
||||
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_okjcw")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_esrnp")
|
||||
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_fxnf3")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_cp535")
|
||||
|
||||
[node name="DialogPanel" type="Panel" parent="LoadShowScreen"]
|
||||
layout_mode = 1
|
||||
|
|
@ -498,6 +582,7 @@ filters = PackedStringArray("*.ust")
|
|||
[connection signal="pressed" from="Buttons/LoadShowButton" to="." method="_on_load_show_button_pressed"]
|
||||
[connection signal="pressed" from="Buttons/CosmeticsButton" to="." method="_on_cosmetics_button_pressed"]
|
||||
[connection signal="pressed" from="Buttons/FlowControlsButton" to="." method="_on_flow_controls_button_pressed"]
|
||||
[connection signal="pressed" from="Buttons/SpawnMenuButton" to="." method="_on_spawn_menu_button_pressed"]
|
||||
[connection signal="pressed" from="Buttons/ExitMenuButton" to="." method="_on_exit_menu_button_pressed"]
|
||||
[connection signal="pressed" from="Buttons/ExitButton" to="." method="_on_exit_button_pressed"]
|
||||
[connection signal="pressed" from="TransportControls/StopButton" to="." method="_on_stop_button_pressed"]
|
||||
|
|
@ -507,6 +592,8 @@ filters = PackedStringArray("*.ust")
|
|||
[connection signal="value_changed" from="FlowControlsScreen/DialogPanel/VScrollBar" to="." method="_on_flow_v_scroll_bar_value_changed"]
|
||||
[connection signal="pressed" from="CosmeticsScreen/InputEater" to="." method="_on_input_eater_pressed"]
|
||||
[connection signal="value_changed" from="CosmeticsScreen/DialogPanel/VScrollBar" to="." method="_on_cosmetics_v_scroll_bar_value_changed"]
|
||||
[connection signal="pressed" from="SpawnMenu/InputEater" to="." method="_on_input_eater_pressed"]
|
||||
[connection signal="pressed" from="SpawnMenu/DialogPanel/SpawnButton" to="." method="_on_spawn_button_pressed"]
|
||||
[connection signal="pressed" from="LoadShowScreen/InputEater" to="." method="_on_input_eater_pressed"]
|
||||
[connection signal="pressed" from="LoadShowScreen/DialogPanel/InBrowseButton" to="." method="_on_in_browse_button_pressed"]
|
||||
[connection signal="pressed" from="LoadShowScreen/DialogPanel/CancelButton" to="." method="_on_cancel_button_pressed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue