Menu.tscn 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. [gd_scene load_steps=10 format=2]
  2. [ext_resource path="res://icon.png" type="Texture" id=1]
  3. [ext_resource path="res://labs/cascade/arena1.png" type="Texture" id=2]
  4. [ext_resource path="res://labs/factory/component/arena/tiny-gray-tiles.png" type="Texture" id=3]
  5. [ext_resource path="res://menu/button/select/SelectButton.tscn" type="PackedScene" id=4]
  6. [ext_resource path="res://menu/thumbnail/Thumbnail.gd" type="Script" id=5]
  7. [ext_resource path="res://menu/button/start/StartButton.gd" type="Script" id=6]
  8. [ext_resource path="res://labs/cascade/Arena1.tscn" type="PackedScene" id=7]
  9. [ext_resource path="res://labs/factory/Factory.tscn" type="PackedScene" id=8]
  10. [ext_resource path="res://debug/TreeNotifier.gd" type="Script" id=9]
  11. [node name="Menu" type="Control"]
  12. anchor_right = 1.0
  13. anchor_bottom = 1.0
  14. script = ExtResource( 9 )
  15. [node name="Title" type="Label" parent="."]
  16. anchor_top = 0.1
  17. anchor_right = 1.0
  18. anchor_bottom = 0.1
  19. text = "Godot Lab"
  20. align = 1
  21. __meta__ = {
  22. "_edit_use_anchors_": false
  23. }
  24. [node name="SettingsButton" type="Button" parent="."]
  25. margin_left = 10.0
  26. margin_top = 10.0
  27. margin_right = 12.0
  28. margin_bottom = 20.0
  29. text = "Settings"
  30. [node name="Logo" type="TextureRect" parent="."]
  31. anchor_left = 0.2
  32. anchor_top = 0.2
  33. anchor_right = 0.8
  34. anchor_bottom = 0.4
  35. margin_bottom = -10.0
  36. texture = ExtResource( 1 )
  37. stretch_mode = 6
  38. [node name="LabSelector" type="Control" parent="."]
  39. anchor_top = 0.4
  40. anchor_right = 0.3
  41. anchor_bottom = 1.0
  42. margin_left = 10.0
  43. margin_top = 10.0
  44. margin_right = -10.0
  45. margin_bottom = -10.0
  46. [node name="Lab1" parent="LabSelector" instance=ExtResource( 4 )]
  47. text = "Cascade"
  48. [node name="Lab2" parent="LabSelector" instance=ExtResource( 4 )]
  49. margin_top = 50.0
  50. margin_bottom = 80.0
  51. text = "Factory"
  52. index = 1
  53. [node name="LabLauncher" type="Control" parent="."]
  54. anchor_left = 0.3
  55. anchor_top = 0.4
  56. anchor_right = 1.0
  57. anchor_bottom = 1.0
  58. margin_left = 10.0
  59. margin_top = 10.0
  60. margin_right = -10.0
  61. margin_bottom = -10.0
  62. [node name="Thumbnail" type="TextureRect" parent="LabLauncher"]
  63. anchor_right = 1.0
  64. anchor_bottom = 1.0
  65. margin_left = 20.0
  66. margin_top = 10.0
  67. margin_right = -20.0
  68. margin_bottom = -60.0
  69. texture = ExtResource( 2 )
  70. stretch_mode = 6
  71. script = ExtResource( 5 )
  72. __meta__ = {
  73. "_edit_use_anchors_": false
  74. }
  75. pictures = [ ExtResource( 2 ), ExtResource( 3 ) ]
  76. [node name="StartButton" type="Button" parent="LabLauncher"]
  77. anchor_top = 1.0
  78. anchor_right = 1.0
  79. anchor_bottom = 1.0
  80. margin_left = 10.0
  81. margin_top = -40.0
  82. margin_right = -10.0
  83. margin_bottom = -10.0
  84. text = "Start"
  85. script = ExtResource( 6 )
  86. __meta__ = {
  87. "_edit_use_anchors_": false
  88. }
  89. scenes = [ ExtResource( 7 ), ExtResource( 8 ) ]
  90. [connection signal="lab_selected" from="LabSelector/Lab1" to="LabLauncher/Thumbnail" method="_on_lab_selected"]
  91. [connection signal="lab_selected" from="LabSelector/Lab1" to="LabLauncher/StartButton" method="_on_lab_selected"]
  92. [connection signal="lab_selected" from="LabSelector/Lab2" to="LabLauncher/Thumbnail" method="_on_lab_selected"]
  93. [connection signal="lab_selected" from="LabSelector/Lab2" to="LabLauncher/StartButton" method="_on_lab_selected"]
  94. [connection signal="pressed" from="LabLauncher/StartButton" to="LabLauncher/StartButton" method="_on_self_pressed"]