HUD.tscn 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. [gd_scene load_steps=12 format=2]
  2. [ext_resource path="res://HUD.gd" type="Script" id=1]
  3. [ext_resource path="res://dodge_assets/art/map_set.png" type="Texture" id=2]
  4. [sub_resource type="DynamicFontData" id=1]
  5. font_path = "res://dodge_assets/fonts/Xolonium-Regular.ttf"
  6. [sub_resource type="DynamicFont" id=2]
  7. size = 64
  8. outline_size = 1
  9. outline_color = Color( 0, 0, 0, 1 )
  10. font_data = SubResource( 1 )
  11. [sub_resource type="DynamicFontData" id=3]
  12. font_path = "res://dodge_assets/fonts/Xolonium-Regular.ttf"
  13. [sub_resource type="DynamicFont" id=4]
  14. size = 80
  15. font_data = SubResource( 3 )
  16. [sub_resource type="InputEventAction" id=12]
  17. action = "ui_select"
  18. [sub_resource type="ShortCut" id=13]
  19. shortcut = SubResource( 12 )
  20. [sub_resource type="AtlasTexture" id=9]
  21. flags = 4
  22. atlas = ExtResource( 2 )
  23. region = Rect2( 16, 1865, 914, 471 )
  24. [sub_resource type="AtlasTexture" id=10]
  25. flags = 4
  26. atlas = ExtResource( 2 )
  27. region = Rect2( -1, 1275, 915, 471 )
  28. [sub_resource type="AtlasTexture" id=11]
  29. flags = 4
  30. atlas = ExtResource( 2 )
  31. region = Rect2( 1073, 1283, 914, 472 )
  32. [node name="HUD" type="CanvasLayer"]
  33. script = ExtResource( 1 )
  34. [node name="ScoreLabel" type="Label" parent="."]
  35. anchor_right = 1.0
  36. margin_bottom = 78.0
  37. custom_fonts/font = SubResource( 2 )
  38. text = "0"
  39. align = 1
  40. [node name="MessageLabel" type="Label" parent="."]
  41. anchor_top = 0.5
  42. anchor_right = 1.0
  43. anchor_bottom = 0.5
  44. margin_top = -148.5
  45. margin_bottom = 148.5
  46. custom_fonts/font = SubResource( 4 )
  47. text = "Dodge the creeps!"
  48. align = 1
  49. autowrap = true
  50. [node name="MessageTimer" type="Timer" parent="."]
  51. wait_time = 2.15
  52. one_shot = true
  53. [node name="ColorButton" type="TextureButton" parent="."]
  54. anchor_top = 1.0
  55. anchor_right = 1.0
  56. anchor_bottom = 1.0
  57. margin_top = -200.0
  58. margin_bottom = -50.0
  59. shortcut = SubResource( 13 )
  60. texture_normal = SubResource( 9 )
  61. texture_pressed = SubResource( 10 )
  62. texture_hover = SubResource( 11 )
  63. expand = true
  64. stretch_mode = 5
  65. [node name="Start" type="Label" parent="ColorButton"]
  66. anchor_right = 1.0
  67. anchor_bottom = 1.0
  68. margin_top = 19.0
  69. custom_fonts/font = SubResource( 2 )
  70. text = "Start"
  71. align = 1
  72. [connection signal="timeout" from="MessageTimer" to="." method="_on_MessageTimer_timeout"]
  73. [connection signal="pressed" from="ColorButton" to="." method="_on_StartButton_pressed"]