Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / RoomUI.tscn
@小李xl 小李xl on 8 Jul 2023 9 KB 完成道具充能进度条
  1. [gd_scene load_steps=20 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/roomUI/icon_bullet.png" id="2_ruc0p"]
  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/roomUI/ReloadBar.png" id="4_hy44s"]
  7. [ext_resource type="Texture2D" uid="uid://cx3i1nkcc4307" path="res://resource/sprite/ui/roomUI/ReloadBarBlock.png" id="5_w3lq2"]
  8. [ext_resource type="Texture2D" uid="uid://blywnftxn1cfd" path="res://resource/sprite/ui/roomUI/Life_full.png" id="6_ggviq"]
  9. [ext_resource type="Texture2D" uid="uid://k621mhhkg65f" path="res://resource/sprite/ui/roomUI/MapBar.png" id="7_p6pvs"]
  10. [ext_resource type="Texture2D" uid="uid://cu0wlvrbntvyd" path="res://resource/sprite/prop/active/ActiveProp5000.png" id="10_5d4np"]
  11. [ext_resource type="Texture2D" uid="uid://b8u6s5n37157" path="res://resource/sprite/ui/roomUI/Panel2.png" id="10_eokvx"]
  12. [ext_resource type="Texture2D" uid="uid://0swkya4hn82c" path="res://resource/sprite/ui/roomUI/Panel.png" id="10_q3fs8"]
  13. [ext_resource type="Texture2D" uid="uid://504f1r0mi33n" path="res://resource/sprite/weapon/weapon0005/Weapon0005.png" id="11_lsai4"]
  14. [ext_resource type="Texture2D" uid="uid://bsu7re1lxnr72" path="res://resource/sprite/ui/roomUI/Cooldown.png" id="11_p0smc"]
  15. [ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="12_fgyob"]
  16. [ext_resource type="Texture2D" uid="uid://dwysndc5ffski" path="res://resource/sprite/ui/roomUI/ChargeProgressBar.png" id="13_6w7qi"]
  17. [ext_resource type="Texture2D" uid="uid://ck0w7at3oat5" path="res://resource/sprite/ui/roomUI/ChargeProgress.png" id="13_vuglj"]
  18.  
  19. [sub_resource type="Gradient" id="1"]
  20. colors = PackedColorArray(0.4, 0.498039, 1, 1, 0.4, 0.498039, 1, 0.313726)
  21.  
  22. [sub_resource type="LabelSettings" id="LabelSettings_toas6"]
  23. font_size = 32
  24. outline_size = 8
  25. outline_color = Color(0, 0, 0, 1)
  26.  
  27. [sub_resource type="ShaderMaterial" id="ShaderMaterial_msp2c"]
  28. resource_local_to_scene = true
  29. shader = ExtResource("12_fgyob")
  30. shader_parameter/blend = Color(0, 0, 0, 1)
  31. shader_parameter/schedule = 0.0
  32. shader_parameter/modulate = Color(1, 1, 1, 1)
  33. shader_parameter/show_outline = true
  34. shader_parameter/outline_color = Color(0.941176, 0.941176, 0.941176, 1)
  35. shader_parameter/outline_rainbow = false
  36.  
  37. [sub_resource type="ShaderMaterial" id="ShaderMaterial_7pkeh"]
  38. resource_local_to_scene = true
  39. shader = ExtResource("12_fgyob")
  40. shader_parameter/blend = Color(1, 1, 1, 1)
  41. shader_parameter/schedule = 0.0
  42. shader_parameter/modulate = Color(1, 1, 1, 1)
  43. shader_parameter/show_outline = true
  44. shader_parameter/outline_color = Color(0.941176, 0.941176, 0.941176, 1)
  45. shader_parameter/outline_rainbow = false
  46.  
  47. [node name="RoomUI" type="Control"]
  48. layout_mode = 3
  49. anchors_preset = 15
  50. anchor_right = 1.0
  51. anchor_bottom = 1.0
  52. grow_horizontal = 2
  53. grow_vertical = 2
  54. mouse_filter = 2
  55. script = ExtResource("1_tfcrp")
  56. metadata/_edit_vertical_guides_ = [1901.0]
  57. metadata/_edit_horizontal_guides_ = [954.0, 1062.0]
  58.  
  59. [node name="InteractiveTipBar" type="Control" parent="."]
  60. anchors_preset = 0
  61. offset_left = 960.0
  62. offset_top = 552.0
  63. offset_right = 960.0
  64. offset_bottom = 552.0
  65. scale = Vector2(4, 4)
  66.  
  67. [node name="Icon" type="TextureRect" parent="InteractiveTipBar"]
  68. layout_mode = 1
  69. anchors_preset = 8
  70. anchor_left = 0.5
  71. anchor_top = 0.5
  72. anchor_right = 0.5
  73. anchor_bottom = 0.5
  74. offset_left = -8.0
  75. offset_top = -34.0
  76. offset_right = 8.0
  77. offset_bottom = -18.0
  78. grow_horizontal = 2
  79. grow_vertical = 2
  80. texture = ExtResource("2_ruc0p")
  81.  
  82. [node name="InteractiveIcon" type="TextureRect" parent="InteractiveTipBar"]
  83. visible = false
  84. layout_mode = 0
  85. offset_top = -30.0
  86. offset_bottom = -30.0
  87. texture = ExtResource("3_h7n2a")
  88.  
  89. [node name="Line2D" type="Line2D" parent="InteractiveTipBar"]
  90. points = PackedVector2Array(0, -18, 0, 0)
  91. width = 2.0
  92. gradient = SubResource("1")
  93.  
  94. [node name="NameLabel" type="Label" parent="InteractiveTipBar"]
  95. layout_mode = 1
  96. anchors_preset = 7
  97. anchor_left = 0.5
  98. anchor_top = 1.0
  99. anchor_right = 0.5
  100. anchor_bottom = 1.0
  101. offset_left = -32.0
  102. offset_top = -58.0
  103. offset_right = 224.0
  104. offset_bottom = 55.0
  105. grow_horizontal = 2
  106. grow_vertical = 0
  107. scale = Vector2(0.25, 0.25)
  108. text = "物体名称"
  109. label_settings = SubResource("LabelSettings_toas6")
  110. horizontal_alignment = 1
  111. vertical_alignment = 2
  112. autowrap_mode = 2
  113. clip_text = true
  114. text_overrun_behavior = 2
  115.  
  116. [node name="ReloadBar" type="Control" parent="."]
  117. anchors_preset = 0
  118. offset_left = 960.0
  119. offset_top = 552.0
  120. offset_right = 960.0
  121. offset_bottom = 552.0
  122. scale = Vector2(4, 4)
  123.  
  124. [node name="Slot" type="TextureRect" parent="ReloadBar"]
  125. layout_mode = 1
  126. anchors_preset = 7
  127. anchor_left = 0.5
  128. anchor_top = 1.0
  129. anchor_right = 0.5
  130. anchor_bottom = 1.0
  131. offset_left = -16.0
  132. offset_top = -26.0
  133. offset_right = 14.0
  134. offset_bottom = -21.0
  135. grow_horizontal = 2
  136. grow_vertical = 0
  137. texture = ExtResource("4_hy44s")
  138.  
  139. [node name="Block" type="Sprite2D" parent="ReloadBar/Slot"]
  140. position = Vector2(1, 0)
  141. texture = ExtResource("5_w3lq2")
  142. centered = false
  143.  
  144. [node name="Control" type="Control" parent="."]
  145. layout_mode = 1
  146. anchors_preset = 15
  147. anchor_right = 1.0
  148. anchor_bottom = 1.0
  149. offset_left = 20.0
  150. offset_top = 20.0
  151. offset_right = -20.0
  152. offset_bottom = -20.0
  153. grow_horizontal = 2
  154. grow_vertical = 2
  155. mouse_filter = 2
  156. metadata/_edit_lock_ = true
  157.  
  158. [node name="LifeBar" type="Control" parent="Control"]
  159. anchors_preset = 0
  160. offset_right = 40.0
  161. offset_bottom = 40.0
  162. scale = Vector2(4, 4)
  163.  
  164. [node name="Life" type="TextureRect" parent="Control/LifeBar"]
  165. layout_mode = 2
  166. offset_right = 12.0
  167. offset_bottom = 10.0
  168. texture = ExtResource("6_ggviq")
  169.  
  170. [node name="MapBar" type="TextureRect" parent="Control"]
  171. layout_mode = 1
  172. anchors_preset = 1
  173. anchor_left = 1.0
  174. anchor_right = 1.0
  175. offset_left = -176.0
  176. offset_right = -132.0
  177. offset_bottom = 44.0
  178. grow_horizontal = 0
  179. scale = Vector2(4, 4)
  180. texture = ExtResource("7_p6pvs")
  181.  
  182. [node name="ActivePropBar" type="Control" parent="Control"]
  183. layout_mode = 1
  184. anchors_preset = 2
  185. anchor_top = 1.0
  186. anchor_bottom = 1.0
  187. offset_top = -106.0
  188. offset_right = 45.0
  189. offset_bottom = -79.0
  190. grow_vertical = 0
  191. scale = Vector2(4, 4)
  192.  
  193. [node name="ActivePropBg" type="NinePatchRect" parent="Control/ActivePropBar"]
  194. layout_mode = 1
  195. anchors_preset = 15
  196. anchor_right = 1.0
  197. anchor_bottom = 1.0
  198. offset_left = 1.0
  199. offset_top = 1.0
  200. offset_right = -1.0
  201. offset_bottom = -1.0
  202. grow_horizontal = 2
  203. grow_vertical = 2
  204. texture = ExtResource("10_q3fs8")
  205. region_rect = Rect2(2, 2, 4, 4)
  206. patch_margin_left = 3
  207. patch_margin_top = 3
  208. patch_margin_right = 3
  209. patch_margin_bottom = 3
  210.  
  211. [node name="ActivePropSprite" type="TextureRect" parent="Control/ActivePropBar"]
  212. material = SubResource("ShaderMaterial_msp2c")
  213. layout_mode = 1
  214. anchors_preset = 15
  215. anchor_right = 1.0
  216. anchor_bottom = 1.0
  217. grow_horizontal = 2
  218. grow_vertical = 2
  219. texture = ExtResource("10_5d4np")
  220. stretch_mode = 3
  221.  
  222. [node name="CooldownProgress" type="Sprite2D" parent="Control/ActivePropBar"]
  223. position = Vector2(1, 0.99999)
  224. scale = Vector2(43, 25)
  225. texture = ExtResource("11_p0smc")
  226. centered = false
  227. region_enabled = true
  228. region_rect = Rect2(0, 0, 1, 1)
  229.  
  230. [node name="ActivePropCount" type="Label" parent="Control/ActivePropBar"]
  231. layout_mode = 1
  232. anchors_preset = 3
  233. anchor_left = 1.0
  234. anchor_top = 1.0
  235. anchor_right = 1.0
  236. anchor_bottom = 1.0
  237. offset_left = -43.0
  238. offset_top = -10.75
  239. offset_right = 121.0
  240. offset_bottom = 32.25
  241. grow_horizontal = 0
  242. grow_vertical = 0
  243. scale = Vector2(0.25, 0.25)
  244. text = "10
  245. "
  246. horizontal_alignment = 2
  247. vertical_alignment = 1
  248.  
  249. [node name="ActivePropPanel" type="NinePatchRect" parent="Control/ActivePropBar"]
  250. layout_mode = 1
  251. anchors_preset = 15
  252. anchor_right = 1.0
  253. anchor_bottom = 1.0
  254. grow_horizontal = 2
  255. grow_vertical = 2
  256. texture = ExtResource("10_eokvx")
  257. region_rect = Rect2(0, 0, 8, 8)
  258. patch_margin_left = 2
  259. patch_margin_top = 2
  260. patch_margin_right = 2
  261. patch_margin_bottom = 2
  262.  
  263. [node name="ChargeProgressBar" type="NinePatchRect" parent="Control/ActivePropBar"]
  264. layout_mode = 1
  265. anchors_preset = 9
  266. anchor_bottom = 1.0
  267. offset_right = 5.0
  268. grow_vertical = 2
  269. texture = ExtResource("13_6w7qi")
  270. patch_margin_left = 2
  271. patch_margin_top = 3
  272. patch_margin_right = 1
  273. patch_margin_bottom = 3
  274.  
  275. [node name="ChargeProgress" type="Sprite2D" parent="Control/ActivePropBar"]
  276. position = Vector2(1, 1)
  277. texture = ExtResource("13_vuglj")
  278. centered = false
  279. region_enabled = true
  280. region_rect = Rect2(0, 0, 3, 25)
  281.  
  282. [node name="WeaponBar" type="Control" parent="Control"]
  283. layout_mode = 1
  284. anchors_preset = 3
  285. anchor_left = 1.0
  286. anchor_top = 1.0
  287. anchor_right = 1.0
  288. anchor_bottom = 1.0
  289. offset_left = -261.0
  290. offset_top = -150.0
  291. offset_right = -196.0
  292. offset_bottom = -112.0
  293. grow_horizontal = 0
  294. grow_vertical = 0
  295. scale = Vector2(4, 4)
  296.  
  297. [node name="WeaponPanel" type="NinePatchRect" parent="Control/WeaponBar"]
  298. layout_mode = 1
  299. anchors_preset = 9
  300. anchor_bottom = 1.0
  301. offset_top = 11.0
  302. offset_right = 53.0
  303. grow_vertical = 2
  304. texture = ExtResource("10_q3fs8")
  305. region_rect = Rect2(0, 0, 8, 8)
  306. patch_margin_left = 2
  307. patch_margin_top = 2
  308. patch_margin_right = 2
  309. patch_margin_bottom = 2
  310.  
  311. [node name="WeaponSprite" type="TextureRect" parent="Control/WeaponBar/WeaponPanel"]
  312. material = SubResource("ShaderMaterial_7pkeh")
  313. layout_mode = 1
  314. anchors_preset = 15
  315. anchor_right = 1.0
  316. anchor_bottom = 1.0
  317. grow_horizontal = 2
  318. grow_vertical = 2
  319. texture = ExtResource("11_lsai4")
  320. stretch_mode = 3
  321.  
  322. [node name="AmmoCount" type="Label" parent="Control/WeaponBar"]
  323. layout_mode = 1
  324. anchors_preset = 1
  325. anchor_left = 1.0
  326. anchor_right = 1.0
  327. offset_left = -56.5
  328. offset_right = 121.5
  329. offset_bottom = 43.0
  330. grow_horizontal = 0
  331. scale = Vector2(0.25, 0.25)
  332. text = "30/90"
  333. horizontal_alignment = 2
  334. vertical_alignment = 1