aquarium.tscn 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://scripts/aquarium.gd" type="Script" id=1]
  3. [ext_resource path="res://images/tank_background.png" type="Texture" id=2]
  4. [ext_resource path="res://scenes/fish.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://scripts/pause_menu.gd" type="Script" id=4]
  6. [ext_resource path="res://music/Relax_at_the_Aquarium.ogg" type="AudioStream" id=5]
  7. [ext_resource path="res://scripts/aquarium_settings_menu.gd" type="Script" id=6]
  8. [ext_resource path="res://scripts/options_menu.gd" type="Script" id=7]
  9. [node name="aquarium" type="Node2D"]
  10. script = ExtResource( 1 )
  11. __meta__ = {
  12. "__editor_plugin_screen__": "Script",
  13. "_edit_lock_": true
  14. }
  15. [node name="background" type="Sprite" parent="."]
  16. position = Vector2( 511.969, 300.122 )
  17. scale = Vector2( 0.677005, 0.535149 )
  18. texture = ExtResource( 2 )
  19. [node name="fish" parent="." instance=ExtResource( 3 )]
  20. position = Vector2( 587.599, 421.028 )
  21. fish_name = "Tanza"
  22. [node name="fish1" parent="." instance=ExtResource( 3 )]
  23. position = Vector2( 308.51, 288.899 )
  24. fish_name = "Gary"
  25. [node name="fish2" parent="." instance=ExtResource( 3 )]
  26. position = Vector2( 794.484, 196.791 )
  27. fish_name = "Zish"
  28. [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
  29. pause_mode = 2
  30. stream = ExtResource( 5 )
  31. autoplay = true
  32. [node name="canvas" type="CanvasLayer" parent="."]
  33. [node name="aquarium_settings_button" type="Button" parent="canvas"]
  34. margin_left = 190.959
  35. margin_top = 517.45
  36. margin_right = 319.959
  37. margin_bottom = 583.45
  38. text = "Water Settings"
  39. __meta__ = {
  40. "_edit_use_anchors_": false
  41. }
  42. [node name="aquarium_settings_menu" type="Panel" parent="canvas/aquarium_settings_button"]
  43. visible = false
  44. margin_left = 182.321
  45. margin_top = -317.411
  46. margin_right = 438.321
  47. margin_bottom = -82.4112
  48. script = ExtResource( 6 )
  49. __meta__ = {
  50. "_edit_use_anchors_": false
  51. }
  52. [node name="ph" type="SpinBox" parent="canvas/aquarium_settings_button/aquarium_settings_menu"]
  53. margin_left = 128.0
  54. margin_top = 61.0
  55. margin_right = 202.0
  56. margin_bottom = 85.0
  57. __meta__ = {
  58. "_edit_use_anchors_": false
  59. }
  60. [node name="salinity" type="SpinBox" parent="canvas/aquarium_settings_button/aquarium_settings_menu"]
  61. margin_left = 128.0
  62. margin_top = 103.0
  63. margin_right = 202.0
  64. margin_bottom = 127.0
  65. __meta__ = {
  66. "_edit_use_anchors_": false
  67. }
  68. [node name="temperature" type="SpinBox" parent="canvas/aquarium_settings_button/aquarium_settings_menu"]
  69. margin_left = 129.0
  70. margin_top = 143.0
  71. margin_right = 203.0
  72. margin_bottom = 167.0
  73. __meta__ = {
  74. "_edit_use_anchors_": false
  75. }
  76. [node name="ph_label" type="Label" parent="canvas/aquarium_settings_button/aquarium_settings_menu"]
  77. margin_left = 26.2204
  78. margin_top = 67.4238
  79. margin_right = 66.2204
  80. margin_bottom = 81.4238
  81. text = "ph"
  82. [node name="salinity_label" type="Label" parent="canvas/aquarium_settings_button/aquarium_settings_menu"]
  83. margin_left = 17.9797
  84. margin_top = 104.882
  85. margin_right = 63.9797
  86. margin_bottom = 118.882
  87. text = "salinity"
  88. [node name="temperature_label" type="Label" parent="canvas/aquarium_settings_button/aquarium_settings_menu"]
  89. margin_left = 12.7356
  90. margin_top = 147.583
  91. margin_right = 92.7356
  92. margin_bottom = 161.583
  93. text = "temperature"
  94. [node name="button_ok" type="Button" parent="canvas/aquarium_settings_button/aquarium_settings_menu"]
  95. margin_left = 91.0
  96. margin_top = 187.0
  97. margin_right = 127.0
  98. margin_bottom = 207.0
  99. text = "OK"
  100. [node name="pause_button" type="Button" parent="canvas"]
  101. margin_left = 16.0
  102. margin_top = 523.0
  103. margin_right = 138.0
  104. margin_bottom = 575.0
  105. text = "menu"
  106. __meta__ = {
  107. "_edit_use_anchors_": false
  108. }
  109. [node name="pause_menu" type="Panel" parent="canvas/pause_button"]
  110. pause_mode = 2
  111. visible = false
  112. margin_left = 134.715
  113. margin_top = -421.751
  114. margin_right = 821.715
  115. margin_bottom = -13.7518
  116. script = ExtResource( 4 )
  117. __meta__ = {
  118. "_edit_use_anchors_": false
  119. }
  120. [node name="menu_title" type="Label" parent="canvas/pause_button/pause_menu"]
  121. margin_left = 261.498
  122. margin_top = 36.5334
  123. margin_right = 422.498
  124. margin_bottom = 71.5334
  125. text = "Paused"
  126. align = 1
  127. valign = 1
  128. __meta__ = {
  129. "_edit_use_anchors_": false
  130. }
  131. [node name="button_resume" type="Button" parent="canvas/pause_button/pause_menu"]
  132. margin_left = 110.0
  133. margin_top = 93.405
  134. margin_right = 560.0
  135. margin_bottom = 143.405
  136. text = "Resume Game"
  137. __meta__ = {
  138. "_edit_use_anchors_": false
  139. }
  140. [node name="button_options" type="Button" parent="canvas/pause_button/pause_menu"]
  141. margin_left = 110.0
  142. margin_top = 184.595
  143. margin_right = 560.0
  144. margin_bottom = 234.595
  145. text = "Options"
  146. __meta__ = {
  147. "_edit_use_anchors_": false
  148. }
  149. [node name="button_quit" type="Button" parent="canvas/pause_button/pause_menu"]
  150. margin_left = 110.0
  151. margin_top = 281.477
  152. margin_right = 560.0
  153. margin_bottom = 331.477
  154. text = "Exit Game"
  155. __meta__ = {
  156. "_edit_use_anchors_": false
  157. }
  158. [node name="options_menu" type="Panel" parent="canvas/pause_button/pause_menu"]
  159. visible = false
  160. margin_right = 686.0
  161. margin_bottom = 408.0
  162. script = ExtResource( 7 )
  163. [node name="menu_title" type="Label" parent="canvas/pause_button/pause_menu/options_menu"]
  164. margin_left = 295.355
  165. margin_top = 33.8284
  166. margin_right = 398.355
  167. margin_bottom = 62.8284
  168. text = "Options"
  169. __meta__ = {
  170. "_edit_use_anchors_": false
  171. }
  172. [node name="button_return" type="Button" parent="canvas/pause_button/pause_menu/options_menu"]
  173. margin_left = 225.302
  174. margin_top = 293.828
  175. margin_right = 419.302
  176. margin_bottom = 353.828
  177. text = "Return to Main Menu"
  178. __meta__ = {
  179. "_edit_use_anchors_": false
  180. }
  181. [connection signal="pressed" from="canvas/aquarium_settings_button" to="canvas/aquarium_settings_button/aquarium_settings_menu" method="_on_aquarium_settings_button_pressed"]
  182. [connection signal="pressed" from="canvas/aquarium_settings_button/aquarium_settings_menu/button_ok" to="canvas/aquarium_settings_button/aquarium_settings_menu" method="_on_button_ok_pressed"]
  183. [connection signal="pressed" from="canvas/pause_button" to="canvas/pause_button/pause_menu" method="_on_pause_button_pressed"]
  184. [connection signal="pressed" from="canvas/pause_button/pause_menu/button_resume" to="canvas/pause_button/pause_menu" method="_on_button_resume_pressed"]
  185. [connection signal="pressed" from="canvas/pause_button/pause_menu/button_options" to="canvas/pause_button/pause_menu" method="_on_button_options_pressed"]
  186. [connection signal="pressed" from="canvas/pause_button/pause_menu/button_quit" to="canvas/pause_button/pause_menu" method="_on_button_quit_pressed"]
  187. [connection signal="pressed" from="canvas/pause_button/pause_menu/options_menu/button_return" to="canvas/pause_button/pause_menu/options_menu" method="_on_button_return_pressed"]