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