Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / RoomUI.tscn
  1. [gd_scene load_steps=11 format=2]
  2.  
  3. [ext_resource path="res://src/game/ui/RoomUI.cs" type="Script" id=1]
  4. [ext_resource path="res://resource/sprite/ui/mapBar.png" type="Texture2D" id=2]
  5. [ext_resource path="res://prefab/ui/bar/ReloadBar.tscn" type="PackedScene" id=3]
  6. [ext_resource path="res://resource/sprite/ui/healthBar.png" type="Texture2D" id=4]
  7. [ext_resource path="res://resource/sprite/gun/gun4.png" type="Texture2D" id=5]
  8. [ext_resource path="res://resource/sprite/ui/hpBar.png" type="Texture2D" id=6]
  9. [ext_resource path="res://resource/sprite/ui/shieldBar.png" type="Texture2D" id=7]
  10. [ext_resource path="res://resource/sprite/ui/hpSlot.png" type="Texture2D" id=8]
  11. [ext_resource path="res://resource/sprite/ui/shieldSlot.png" type="Texture2D" id=9]
  12. [ext_resource path="res://prefab/ui/bar/InteractiveTipBar.tscn" type="PackedScene" id=10]
  13.  
  14. [node name="RoomUI" type="Control"]
  15. anchor_right = 1.0
  16. anchor_bottom = 1.0
  17. script = ExtResource( 1 )
  18.  
  19. [node name="Control" type="Control" parent="."]
  20. anchor_right = 1.0
  21. anchor_bottom = 1.0
  22. offset_left = 20.0
  23. offset_top = 20.0
  24. offset_right = -20.0
  25. offset_bottom = -20.0
  26.  
  27. [node name="HealthBar" type="TextureRect" parent="Control"]
  28. offset_right = 67.0
  29. offset_bottom = 14.0
  30. scale = Vector2( 4, 4 )
  31. texture = ExtResource( 4 )
  32.  
  33. [node name="HpSlot" type="NinePatchRect" parent="Control/HealthBar"]
  34. offset_left = 13.0
  35. offset_top = 1.0
  36. offset_right = 66.0
  37. offset_bottom = 9.0
  38. texture = ExtResource( 8 )
  39. patch_margin_left = 1
  40. patch_margin_top = 1
  41. patch_margin_right = 2
  42. patch_margin_bottom = 1
  43.  
  44. [node name="HpBar" type="TextureRect" parent="Control/HealthBar/HpSlot"]
  45. offset_left = 1.0
  46. offset_top = 2.0
  47. offset_right = 51.0
  48. offset_bottom = 6.0
  49. texture = ExtResource( 6 )
  50. expand = true
  51.  
  52. [node name="ShieldSlot" type="NinePatchRect" parent="Control/HealthBar"]
  53. offset_left = 13.0
  54. offset_top = 8.0
  55. offset_right = 65.0
  56. offset_bottom = 13.0
  57. texture = ExtResource( 9 )
  58. patch_margin_left = 1
  59. patch_margin_top = 1
  60. patch_margin_right = 1
  61. patch_margin_bottom = 1
  62.  
  63. [node name="ShieldBar" type="TextureRect" parent="Control/HealthBar/ShieldSlot"]
  64. offset_left = 1.0
  65. offset_top = 1.0
  66. offset_right = 51.0
  67. offset_bottom = 4.0
  68. texture = ExtResource( 7 )
  69. expand = true
  70.  
  71. [node name="MapBar" type="TextureRect" parent="Control"]
  72. anchor_left = 1.0
  73. anchor_right = 1.0
  74. offset_left = -176.0
  75. offset_right = -132.0
  76. offset_bottom = 44.0
  77. scale = Vector2( 4, 4 )
  78. texture = ExtResource( 2 )
  79.  
  80. [node name="GunBar" type="Control" parent="Control"]
  81. anchor_top = 1.0
  82. anchor_bottom = 1.0
  83. offset_top = -264.0
  84. offset_right = 264.0
  85. offset_bottom = 0.00146484
  86.  
  87. [node name="GunSprite" type="TextureRect" parent="Control/GunBar"]
  88. anchor_left = 0.5
  89. anchor_top = 0.5
  90. anchor_right = 0.5
  91. anchor_bottom = 0.5
  92. offset_left = -132.0
  93. offset_top = -132.0
  94. offset_right = -66.0
  95. offset_bottom = -66.0
  96. scale = Vector2( 4, 4 )
  97. texture = ExtResource( 5 )
  98.  
  99. [node name="BulletText" type="Label" parent="Control/GunBar"]
  100. anchor_left = 0.5
  101. anchor_right = 0.5
  102. offset_left = -89.0
  103. offset_top = 39.0
  104. offset_right = 89.0
  105. offset_bottom = 74.0
  106. text = "30/90"
  107. align = 1
  108.  
  109. [node name="GlobalNode" type="Node" parent="."]
  110.  
  111. [node name="ViewNode" type="Node" parent="."]
  112.  
  113. [node name="InteractiveTipBar" parent="ViewNode" instance=ExtResource( 10 )]
  114.  
  115. [node name="ReloadBar" parent="ViewNode" instance=ExtResource( 3 )]
  116. z_index = 15