main_menu_ui.tscn 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. [gd_scene load_steps=8 format=3 uid="uid://b6lj7k1ow37pj"]
  2. [ext_resource type="Script" uid="uid://cdmv2q16wrqr5" path="res://Scripts/main_menu_ui.gd" id="1"]
  3. [ext_resource type="FontFile" uid="uid://3088fs7yhrwi" path="res://Misc/comic sans.ttf" id="2"]
  4. [ext_resource type="AudioStream" uid="uid://rv2rbn87jw85" path="res://Audio/music/main.mp3" id="3"]
  5. [sub_resource type="LabelSettings" id="LabelSettings_ba1cb"]
  6. font = ExtResource("2")
  7. font_size = 28
  8. [sub_resource type="LabelSettings" id="LabelSettings_ohesy"]
  9. font = ExtResource("2")
  10. font_size = 20
  11. [sub_resource type="LabelSettings" id="LabelSettings_m1gix"]
  12. font = ExtResource("2")
  13. font_size = 40
  14. outline_size = 5
  15. outline_color = Color(0, 0, 0, 1)
  16. [sub_resource type="LabelSettings" id="LabelSettings_v3gcb"]
  17. font = ExtResource("2")
  18. font_size = 20
  19. outline_size = 5
  20. outline_color = Color(0, 0, 0, 1)
  21. [node name="Main Menu UI" type="Panel"]
  22. process_mode = 2
  23. anchors_preset = 15
  24. anchor_right = 1.0
  25. anchor_bottom = 1.0
  26. grow_horizontal = 2
  27. grow_vertical = 2
  28. script = ExtResource("1")
  29. [node name="menu" type="Node2D" parent="."]
  30. [node name="play" type="Button" parent="menu"]
  31. offset_left = 122.0
  32. offset_top = 120.0
  33. offset_right = 325.0
  34. offset_bottom = 182.0
  35. theme_override_fonts/font = ExtResource("2")
  36. theme_override_font_sizes/font_size = 33
  37. text = "play"
  38. [node name="new game" type="Button" parent="menu"]
  39. offset_left = 122.0
  40. offset_top = 184.0
  41. offset_right = 325.0
  42. offset_bottom = 241.0
  43. theme_override_fonts/font = ExtResource("2")
  44. theme_override_font_sizes/font_size = 33
  45. text = "new game"
  46. [node name="settings" type="Button" parent="menu"]
  47. offset_left = 123.0
  48. offset_top = 244.0
  49. offset_right = 326.0
  50. offset_bottom = 301.0
  51. theme_override_fonts/font = ExtResource("2")
  52. theme_override_font_sizes/font_size = 33
  53. text = "settings"
  54. [node name="quit" type="Button" parent="menu"]
  55. offset_left = 122.0
  56. offset_top = 305.0
  57. offset_right = 325.0
  58. offset_bottom = 389.0
  59. theme_override_fonts/font = ExtResource("2")
  60. theme_override_font_sizes/font_size = 33
  61. text = "quit"
  62. [node name="title1" type="Label" parent="menu"]
  63. offset_left = 13.0
  64. offset_top = 17.0
  65. offset_right = 319.0
  66. offset_bottom = 97.0
  67. text = "alahu ahkbar simulator"
  68. label_settings = SubResource("LabelSettings_ba1cb")
  69. horizontal_alignment = 1
  70. vertical_alignment = 1
  71. [node name="title2" type="Label" parent="menu"]
  72. offset_left = 139.0
  73. offset_top = 47.0
  74. offset_right = 445.0
  75. offset_bottom = 127.0
  76. text = "2001 version"
  77. label_settings = SubResource("LabelSettings_ohesy")
  78. horizontal_alignment = 1
  79. vertical_alignment = 1
  80. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
  81. stream = ExtResource("3")
  82. volume_db = -10.041
  83. autoplay = true
  84. [node name="settings" type="Node2D" parent="."]
  85. visible = false
  86. [node name="title" type="Label" parent="settings"]
  87. offset_left = 132.0
  88. offset_top = 15.0
  89. offset_right = 309.0
  90. offset_bottom = 75.0
  91. text = "settings"
  92. label_settings = SubResource("LabelSettings_m1gix")
  93. horizontal_alignment = 1
  94. vertical_alignment = 1
  95. [node name="back" type="Button" parent="settings"]
  96. offset_left = 14.0
  97. offset_top = 13.0
  98. offset_right = 59.0
  99. offset_bottom = 44.0
  100. text = "back
  101. "
  102. [node name="volume" type="HSlider" parent="settings"]
  103. offset_left = 151.0
  104. offset_top = 82.0
  105. offset_right = 362.0
  106. offset_bottom = 114.0
  107. max_value = 1.0
  108. step = 0.05
  109. [node name="volume_title" type="Label" parent="settings/volume"]
  110. layout_mode = 0
  111. offset_left = -184.0
  112. offset_top = -15.0
  113. offset_right = -7.0
  114. offset_bottom = 45.0
  115. text = "volume"
  116. label_settings = SubResource("LabelSettings_v3gcb")
  117. horizontal_alignment = 2
  118. vertical_alignment = 1
  119. [node name="fullscreen" type="CheckBox" parent="settings"]
  120. offset_left = 165.0
  121. offset_top = 117.0
  122. offset_right = 270.0
  123. offset_bottom = 148.0
  124. text = "fullscreen"
  125. [node name="graphics" type="CheckBox" parent="settings"]
  126. offset_left = 147.0
  127. offset_top = 152.0
  128. offset_right = 299.0
  129. offset_bottom = 183.0
  130. text = "low detail mode"
  131. [connection signal="pressed" from="menu/play" to="." method="_on_play_pressed"]
  132. [connection signal="pressed" from="menu/new game" to="." method="_on_new_game_pressed"]
  133. [connection signal="pressed" from="menu/settings" to="." method="_on_settings_pressed"]
  134. [connection signal="pressed" from="menu/quit" to="." method="_on_quit_pressed"]
  135. [connection signal="pressed" from="settings/back" to="." method="_on_back_pressed"]
  136. [connection signal="value_changed" from="settings/volume" to="." method="_on_volume_value_changed"]
  137. [connection signal="toggled" from="settings/fullscreen" to="." method="_on_fullscreen_toggled"]
  138. [connection signal="toggled" from="settings/graphics" to="." method="_on_graphics_toggled"]