MainMenu.tscn 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://UI/MainMenu.gd" type="Script" id=1]
  3. [ext_resource path="res://Fonts/hanken/hanken_48.tres" type="DynamicFont" id=2]
  4. [ext_resource path="res://Fonts/hanken/hanken_18.tres" type="DynamicFont" id=3]
  5. [ext_resource path="res://Fonts/hanken/hanken_26.tres" type="DynamicFont" id=4]
  6. [node name="MarginContainer" type="Node"]
  7. [node name="Panel" type="Panel" parent="."]
  8. margin_right = 1280.0
  9. margin_bottom = 720.0
  10. [node name="ColorRect" type="ColorRect" parent="Panel"]
  11. anchor_right = 1.0
  12. anchor_bottom = 1.0
  13. color = Color( 0.121569, 0.560784, 0.592157, 1 )
  14. [node name="MarginContainer" type="MarginContainer" parent="."]
  15. anchor_right = 1.0
  16. anchor_bottom = 1.0
  17. margin_left = 50.0
  18. margin_top = 50.0
  19. margin_right = -50.0
  20. margin_bottom = -50.0
  21. script = ExtResource( 1 )
  22. [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
  23. margin_right = 1180.0
  24. margin_bottom = 535.0
  25. size_flags_horizontal = 3
  26. size_flags_vertical = 0
  27. [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer"]
  28. margin_right = 1180.0
  29. margin_bottom = 94.0
  30. [node name="LabelDuoban" type="Label" parent="MarginContainer/VBoxContainer/VBoxContainer"]
  31. margin_right = 1180.0
  32. margin_bottom = 60.0
  33. rect_min_size = Vector2( 0, 60 )
  34. custom_fonts/font = ExtResource( 2 )
  35. custom_colors/font_color = Color( 0.0579834, 0.141144, 0.390625, 1 )
  36. text = "duoban"
  37. align = 1
  38. valign = 1
  39. [node name="LabelDuobanVersion" type="Label" parent="MarginContainer/VBoxContainer/VBoxContainer"]
  40. margin_top = 64.0
  41. margin_right = 1180.0
  42. margin_bottom = 94.0
  43. rect_min_size = Vector2( 0, 30 )
  44. custom_fonts/font = ExtResource( 3 )
  45. custom_colors/font_color = Color( 0.0579834, 0.141144, 0.390625, 1 )
  46. text = "v 0.1"
  47. align = 1
  48. [node name="HBoxPlay" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
  49. editor/display_folded = true
  50. margin_top = 98.0
  51. margin_right = 1180.0
  52. margin_bottom = 208.0
  53. size_flags_horizontal = 3
  54. size_flags_vertical = 3
  55. custom_constants/separation = 200
  56. alignment = 1
  57. [node name="ButtonPlay" type="Button" parent="MarginContainer/VBoxContainer/HBoxPlay"]
  58. margin_left = 380.0
  59. margin_right = 490.0
  60. margin_bottom = 110.0
  61. rect_min_size = Vector2( 110, 110 )
  62. [node name="Label" type="Label" parent="MarginContainer/VBoxContainer/HBoxPlay/ButtonPlay"]
  63. margin_left = 9.0
  64. margin_top = 10.0
  65. margin_right = 99.0
  66. margin_bottom = 100.0
  67. text = "play"
  68. align = 1
  69. valign = 1
  70. uppercase = true
  71. [node name="ButtonExit" type="Button" parent="MarginContainer/VBoxContainer/HBoxPlay"]
  72. margin_left = 690.0
  73. margin_right = 800.0
  74. margin_bottom = 110.0
  75. rect_min_size = Vector2( 110, 110 )
  76. [node name="Label" type="Label" parent="MarginContainer/VBoxContainer/HBoxPlay/ButtonExit"]
  77. margin_left = 9.0
  78. margin_top = 10.0
  79. margin_right = 99.0
  80. margin_bottom = 100.0
  81. text = "exit"
  82. align = 1
  83. valign = 1
  84. uppercase = true
  85. [node name="VBoxContainer2" type="VBoxContainer" parent="MarginContainer/VBoxContainer"]
  86. margin_top = 212.0
  87. margin_right = 1180.0
  88. margin_bottom = 535.0
  89. [node name="Empty" type="Label" parent="MarginContainer/VBoxContainer/VBoxContainer2"]
  90. margin_right = 1180.0
  91. margin_bottom = 30.0
  92. rect_min_size = Vector2( 0, 30 )
  93. custom_fonts/font = ExtResource( 4 )
  94. custom_colors/font_color = Color( 0.0579834, 0.141144, 0.390625, 1 )
  95. align = 1
  96. valign = 1
  97. [node name="LabelHowToPlay" type="Label" parent="MarginContainer/VBoxContainer/VBoxContainer2"]
  98. margin_top = 34.0
  99. margin_right = 1180.0
  100. margin_bottom = 104.0
  101. rect_min_size = Vector2( 0, 70 )
  102. custom_fonts/font = ExtResource( 4 )
  103. custom_colors/font_color = Color( 0.0579834, 0.141144, 0.390625, 1 )
  104. text = "How to play:"
  105. align = 1
  106. valign = 1
  107. [node name="LabelHowToPlayText" type="Label" parent="MarginContainer/VBoxContainer/VBoxContainer2"]
  108. margin_top = 108.0
  109. margin_right = 1180.0
  110. margin_bottom = 138.0
  111. rect_min_size = Vector2( 0, 30 )
  112. custom_fonts/font = ExtResource( 3 )
  113. custom_colors/font_color = Color( 0.0579834, 0.141144, 0.390625, 1 )
  114. text = "get both players into their goal, beware if one player is in the goal it can't move anymore"
  115. align = 1
  116. [node name="Controls" type="Label" parent="MarginContainer/VBoxContainer/VBoxContainer2"]
  117. margin_top = 142.0
  118. margin_right = 1180.0
  119. margin_bottom = 212.0
  120. rect_min_size = Vector2( 0, 70 )
  121. custom_fonts/font = ExtResource( 4 )
  122. custom_colors/font_color = Color( 0.0579834, 0.141144, 0.390625, 1 )
  123. text = "Controls:"
  124. align = 1
  125. valign = 1
  126. [node name="ControlsText" type="Label" parent="MarginContainer/VBoxContainer/VBoxContainer2"]
  127. margin_top = 216.0
  128. margin_right = 1180.0
  129. margin_bottom = 323.0
  130. rect_min_size = Vector2( 0, 30 )
  131. custom_fonts/font = ExtResource( 3 )
  132. custom_colors/font_color = Color( 0.0579834, 0.141144, 0.390625, 1 )
  133. text = "move - w, a , s, d / arrow keys
  134. switch player - spacebar
  135. reset level - r"
  136. align = 1
  137. [connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxPlay/ButtonPlay" to="MarginContainer" method="_on_ButtonLevel1_pressed"]
  138. [connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxPlay/ButtonExit" to="MarginContainer" method="_on_ButtonExit_pressed"]