Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / RoomUI.tscn
  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. script = ExtResource("1")
  20.  
  21. [node name="Control" type="Control" parent="."]
  22. anchors_preset = 0
  23. anchor_right = 1.0
  24. anchor_bottom = 1.0
  25. offset_left = 20.0
  26. offset_top = 20.0
  27. offset_right = -20.0
  28. offset_bottom = -20.0
  29.  
  30. [node name="HealthBar" type="TextureRect" parent="Control"]
  31. layout_mode = 0
  32. offset_right = 14.0
  33. offset_bottom = 14.0
  34. scale = Vector2(4, 4)
  35. texture = ExtResource("4")
  36.  
  37. [node name="HpSlot" type="NinePatchRect" parent="Control/HealthBar"]
  38. layout_mode = 0
  39. offset_left = 13.0
  40. offset_top = 1.0
  41. offset_right = 66.0
  42. offset_bottom = 9.0
  43. texture = ExtResource("8")
  44. patch_margin_left = 1
  45. patch_margin_top = 1
  46. patch_margin_right = 2
  47. patch_margin_bottom = 1
  48.  
  49. [node name="HpBar" type="TextureRect" parent="Control/HealthBar/HpSlot"]
  50. layout_mode = 0
  51. offset_left = 1.0
  52. offset_top = 2.0
  53. offset_right = 51.0
  54. offset_bottom = 6.0
  55. texture = ExtResource("6")
  56. expand_mode = 1
  57.  
  58. [node name="ShieldSlot" type="NinePatchRect" parent="Control/HealthBar"]
  59. layout_mode = 0
  60. offset_left = 13.0
  61. offset_top = 8.0
  62. offset_right = 65.0
  63. offset_bottom = 13.0
  64. texture = ExtResource("9")
  65. patch_margin_left = 1
  66. patch_margin_top = 1
  67. patch_margin_right = 1
  68. patch_margin_bottom = 1
  69.  
  70. [node name="ShieldBar" type="TextureRect" parent="Control/HealthBar/ShieldSlot"]
  71. layout_mode = 0
  72. offset_left = 1.0
  73. offset_top = 1.0
  74. offset_right = 51.0
  75. offset_bottom = 4.0
  76. texture = ExtResource("7")
  77. expand_mode = 1
  78.  
  79. [node name="MapBar" type="TextureRect" parent="Control"]
  80. layout_mode = 0
  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. scale = Vector2(4, 4)
  87. texture = ExtResource("2")
  88.  
  89. [node name="GunBar" type="Control" parent="Control"]
  90. anchors_preset = 0
  91. anchor_top = 1.0
  92. anchor_bottom = 1.0
  93. offset_top = -264.0
  94. offset_right = 264.0
  95. offset_bottom = 0.00146484
  96.  
  97. [node name="GunSprite" type="TextureRect" parent="Control/GunBar"]
  98. layout_mode = 0
  99. anchor_left = 0.5
  100. anchor_top = 0.5
  101. anchor_right = 0.5
  102. anchor_bottom = 0.5
  103. offset_left = -132.0
  104. offset_top = -132.0
  105. offset_right = -66.0
  106. offset_bottom = -66.0
  107. scale = Vector2(4, 4)
  108. texture = ExtResource("5")
  109.  
  110. [node name="BulletText" type="Label" parent="Control/GunBar"]
  111. layout_mode = 0
  112. anchor_left = 0.5
  113. anchor_right = 0.5
  114. offset_left = -89.0
  115. offset_top = 39.0
  116. offset_right = 89.0
  117. offset_bottom = 74.0
  118. text = "30/90"
  119. horizontal_alignment = 1
  120. vertical_alignment = 1
  121.  
  122. [node name="GlobalNode" type="Node" parent="."]
  123.  
  124. [node name="ViewNode" type="Node" parent="."]
  125.  
  126. [node name="InteractiveTipBar" parent="ViewNode" instance=ExtResource("10")]
  127.  
  128. [node name="ReloadBar" parent="ViewNode" instance=ExtResource("3")]
  129. z_index = 15