Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / RoomUI.tscn
@小李xl 小李xl on 24 Jun 2023 3 KB 将玩家血条改为单颗红心
  1. [gd_scene load_steps=10 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://blywnftxn1cfd" path="res://resource/sprite/ui/Life_full.png" id="11_y2dqd"]
  9. [ext_resource type="Texture2D" uid="uid://k621mhhkg65f" path="res://resource/sprite/ui/mapBar.png" id="11_yaqsk"]
  10. [ext_resource type="Texture2D" uid="uid://xafbhgrxmosy" path="res://resource/sprite/weapon/gun4.png" id="12_o2big"]
  11.  
  12. [sub_resource type="Gradient" id="1"]
  13. colors = PackedColorArray(0.4, 0.498039, 1, 1, 0.4, 0.498039, 1, 0.313726)
  14.  
  15. [node name="RoomUI" type="Control"]
  16. layout_mode = 3
  17. anchors_preset = 15
  18. anchor_right = 1.0
  19. anchor_bottom = 1.0
  20. grow_horizontal = 2
  21. grow_vertical = 2
  22. mouse_filter = 2
  23. script = ExtResource("1_tfcrp")
  24.  
  25. [node name="InteractiveTipBar" type="Node2D" parent="."]
  26. z_index = 10
  27. position = Vector2(961, 553)
  28. scale = Vector2(4, 4)
  29.  
  30. [node name="Icon" type="Sprite2D" parent="InteractiveTipBar"]
  31. position = Vector2(0, -25)
  32. texture = ExtResource("2_a2ohq")
  33.  
  34. [node name="InteractiveIcon" type="Sprite2D" parent="InteractiveTipBar"]
  35. visible = false
  36. position = Vector2(0, -30)
  37. texture = ExtResource("3_h7n2a")
  38.  
  39. [node name="Line2D" type="Line2D" parent="InteractiveTipBar"]
  40. points = PackedVector2Array(0, -17, 0, -15.0938, 0, 0)
  41. width = 2.0
  42. gradient = SubResource("1")
  43.  
  44. [node name="ReloadBar" type="Node2D" parent="."]
  45. z_index = 15
  46. position = Vector2(961, 553)
  47. scale = Vector2(4, 4)
  48.  
  49. [node name="Slot" type="Sprite2D" parent="ReloadBar"]
  50. position = Vector2(0, -24)
  51. texture = ExtResource("4_nt6mj")
  52.  
  53. [node name="Block" type="Sprite2D" parent="ReloadBar/Slot"]
  54. texture = ExtResource("5_wob8d")
  55.  
  56. [node name="Control" type="Control" parent="."]
  57. anchors_preset = 0
  58. anchor_right = 1.0
  59. anchor_bottom = 1.0
  60. offset_left = 20.0
  61. offset_top = 20.0
  62. offset_right = -20.0
  63. offset_bottom = -20.0
  64. mouse_filter = 2
  65.  
  66. [node name="LifeBar" type="Control" parent="Control"]
  67. anchors_preset = 0
  68. offset_right = 40.0
  69. offset_bottom = 40.0
  70. scale = Vector2(4, 4)
  71.  
  72. [node name="Life" type="TextureRect" parent="Control/LifeBar"]
  73. layout_mode = 2
  74. offset_right = 12.0
  75. offset_bottom = 10.0
  76. texture = ExtResource("11_y2dqd")
  77.  
  78. [node name="MapBar" type="TextureRect" parent="Control"]
  79. layout_mode = 1
  80. anchors_preset = 1
  81. anchor_left = 1.0
  82. anchor_right = 1.0
  83. offset_left = -176.0
  84. offset_right = -132.0
  85. offset_bottom = 44.0
  86. grow_horizontal = 0
  87. scale = Vector2(4, 4)
  88. texture = ExtResource("11_yaqsk")
  89.  
  90. [node name="GunBar" type="Control" parent="Control"]
  91. anchors_preset = 0
  92. anchor_top = 1.0
  93. anchor_bottom = 1.0
  94. offset_top = -264.0
  95. offset_right = 264.0
  96. offset_bottom = 0.00146484
  97.  
  98. [node name="GunSprite" type="TextureRect" parent="Control/GunBar"]
  99. layout_mode = 0
  100. anchor_left = 0.5
  101. anchor_top = 0.5
  102. anchor_right = 0.5
  103. anchor_bottom = 0.5
  104. offset_left = -132.0
  105. offset_top = -132.0
  106. offset_right = -66.0
  107. offset_bottom = -66.0
  108. scale = Vector2(4, 4)
  109. texture = ExtResource("12_o2big")
  110. stretch_mode = 3
  111.  
  112. [node name="BulletText" type="Label" parent="Control/GunBar"]
  113. layout_mode = 0
  114. anchor_left = 0.5
  115. anchor_right = 0.5
  116. offset_left = -89.0
  117. offset_top = 39.0
  118. offset_right = 89.0
  119. offset_bottom = 74.0
  120. text = "30/90"
  121. horizontal_alignment = 1
  122. vertical_alignment = 1