HUD.tscn 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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 = "[b]DodgyFox version 1.6[/b]
  102. Game developed by Jovian HERSEMEULE (alias DricomDragon)
  103. [b]Game engine[/b]
  104. Made with [url=https://godotengine.org/]Godot[/url]
  105. This is an amazing Game engine made by amazing people, go check out their work.
  106. Engine licensed under MIT license.
  107. [b]Source code[/b]
  108. Written by Jovian HERSEMEULE, a.k.a. Dricom Dragon
  109. GNU GPLv3.
  110. [b]Font[/b]
  111. I lost the license. >_<
  112. [b]Graphics[/b]
  113. [i]Fox[/i]
  114. Thanks to Elthen
  115. Art available on Itch.io : [url=https://elthen.itch.io/2d-pixel-art-fox-sprites]2D Pixel Art Fox Sprites[/url]
  116. [i]Grass[/i]
  117. Thanks to Athile
  118. Art available on OpenGameArt.org : [url=https://opengameart.org/content/seamless-grass-texture-ii]Seamless Grass Texture II[/url]
  119. Licensed CC0.
  120. [i]Chicken[/i]
  121. Thanks to Pekschi
  122. Art available on Itch.io : [url=https://pekschi.itch.io/fat-chicken]Fat Chicken Set[/url]
  123. "
  124. text = "DodgyFox version 1.6
  125. Game developed by Jovian HERSEMEULE (alias DricomDragon)
  126. Game engine
  127. Made with Godot
  128. This is an amazing Game engine made by amazing people, go check out their work.
  129. Engine licensed under MIT license.
  130. Source code
  131. Written by Jovian HERSEMEULE, a.k.a. Dricom Dragon
  132. GNU GPLv3.
  133. Font
  134. I lost the license. >_<
  135. Graphics
  136. Fox
  137. Thanks to Elthen
  138. Art available on Itch.io : 2D Pixel Art Fox Sprites
  139. Grass
  140. Thanks to Athile
  141. Art available on OpenGameArt.org : Seamless Grass Texture II
  142. Licensed CC0.
  143. Chicken
  144. Thanks to Pekschi
  145. Art available on Itch.io : Fat Chicken Set
  146. "
  147. [node name="CloseButton" type="Button" parent="MenuDialog"]
  148. anchor_left = 0.5
  149. anchor_top = 1.0
  150. anchor_right = 0.5
  151. anchor_bottom = 1.0
  152. margin_bottom = -10.0
  153. grow_horizontal = 2
  154. grow_vertical = 0
  155. text = "Close"
  156. [connection signal="timeout" from="MessageTimer" to="." method="_on_MessageTimer_timeout"]
  157. [connection signal="pressed" from="ColorButton" to="." method="_on_StartButton_pressed"]
  158. [connection signal="button_down" from="MenuButton" to="MenuDialog" method="_on_MenuButton_button_down"]
  159. [connection signal="pressed" from="MenuDialog/CloseButton" to="MenuDialog" method="_on_CloseButton_pressed"]