Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / RoomUI.tscn
@小李xl 小李xl on 24 Aug 2022 3 KB 架构调整
  1. [gd_scene load_steps=11 format=2]
  2.  
  3. [ext_resource path="res://src/game/ui/RoomUI.cs" type="Script" id=1]
  4. [ext_resource path="res://resource/sprite/ui/mapBar.png" type="Texture" id=2]
  5. [ext_resource path="res://prefab/ui/bar/ReloadBar.tscn" type="PackedScene" id=3]
  6. [ext_resource path="res://resource/sprite/ui/healthBar.png" type="Texture" id=4]
  7. [ext_resource path="res://resource/sprite/gun/gun4.png" type="Texture" id=5]
  8. [ext_resource path="res://resource/sprite/ui/hpBar.png" type="Texture" id=6]
  9. [ext_resource path="res://resource/sprite/ui/shieldBar.png" type="Texture" id=7]
  10. [ext_resource path="res://resource/sprite/ui/hpSlot.png" type="Texture" id=8]
  11. [ext_resource path="res://resource/sprite/ui/shieldSlot.png" type="Texture" id=9]
  12. [ext_resource path="res://prefab/ui/bar/InteractiveTipBar.tscn" type="PackedScene" id=10]
  13.  
  14. [node name="RoomUI" type="Control"]
  15. anchor_right = 1.0
  16. anchor_bottom = 1.0
  17. script = ExtResource( 1 )
  18.  
  19. [node name="Control" type="Control" parent="."]
  20. anchor_right = 1.0
  21. anchor_bottom = 1.0
  22. margin_left = 20.0
  23. margin_top = 20.0
  24. margin_right = -20.0
  25. margin_bottom = -20.0
  26.  
  27. [node name="HealthBar" type="TextureRect" parent="Control"]
  28. margin_right = 55.0
  29. margin_bottom = 14.0
  30. texture = ExtResource( 4 )
  31.  
  32. [node name="HpSlot" type="NinePatchRect" parent="Control/HealthBar"]
  33. margin_left = 13.0
  34. margin_top = 1.0
  35. margin_right = 66.0
  36. margin_bottom = 9.0
  37. texture = ExtResource( 8 )
  38. patch_margin_left = 1
  39. patch_margin_top = 1
  40. patch_margin_right = 2
  41. patch_margin_bottom = 1
  42.  
  43. [node name="HpBar" type="TextureRect" parent="Control/HealthBar/HpSlot"]
  44. margin_left = 1.0
  45. margin_top = 2.0
  46. margin_right = 51.0
  47. margin_bottom = 6.0
  48. texture = ExtResource( 6 )
  49. expand = true
  50.  
  51. [node name="ShieldSlot" type="NinePatchRect" parent="Control/HealthBar"]
  52. margin_left = 13.0
  53. margin_top = 8.0
  54. margin_right = 65.0
  55. margin_bottom = 13.0
  56. texture = ExtResource( 9 )
  57. patch_margin_left = 1
  58. patch_margin_top = 1
  59. patch_margin_right = 1
  60. patch_margin_bottom = 1
  61.  
  62. [node name="ShieldBar" type="TextureRect" parent="Control/HealthBar/ShieldSlot"]
  63. margin_left = 1.0
  64. margin_top = 1.0
  65. margin_right = 51.0
  66. margin_bottom = 4.0
  67. texture = ExtResource( 7 )
  68. expand = true
  69.  
  70. [node name="MapBar" type="TextureRect" parent="Control"]
  71. anchor_left = 1.0
  72. anchor_right = 1.0
  73. margin_left = -44.0
  74. margin_bottom = 44.0
  75. texture = ExtResource( 2 )
  76.  
  77. [node name="GunBar" type="Control" parent="Control"]
  78. anchor_top = 1.0
  79. anchor_bottom = 1.0
  80. margin_top = -43.0
  81. margin_right = 40.0
  82.  
  83. [node name="GunSprite" type="TextureRect" parent="Control/GunBar"]
  84. anchor_left = 0.5
  85. anchor_top = 0.5
  86. anchor_right = 0.5
  87. anchor_bottom = 0.5
  88. margin_left = -33.0
  89. margin_top = -33.0
  90. margin_right = 33.0
  91. margin_bottom = 33.0
  92. texture = ExtResource( 5 )
  93.  
  94. [node name="BulletText" type="Label" parent="Control/GunBar"]
  95. anchor_left = 0.5
  96. anchor_right = 0.5
  97. margin_left = -28.0
  98. margin_right = 28.0
  99. margin_bottom = 17.0
  100. text = "30/90"
  101. align = 1
  102.  
  103. [node name="GlobalNode" type="Node" parent="."]
  104.  
  105. [node name="InteractiveTipBar" parent="GlobalNode" instance=ExtResource( 10 )]
  106. visible = true
  107.  
  108. [node name="ReloadBar" parent="GlobalNode" instance=ExtResource( 3 )]