diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-10 11:48:05 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-10 11:48:05 +0200 |
commit | 46556d864b9685c3b09a0038f5de83966fe7ff94 (patch) | |
tree | c68082eacd35559e14565d1598dd694972fb8e0e /Scenes/UI/Menu.tscn |
Initial commit
Diffstat (limited to 'Scenes/UI/Menu.tscn')
-rw-r--r-- | Scenes/UI/Menu.tscn | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/Scenes/UI/Menu.tscn b/Scenes/UI/Menu.tscn new file mode 100644 index 0000000..4a8f26e --- /dev/null +++ b/Scenes/UI/Menu.tscn @@ -0,0 +1,130 @@ +[gd_scene load_steps=8 format=3 uid="uid://d3xrwsv32hs6k"] + +[ext_resource type="Script" path="res://Scenes/UI/Menu.gd" id="1_vwah3"] + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_flq5r"] +bg_color = Color(0, 0, 0, 0.784314) + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_u0ugs"] +bg_color = Color(0, 0, 0, 0.784314) + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_p483f"] + +[sub_resource type="LabelSettings" id="LabelSettings_3ht7i"] +font_size = 10 + +[sub_resource type="LabelSettings" id="LabelSettings_s4847"] +font_size = 10 + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7at3v"] + +[node name="TabContainer" type="TabContainer"] +process_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_font_sizes/font_size = 10 +theme_override_styles/panel = SubResource("StyleBoxFlat_flq5r") +theme_override_styles/tabbar_background = SubResource("StyleBoxFlat_u0ugs") +clip_tabs = false +script = ExtResource("1_vwah3") + +[node name="Bombs" type="MarginContainer" parent="."] +layout_mode = 2 +theme_override_constants/margin_left = 8 +theme_override_constants/margin_top = 8 +theme_override_constants/margin_right = 8 +theme_override_constants/margin_bottom = 8 + +[node name="Panel" type="Panel" parent="Bombs"] +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxEmpty_p483f") + +[node name="HBoxContainer" type="HBoxContainer" parent="Bombs/Panel"] +layout_mode = 1 +offset_right = 177.0 +offset_bottom = 101.0 + +[node name="VBoxContainer" type="VBoxContainer" parent="Bombs/Panel/HBoxContainer"] +layout_mode = 2 + +[node name="Label" type="Label" parent="Bombs/Panel/HBoxContainer/VBoxContainer"] +layout_mode = 2 +text = "Type" +label_settings = SubResource("LabelSettings_3ht7i") +horizontal_alignment = 1 + +[node name="ButtonBombNormal" type="Button" parent="Bombs/Panel/HBoxContainer/VBoxContainer"] +layout_mode = 2 +theme_override_font_sizes/font_size = 10 +text = "Normal" + +[node name="ButtonBombBreakables" type="Button" parent="Bombs/Panel/HBoxContainer/VBoxContainer"] +layout_mode = 2 +theme_override_font_sizes/font_size = 10 +text = "Breakables" + +[node name="Space" type="Control" parent="Bombs/Panel/HBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 3 + +[node name="VBoxContainer2" type="VBoxContainer" parent="Bombs/Panel/HBoxContainer"] +layout_mode = 2 + +[node name="Label" type="Label" parent="Bombs/Panel/HBoxContainer/VBoxContainer2"] +layout_mode = 2 +text = "Power" +label_settings = SubResource("LabelSettings_s4847") +horizontal_alignment = 1 + +[node name="BombPower" type="ItemList" parent="Bombs/Panel/HBoxContainer/VBoxContainer2"] +layout_mode = 2 +theme_override_font_sizes/font_size = 10 +auto_height = true +item_count = 4 +item_0/text = "2" +item_1/text = "3" +item_2/text = "4" +item_3/text = "5" + +[node name="System" type="MarginContainer" parent="."] +visible = false +layout_mode = 2 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 +theme_override_constants/margin_bottom = 16 + +[node name="Panel" type="Panel" parent="System"] +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxEmpty_7at3v") + +[node name="VBoxContainer" type="VBoxContainer" parent="System/Panel"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -92.0 +offset_top = -48.0 +grow_horizontal = 0 +grow_vertical = 0 + +[node name="ButtonResume" type="Button" parent="System/Panel/VBoxContainer"] +layout_mode = 2 +theme_override_font_sizes/font_size = 10 +text = "Resume Game" + +[node name="ButtonQuit" type="Button" parent="System/Panel/VBoxContainer"] +layout_mode = 2 +theme_override_font_sizes/font_size = 10 +text = "Quit Game" + +[connection signal="pressed" from="Bombs/Panel/HBoxContainer/VBoxContainer/ButtonBombNormal" to="." method="_on_button_bomb_normal_pressed"] +[connection signal="pressed" from="Bombs/Panel/HBoxContainer/VBoxContainer/ButtonBombBreakables" to="." method="_on_button_bomb_breakables_pressed"] +[connection signal="item_selected" from="Bombs/Panel/HBoxContainer/VBoxContainer2/BombPower" to="." method="_on_bomb_power_item_selected"] +[connection signal="pressed" from="System/Panel/VBoxContainer/ButtonResume" to="." method="_on_button_resume_pressed"] +[connection signal="pressed" from="System/Panel/VBoxContainer/ButtonQuit" to="." method="_on_button_quit_pressed"] |