HUD.tscn 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. [gd_scene load_steps=13 format=2]
  2. [ext_resource path="res://component/ui/hud/HUD.gd" type="Script" id=1]
  3. [ext_resource path="res://component/ui/hud/map_set.png" type="Texture" id=2]
  4. [ext_resource path="res://component/ui/hud/MenuDialog.gd" type="Script" id=3]
  5. [sub_resource type="DynamicFontData" id=1]
  6. font_path = "res://component/ui/Xolonium-Regular.ttf"
  7. [sub_resource type="DynamicFont" id=2]
  8. size = 64
  9. outline_size = 1
  10. outline_color = Color( 0, 0, 0, 1 )
  11. font_data = SubResource( 1 )
  12. [sub_resource type="DynamicFontData" id=3]
  13. font_path = "res://component/ui/Xolonium-Regular.ttf"
  14. [sub_resource type="DynamicFont" id=4]
  15. size = 80
  16. font_data = SubResource( 3 )
  17. [sub_resource type="InputEventAction" id=5]
  18. action = "ui_select"
  19. [sub_resource type="ShortCut" id=6]
  20. shortcut = SubResource( 5 )
  21. [sub_resource type="AtlasTexture" id=7]
  22. flags = 4
  23. atlas = ExtResource( 2 )
  24. region = Rect2( 16, 1865, 914, 471 )
  25. [sub_resource type="AtlasTexture" id=8]
  26. flags = 4
  27. atlas = ExtResource( 2 )
  28. region = Rect2( -1, 1275, 915, 471 )
  29. [sub_resource type="AtlasTexture" id=9]
  30. flags = 4
  31. atlas = ExtResource( 2 )
  32. region = Rect2( 1073, 1283, 914, 472 )
  33. [node name="HUD" type="CanvasLayer"]
  34. script = ExtResource( 1 )
  35. [node name="ScoreLabel" type="Label" parent="."]
  36. anchor_right = 1.0
  37. margin_bottom = 78.0
  38. custom_fonts/font = SubResource( 2 )
  39. text = "0"
  40. align = 1
  41. [node name="MessageLabel" type="Label" parent="."]
  42. anchor_top = 0.5
  43. anchor_right = 1.0
  44. anchor_bottom = 0.5
  45. margin_top = -270.5
  46. margin_bottom = 26.5
  47. custom_fonts/font = SubResource( 4 )
  48. text = "Help Martinus!"
  49. align = 1
  50. autowrap = true
  51. __meta__ = {
  52. "_edit_use_anchors_": false
  53. }
  54. [node name="MessageTimer" type="Timer" parent="."]
  55. wait_time = 2.15
  56. one_shot = true
  57. [node name="ColorButton" type="TextureButton" parent="."]
  58. anchor_top = 1.0
  59. anchor_right = 1.0
  60. anchor_bottom = 1.0
  61. margin_top = -200.0
  62. margin_bottom = -50.0
  63. shortcut = SubResource( 6 )
  64. texture_normal = SubResource( 7 )
  65. texture_pressed = SubResource( 8 )
  66. texture_hover = SubResource( 9 )
  67. expand = true
  68. stretch_mode = 5
  69. [node name="Start" type="Label" parent="ColorButton"]
  70. anchor_right = 1.0
  71. anchor_bottom = 1.0
  72. margin_top = 19.0
  73. custom_fonts/font = SubResource( 2 )
  74. text = "Start"
  75. align = 1
  76. [node name="MenuButton" type="Button" parent="."]
  77. anchor_left = 1.0
  78. anchor_right = 1.0
  79. margin_top = 10.0
  80. margin_right = -10.0
  81. margin_bottom = 50.0
  82. grow_horizontal = 0
  83. text = "Menu"
  84. [node name="MenuDialog" type="WindowDialog" parent="."]
  85. anchor_right = 1.0
  86. anchor_bottom = 1.0
  87. margin_left = 40.0
  88. margin_top = 40.0
  89. margin_right = -40.0
  90. margin_bottom = -40.0
  91. window_title = "Menu"
  92. script = ExtResource( 3 )
  93. [node name="Description" type="RichTextLabel" parent="MenuDialog"]
  94. anchor_right = 1.0
  95. anchor_bottom = 1.0
  96. margin_left = 20.0
  97. margin_top = 20.0
  98. margin_right = -20.0
  99. margin_bottom = -40.0
  100. bbcode_enabled = true
  101. bbcode_text = "Game made by Jovian HERSEMEULE (alias DricomDragon)
  102. [b]Game engine[/b]
  103. Made with [url=https://godotengine.org/]Godot[/url]
  104. This is an amazing Game engine made by amazing people, go check out their work.
  105. Engine licensed under MIT license.
  106. [b]Source code[/b]
  107. Made by Jovian HERSEMEULE, a.k.a. Dricom Dragon
  108. GNU GPLv3. See `LICENSE.txt` file.
  109. [b]Font[/b]
  110. I lost the license. >_<
  111. [b]Graphics[/b]
  112. [i]Fox[/i]
  113. Thanks to Elthen
  114. Art available on Itch.io : [url=https://elthen.itch.io/2d-pixel-art-fox-sprites]2D Pixel Art Fox Sprites[/url]
  115. [i]Grass[/i]
  116. Thanks to Athile
  117. Art available on OpenGameArt.org : [url=https://opengameart.org/content/seamless-grass-texture-ii]Seamless Grass Texture II[/url]
  118. Licensed CC0.
  119. [i]Chicken[/i]
  120. Thanks to Pekschi
  121. Art available on Itch.io : [url=https://pekschi.itch.io/fat-chicken]Fat Chicken Set[/url]
  122. "
  123. text = "Game made by Jovian HERSEMEULE (alias DricomDragon)
  124. Game engine
  125. Made with Godot
  126. This is an amazing Game engine made by amazing people, go check out their work.
  127. Engine licensed under MIT license.
  128. Source code
  129. Made by Jovian HERSEMEULE, a.k.a. Dricom Dragon
  130. GNU GPLv3. See `LICENSE.txt` file.
  131. Font
  132. I lost the license. >_<
  133. Graphics
  134. Fox
  135. Thanks to Elthen
  136. Art available on Itch.io : 2D Pixel Art Fox Sprites
  137. Grass
  138. Thanks to Athile
  139. Art available on OpenGameArt.org : Seamless Grass Texture II
  140. Licensed CC0.
  141. Chicken
  142. Thanks to Pekschi
  143. Art available on Itch.io : Fat Chicken Set
  144. "
  145. [node name="CloseButton" type="Button" parent="MenuDialog"]
  146. anchor_left = 0.5
  147. anchor_top = 1.0
  148. anchor_right = 0.5
  149. anchor_bottom = 1.0
  150. margin_bottom = -10.0
  151. grow_horizontal = 2
  152. grow_vertical = 0
  153. text = "Close"
  154. [connection signal="timeout" from="MessageTimer" to="." method="_on_MessageTimer_timeout"]
  155. [connection signal="pressed" from="ColorButton" to="." method="_on_StartButton_pressed"]
  156. [connection signal="button_down" from="MenuButton" to="MenuDialog" method="_on_MenuButton_button_down"]
  157. [connection signal="pressed" from="MenuDialog/CloseButton" to="MenuDialog" method="_on_CloseButton_pressed"]