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