fish.tscn 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://scripts/fish_logic.gd" type="Script" id=1]
  3. [ext_resource path="res://images/basic_fish.png" type="Texture" id=2]
  4. [ext_resource path="res://scripts/fish_menu.gd" type="Script" id=3]
  5. [node name="fish" type="Node2D"]
  6. script = ExtResource( 1 )
  7. __meta__ = {
  8. "__editor_plugin_screen__": "2D"
  9. }
  10. [node name="sprite" type="Sprite" parent="."]
  11. position = Vector2( 8.02356, -0.939303 )
  12. scale = Vector2( 0.403662, 0.296099 )
  13. texture = ExtResource( 2 )
  14. [node name="nametag" type="Button" parent="."]
  15. margin_left = -49.8903
  16. margin_top = 31.1815
  17. margin_right = 48.1097
  18. margin_bottom = 51.1815
  19. text = "default_name"
  20. __meta__ = {
  21. "_edit_use_anchors_": false
  22. }
  23. [node name="canvas" type="CanvasLayer" parent="."]
  24. [node name="fish_menu" type="Panel" parent="canvas"]
  25. pause_mode = 2
  26. visible = false
  27. margin_left = 319.562
  28. margin_top = 193.275
  29. margin_right = 640.562
  30. margin_bottom = 427.275
  31. script = ExtResource( 3 )
  32. __meta__ = {
  33. "_edit_use_anchors_": false
  34. }
  35. [node name="menu_title" type="Label" parent="canvas/fish_menu"]
  36. margin_left = 50.0
  37. margin_top = 16.0
  38. margin_right = 223.0
  39. margin_bottom = 47.0
  40. text = "DEFAULT MENU TITLE"
  41. align = 1
  42. valign = 1
  43. __meta__ = {
  44. "_edit_use_anchors_": false
  45. }
  46. [node name="rename_input" type="TextEdit" parent="canvas/fish_menu"]
  47. margin_left = 70.7906
  48. margin_top = 64.1834
  49. margin_right = 204.791
  50. margin_bottom = 99.1834
  51. text = "default name"
  52. [node name="rename_label" type="Label" parent="canvas/fish_menu"]
  53. margin_left = 10.6908
  54. margin_top = 72.6082
  55. margin_right = 62.6908
  56. margin_bottom = 86.6082
  57. text = "Rename"
  58. [node name="confirm_rename_button" type="Button" parent="canvas/fish_menu"]
  59. margin_left = 215.0
  60. margin_top = 70.0
  61. margin_right = 247.0
  62. margin_bottom = 90.0
  63. text = "Confirm"
  64. __meta__ = {
  65. "_edit_use_anchors_": false
  66. }
  67. [node name="resume_button" type="Button" parent="canvas/fish_menu"]
  68. margin_left = 108.0
  69. margin_top = 173.0
  70. margin_right = 153.0
  71. margin_bottom = 193.0
  72. text = "OK"
  73. [connection signal="pressed" from="nametag" to="canvas/fish_menu" method="_on_nametag_pressed"]
  74. [connection signal="pressed" from="canvas/fish_menu/confirm_rename_button" to="canvas/fish_menu" method="_on_confirm_rename_button_pressed"]
  75. [connection signal="pressed" from="canvas/fish_menu/resume_button" to="canvas/fish_menu" method="_on_resume_button_pressed"]