Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / RoomUI.tscn
  1. [gd_scene load_steps=14 format=3 uid="uid://bvpmtfupny8iu"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/roomUI/RoomUIPanel.cs" id="1_u48k1"]
  4. [ext_resource type="Texture2D" uid="uid://k621mhhkg65f" path="res://resource/sprite/ui/mapBar.png" id="2"]
  5. [ext_resource type="Texture2D" uid="uid://b67i86mtqrn32" path="res://resource/sprite/ui/icon/icon_bullet.png" id="2_004n3"]
  6. [ext_resource type="Texture2D" uid="uid://dxstii6f4l8m0" path="res://resource/sprite/ui/keyboard/e.png" id="3_ajp3c"]
  7. [ext_resource type="Texture2D" uid="uid://u5ul7fu8wv1a" path="res://resource/sprite/ui/healthBar.png" id="4"]
  8. [ext_resource type="Texture2D" uid="uid://cukrx5yyqw86o" path="res://resource/sprite/ui/reloadBar.png" id="4_npp5n"]
  9. [ext_resource type="Texture2D" uid="uid://xafbhgrxmosy" path="res://resource/sprite/gun/gun4.png" id="5"]
  10. [ext_resource type="Texture2D" uid="uid://cx3i1nkcc4307" path="res://resource/sprite/ui/reloadBarBlock.png" id="5_t7fdk"]
  11. [ext_resource type="Texture2D" uid="uid://bxd75tme0v3pb" path="res://resource/sprite/ui/hpBar.png" id="6"]
  12. [ext_resource type="Texture2D" uid="uid://h25j6uka74tv" path="res://resource/sprite/ui/shieldBar.png" id="7"]
  13. [ext_resource type="Texture2D" uid="uid://djcdjrs07ighv" path="res://resource/sprite/ui/hpSlot.png" id="8"]
  14. [ext_resource type="Texture2D" uid="uid://dnpguajopuyd7" path="res://resource/sprite/ui/shieldSlot.png" id="9"]
  15.  
  16. [sub_resource type="Gradient" id="1"]
  17. colors = PackedColorArray(0.4, 0.498039, 1, 1, 0.4, 0.498039, 1, 0.313726)
  18.  
  19. [node name="RoomUI" type="Control"]
  20. layout_mode = 3
  21. anchors_preset = 15
  22. anchor_right = 1.0
  23. anchor_bottom = 1.0
  24. grow_horizontal = 2
  25. grow_vertical = 2
  26. script = ExtResource("1_u48k1")
  27.  
  28. [node name="InteractiveTipBar" type="Node2D" parent="."]
  29. z_index = 10
  30. position = Vector2(961, 553)
  31. scale = Vector2(4, 4)
  32.  
  33. [node name="Icon" type="Sprite2D" parent="InteractiveTipBar"]
  34. position = Vector2(0, -25)
  35. texture = ExtResource("2_004n3")
  36.  
  37. [node name="InteractiveIcon" type="Sprite2D" parent="InteractiveTipBar"]
  38. visible = false
  39. position = Vector2(0, -30)
  40. texture = ExtResource("3_ajp3c")
  41.  
  42. [node name="Line2D" type="Line2D" parent="InteractiveTipBar"]
  43. points = PackedVector2Array(0, -17, 0, -15.0938, 0, 0)
  44. width = 2.0
  45. gradient = SubResource("1")
  46.  
  47. [node name="ReloadBar" type="Node2D" parent="."]
  48. z_index = 15
  49. position = Vector2(961, 553)
  50. scale = Vector2(4, 4)
  51.  
  52. [node name="Slot" type="Sprite2D" parent="ReloadBar"]
  53. position = Vector2(0, -24)
  54. texture = ExtResource("4_npp5n")
  55.  
  56. [node name="Block" type="Sprite2D" parent="ReloadBar/Slot"]
  57. texture = ExtResource("5_t7fdk")
  58.  
  59. [node name="Control" type="Control" parent="."]
  60. anchors_preset = 0
  61. anchor_right = 1.0
  62. anchor_bottom = 1.0
  63. offset_left = 20.0
  64. offset_top = 20.0
  65. offset_right = -20.0
  66. offset_bottom = -20.0
  67.  
  68. [node name="HealthBar" type="TextureRect" parent="Control"]
  69. layout_mode = 0
  70. offset_right = 14.0
  71. offset_bottom = 14.0
  72. scale = Vector2(4, 4)
  73. texture = ExtResource("4")
  74.  
  75. [node name="HpSlot" type="NinePatchRect" parent="Control/HealthBar"]
  76. layout_mode = 0
  77. offset_left = 13.0
  78. offset_top = 1.0
  79. offset_right = 66.0
  80. offset_bottom = 9.0
  81. texture = ExtResource("8")
  82. patch_margin_left = 1
  83. patch_margin_top = 1
  84. patch_margin_right = 2
  85. patch_margin_bottom = 1
  86.  
  87. [node name="HpBar" type="TextureRect" parent="Control/HealthBar/HpSlot"]
  88. layout_mode = 0
  89. offset_left = 1.0
  90. offset_top = 2.0
  91. offset_right = 51.0
  92. offset_bottom = 6.0
  93. texture = ExtResource("6")
  94. expand_mode = 1
  95.  
  96. [node name="ShieldSlot" type="NinePatchRect" parent="Control/HealthBar"]
  97. layout_mode = 0
  98. offset_left = 13.0
  99. offset_top = 8.0
  100. offset_right = 65.0
  101. offset_bottom = 13.0
  102. texture = ExtResource("9")
  103. patch_margin_left = 1
  104. patch_margin_top = 1
  105. patch_margin_right = 1
  106. patch_margin_bottom = 1
  107.  
  108. [node name="ShieldBar" type="TextureRect" parent="Control/HealthBar/ShieldSlot"]
  109. layout_mode = 0
  110. offset_left = 1.0
  111. offset_top = 1.0
  112. offset_right = 51.0
  113. offset_bottom = 4.0
  114. texture = ExtResource("7")
  115. expand_mode = 1
  116.  
  117. [node name="MapBar" type="TextureRect" parent="Control"]
  118. layout_mode = 1
  119. anchors_preset = 1
  120. anchor_left = 1.0
  121. anchor_right = 1.0
  122. offset_left = -176.0
  123. offset_right = -132.0
  124. offset_bottom = 44.0
  125. grow_horizontal = 0
  126. scale = Vector2(4, 4)
  127. texture = ExtResource("2")
  128.  
  129. [node name="GunBar" type="Control" parent="Control"]
  130. anchors_preset = 0
  131. anchor_top = 1.0
  132. anchor_bottom = 1.0
  133. offset_top = -264.0
  134. offset_right = 264.0
  135. offset_bottom = 0.00146484
  136.  
  137. [node name="GunSprite" type="TextureRect" parent="Control/GunBar"]
  138. layout_mode = 0
  139. anchor_left = 0.5
  140. anchor_top = 0.5
  141. anchor_right = 0.5
  142. anchor_bottom = 0.5
  143. offset_left = -132.0
  144. offset_top = -132.0
  145. offset_right = -66.0
  146. offset_bottom = -66.0
  147. scale = Vector2(4, 4)
  148. texture = ExtResource("5")
  149.  
  150. [node name="BulletText" type="Label" parent="Control/GunBar"]
  151. layout_mode = 0
  152. anchor_left = 0.5
  153. anchor_right = 0.5
  154. offset_left = -89.0
  155. offset_top = 39.0
  156. offset_right = 89.0
  157. offset_bottom = 74.0
  158. text = "30/90"
  159. horizontal_alignment = 1
  160. vertical_alignment = 1