123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- [gd_scene load_steps=8 format=3 uid="uid://b6lj7k1ow37pj"]
- [ext_resource type="Script" uid="uid://cdmv2q16wrqr5" path="res://Scripts/main_menu_ui.gd" id="1"]
- [ext_resource type="FontFile" uid="uid://3088fs7yhrwi" path="res://Misc/comic sans.ttf" id="2"]
- [ext_resource type="AudioStream" uid="uid://rv2rbn87jw85" path="res://Audio/music/main.mp3" id="3"]
- [sub_resource type="LabelSettings" id="LabelSettings_ba1cb"]
- font = ExtResource("2")
- font_size = 28
- [sub_resource type="LabelSettings" id="LabelSettings_ohesy"]
- font = ExtResource("2")
- font_size = 20
- [sub_resource type="LabelSettings" id="LabelSettings_m1gix"]
- font = ExtResource("2")
- font_size = 40
- outline_size = 5
- outline_color = Color(0, 0, 0, 1)
- [sub_resource type="LabelSettings" id="LabelSettings_v3gcb"]
- font = ExtResource("2")
- font_size = 20
- outline_size = 5
- outline_color = Color(0, 0, 0, 1)
- [node name="Main Menu UI" type="Panel"]
- process_mode = 2
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- script = ExtResource("1")
- [node name="menu" type="Node2D" parent="."]
- [node name="play" type="Button" parent="menu"]
- offset_left = 122.0
- offset_top = 120.0
- offset_right = 325.0
- offset_bottom = 182.0
- theme_override_fonts/font = ExtResource("2")
- theme_override_font_sizes/font_size = 33
- text = "play"
- [node name="new game" type="Button" parent="menu"]
- offset_left = 122.0
- offset_top = 184.0
- offset_right = 325.0
- offset_bottom = 241.0
- theme_override_fonts/font = ExtResource("2")
- theme_override_font_sizes/font_size = 33
- text = "new game"
- [node name="settings" type="Button" parent="menu"]
- offset_left = 123.0
- offset_top = 244.0
- offset_right = 326.0
- offset_bottom = 301.0
- theme_override_fonts/font = ExtResource("2")
- theme_override_font_sizes/font_size = 33
- text = "settings"
- [node name="quit" type="Button" parent="menu"]
- offset_left = 122.0
- offset_top = 305.0
- offset_right = 325.0
- offset_bottom = 389.0
- theme_override_fonts/font = ExtResource("2")
- theme_override_font_sizes/font_size = 33
- text = "quit"
- [node name="title1" type="Label" parent="menu"]
- offset_left = 13.0
- offset_top = 17.0
- offset_right = 319.0
- offset_bottom = 97.0
- text = "alahu ahkbar simulator"
- label_settings = SubResource("LabelSettings_ba1cb")
- horizontal_alignment = 1
- vertical_alignment = 1
- [node name="title2" type="Label" parent="menu"]
- offset_left = 139.0
- offset_top = 47.0
- offset_right = 445.0
- offset_bottom = 127.0
- text = "2001 version"
- label_settings = SubResource("LabelSettings_ohesy")
- horizontal_alignment = 1
- vertical_alignment = 1
- [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
- stream = ExtResource("3")
- volume_db = -10.041
- autoplay = true
- [node name="settings" type="Node2D" parent="."]
- visible = false
- [node name="title" type="Label" parent="settings"]
- offset_left = 132.0
- offset_top = 15.0
- offset_right = 309.0
- offset_bottom = 75.0
- text = "settings"
- label_settings = SubResource("LabelSettings_m1gix")
- horizontal_alignment = 1
- vertical_alignment = 1
- [node name="back" type="Button" parent="settings"]
- offset_left = 14.0
- offset_top = 13.0
- offset_right = 59.0
- offset_bottom = 44.0
- text = "back
- "
- [node name="volume" type="HSlider" parent="settings"]
- offset_left = 151.0
- offset_top = 82.0
- offset_right = 362.0
- offset_bottom = 114.0
- max_value = 1.0
- step = 0.05
- [node name="volume_title" type="Label" parent="settings/volume"]
- layout_mode = 0
- offset_left = -184.0
- offset_top = -15.0
- offset_right = -7.0
- offset_bottom = 45.0
- text = "volume"
- label_settings = SubResource("LabelSettings_v3gcb")
- horizontal_alignment = 2
- vertical_alignment = 1
- [node name="fullscreen" type="CheckBox" parent="settings"]
- offset_left = 165.0
- offset_top = 117.0
- offset_right = 270.0
- offset_bottom = 148.0
- text = "fullscreen"
- [node name="graphics" type="CheckBox" parent="settings"]
- offset_left = 147.0
- offset_top = 152.0
- offset_right = 299.0
- offset_bottom = 183.0
- text = "low detail mode"
- [connection signal="pressed" from="menu/play" to="." method="_on_play_pressed"]
- [connection signal="pressed" from="menu/new game" to="." method="_on_new_game_pressed"]
- [connection signal="pressed" from="menu/settings" to="." method="_on_settings_pressed"]
- [connection signal="pressed" from="menu/quit" to="." method="_on_quit_pressed"]
- [connection signal="pressed" from="settings/back" to="." method="_on_back_pressed"]
- [connection signal="value_changed" from="settings/volume" to="." method="_on_volume_value_changed"]
- [connection signal="toggled" from="settings/fullscreen" to="." method="_on_fullscreen_toggled"]
- [connection signal="toggled" from="settings/graphics" to="." method="_on_graphics_toggled"]
|