scene.tscn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_it" type="TextureRect" parent="menu"]
  10. margin_right = 40.0
  11. margin_bottom = 40.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 = 631.0
  18. margin_top = 259.0
  19. margin_right = 831.0
  20. margin_bottom = 459.0
  21. rect_pivot_offset = Vector2( 100, 100 )
  22. [node name="b2" type="TextureButton" parent="menu/buttons"]
  23. margin_left = 270.0
  24. margin_top = 259.0
  25. margin_right = 470.0
  26. margin_bottom = 459.0
  27. rect_pivot_offset = Vector2( 100, 100 )
  28. [node name="popup" type="AcceptDialog" parent="menu"]
  29. margin_right = 83.0
  30. margin_bottom = 58.0
  31. dialog_text = "Click"
  32. [connection signal="mouse_entered" from="menu/buttons/b1" to="menu" method="_on_b1_mouse_entered"]
  33. [connection signal="mouse_exited" from="menu/buttons/b1" to="menu" method="_on_b1_mouse_exited"]
  34. [connection signal="pressed" from="menu/buttons/b1" to="menu" method="_on_b1_pressed"]
  35. [connection signal="mouse_entered" from="menu/buttons/b2" to="menu" method="_on_b2_mouse_entered"]
  36. [connection signal="mouse_exited" from="menu/buttons/b2" to="menu" method="_on_b2_mouse_exited"]
  37. [connection signal="pressed" from="menu/buttons/b2" to="menu" method="_on_b2_pressed"]