scene.tscn 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://menu.gd" type="Script" id=1]
  3. [ext_resource path="res://menu_textures/orig_1.png" type="Texture" id=2]
  4. [node name="scene" type="Node2D"]
  5. [node name="menu" type="Control" parent="."]
  6. margin_right = 40.0
  7. margin_bottom = 40.0
  8. script = ExtResource( 1 )
  9. [node name="menu_texture" type="TextureRect" parent="menu"]
  10. margin_right = 1280.0
  11. margin_bottom = 720.0
  12. texture = ExtResource( 2 )
  13. [node name="buttons" type="Control" parent="menu"]
  14. margin_right = 40.0
  15. margin_bottom = 40.0
  16. [node name="b1" type="TextureButton" parent="menu/buttons"]
  17. margin_left = 89.0
  18. margin_top = 248.0
  19. margin_right = 379.0
  20. margin_bottom = 305.0
  21. [node name="b2" type="TextureButton" parent="menu/buttons"]
  22. margin_left = 90.0
  23. margin_top = 339.0
  24. margin_right = 335.0
  25. margin_bottom = 396.0
  26. [node name="b3" type="TextureButton" parent="menu/buttons"]
  27. margin_left = 79.6673
  28. margin_top = 449.434
  29. margin_right = 159.667
  30. margin_bottom = 479.434
  31. rect_rotation = 45.0
  32. rect_pivot_offset = Vector2( 40, 15 )
  33. [node name="popup" type="AcceptDialog" parent="menu"]
  34. margin_right = 83.0
  35. margin_bottom = 58.0
  36. popup_exclusive = true
  37. dialog_text = "Clicked"
  38. [connection signal="button_down" from="menu/buttons/b1" to="menu" method="_on_b1_button_down"]
  39. [connection signal="button_up" from="menu/buttons/b1" to="menu" method="_on_b1_button_up"]
  40. [connection signal="mouse_entered" from="menu/buttons/b1" to="menu" method="_on_b1_mouse_entered"]
  41. [connection signal="mouse_exited" from="menu/buttons/b1" to="menu" method="_on_b1_mouse_exited"]
  42. [connection signal="pressed" from="menu/buttons/b1" to="menu" method="_on_b1_pressed"]
  43. [connection signal="button_down" from="menu/buttons/b2" to="menu" method="_on_b2_button_down"]
  44. [connection signal="button_up" from="menu/buttons/b2" to="menu" method="_on_b2_button_up"]
  45. [connection signal="mouse_entered" from="menu/buttons/b2" to="menu" method="_on_b2_mouse_entered"]
  46. [connection signal="mouse_exited" from="menu/buttons/b2" to="menu" method="_on_b2_mouse_exited"]
  47. [connection signal="pressed" from="menu/buttons/b2" to="menu" method="_on_b2_pressed"]
  48. [connection signal="button_down" from="menu/buttons/b3" to="menu" method="_on_b3_button_down"]
  49. [connection signal="button_up" from="menu/buttons/b3" to="menu" method="_on_b3_button_up"]
  50. [connection signal="mouse_entered" from="menu/buttons/b3" to="menu" method="_on_b3_mouse_entered"]
  51. [connection signal="mouse_exited" from="menu/buttons/b3" to="menu" method="_on_b3_mouse_exited"]
  52. [connection signal="pressed" from="menu/buttons/b3" to="menu" method="_on_b3_pressed"]