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