Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / RoomUI.tscn
@小李xl 小李xl on 14 Feb 2023 3 KB ai射击频率修改
  1. [gd_scene load_steps=11 format=3 uid="uid://bvpmtfupny8iu"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/RoomUI.cs" id="1"]
  4. [ext_resource type="Texture2D" uid="uid://k621mhhkg65f" path="res://resource/sprite/ui/mapBar.png" id="2"]
  5. [ext_resource type="PackedScene" path="res://prefab/ui/bar/ReloadBar.tscn" id="3"]
  6. [ext_resource type="Texture2D" uid="uid://u5ul7fu8wv1a" path="res://resource/sprite/ui/healthBar.png" id="4"]
  7. [ext_resource type="Texture2D" uid="uid://xafbhgrxmosy" path="res://resource/sprite/gun/gun4.png" id="5"]
  8. [ext_resource type="Texture2D" uid="uid://bxd75tme0v3pb" path="res://resource/sprite/ui/hpBar.png" id="6"]
  9. [ext_resource type="Texture2D" uid="uid://h25j6uka74tv" path="res://resource/sprite/ui/shieldBar.png" id="7"]
  10. [ext_resource type="Texture2D" uid="uid://djcdjrs07ighv" path="res://resource/sprite/ui/hpSlot.png" id="8"]
  11. [ext_resource type="Texture2D" uid="uid://dnpguajopuyd7" path="res://resource/sprite/ui/shieldSlot.png" id="9"]
  12. [ext_resource type="PackedScene" path="res://prefab/ui/bar/InteractiveTipBar.tscn" id="10"]
  13.  
  14. [node name="RoomUI" type="Control"]
  15. layout_mode = 3
  16. anchors_preset = 15
  17. anchor_right = 1.0
  18. anchor_bottom = 1.0
  19. grow_horizontal = 2
  20. grow_vertical = 2
  21. script = ExtResource("1")
  22.  
  23. [node name="Control" type="Control" parent="."]
  24. anchors_preset = 0
  25. anchor_right = 1.0
  26. anchor_bottom = 1.0
  27. offset_left = 20.0
  28. offset_top = 20.0
  29. offset_right = -20.0
  30. offset_bottom = -20.0
  31.  
  32. [node name="HealthBar" type="TextureRect" parent="Control"]
  33. layout_mode = 0
  34. offset_right = 14.0
  35. offset_bottom = 14.0
  36. scale = Vector2(4, 4)
  37. texture = ExtResource("4")
  38.  
  39. [node name="HpSlot" type="NinePatchRect" parent="Control/HealthBar"]
  40. layout_mode = 0
  41. offset_left = 13.0
  42. offset_top = 1.0
  43. offset_right = 66.0
  44. offset_bottom = 9.0
  45. texture = ExtResource("8")
  46. patch_margin_left = 1
  47. patch_margin_top = 1
  48. patch_margin_right = 2
  49. patch_margin_bottom = 1
  50.  
  51. [node name="HpBar" type="TextureRect" parent="Control/HealthBar/HpSlot"]
  52. layout_mode = 0
  53. offset_left = 1.0
  54. offset_top = 2.0
  55. offset_right = 51.0
  56. offset_bottom = 6.0
  57. texture = ExtResource("6")
  58. expand_mode = 1
  59.  
  60. [node name="ShieldSlot" type="NinePatchRect" parent="Control/HealthBar"]
  61. layout_mode = 0
  62. offset_left = 13.0
  63. offset_top = 8.0
  64. offset_right = 65.0
  65. offset_bottom = 13.0
  66. texture = ExtResource("9")
  67. patch_margin_left = 1
  68. patch_margin_top = 1
  69. patch_margin_right = 1
  70. patch_margin_bottom = 1
  71.  
  72. [node name="ShieldBar" type="TextureRect" parent="Control/HealthBar/ShieldSlot"]
  73. layout_mode = 0
  74. offset_left = 1.0
  75. offset_top = 1.0
  76. offset_right = 51.0
  77. offset_bottom = 4.0
  78. texture = ExtResource("7")
  79. expand_mode = 1
  80.  
  81. [node name="MapBar" type="TextureRect" parent="Control"]
  82. layout_mode = 0
  83. anchor_left = 1.0
  84. anchor_right = 1.0
  85. offset_left = -176.0
  86. offset_right = -132.0
  87. offset_bottom = 44.0
  88. scale = Vector2(4, 4)
  89. texture = ExtResource("2")
  90.  
  91. [node name="GunBar" type="Control" parent="Control"]
  92. anchors_preset = 0
  93. anchor_top = 1.0
  94. anchor_bottom = 1.0
  95. offset_top = -264.0
  96. offset_right = 264.0
  97. offset_bottom = 0.00146484
  98.  
  99. [node name="GunSprite" type="TextureRect" parent="Control/GunBar"]
  100. layout_mode = 0
  101. anchor_left = 0.5
  102. anchor_top = 0.5
  103. anchor_right = 0.5
  104. anchor_bottom = 0.5
  105. offset_left = -132.0
  106. offset_top = -132.0
  107. offset_right = -66.0
  108. offset_bottom = -66.0
  109. scale = Vector2(4, 4)
  110. texture = ExtResource("5")
  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
  123.  
  124. [node name="GlobalNode" type="Node" parent="."]
  125.  
  126. [node name="ViewNode" type="Node" parent="."]
  127.  
  128. [node name="InteractiveTipBar" parent="ViewNode" instance=ExtResource("10")]
  129.  
  130. [node name="ReloadBar" parent="ViewNode" instance=ExtResource("3")]
  131. z_index = 15