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