Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / RoomUI.tscn
@小李xl 小李xl on 7 Jun 2023 4 KB 加载武器
[gd_scene load_steps=14 format=3 uid="uid://bvpmtfupny8iu"]

[ext_resource type="Script" path="res://src/game/ui/roomUI/RoomUIPanel.cs" id="1_tfcrp"]
[ext_resource type="Texture2D" uid="uid://b67i86mtqrn32" path="res://resource/sprite/ui/icon/icon_bullet.png" id="2_a2ohq"]
[ext_resource type="Texture2D" uid="uid://dxstii6f4l8m0" path="res://resource/sprite/ui/keyboard/e.png" id="3_h7n2a"]
[ext_resource type="Texture2D" uid="uid://cukrx5yyqw86o" path="res://resource/sprite/ui/reloadBar.png" id="4_nt6mj"]
[ext_resource type="Texture2D" uid="uid://cx3i1nkcc4307" path="res://resource/sprite/ui/reloadBarBlock.png" id="5_wob8d"]
[ext_resource type="Texture2D" uid="uid://u5ul7fu8wv1a" path="res://resource/sprite/ui/healthBar.png" id="6_e4f48"]
[ext_resource type="Texture2D" uid="uid://djcdjrs07ighv" path="res://resource/sprite/ui/hpSlot.png" id="7_kk5l8"]
[ext_resource type="Texture2D" uid="uid://bxd75tme0v3pb" path="res://resource/sprite/ui/hpBar.png" id="8_j85pm"]
[ext_resource type="Texture2D" uid="uid://dnpguajopuyd7" path="res://resource/sprite/ui/shieldSlot.png" id="9_spw0e"]
[ext_resource type="Texture2D" uid="uid://h25j6uka74tv" path="res://resource/sprite/ui/shieldBar.png" id="10_8lm6q"]
[ext_resource type="Texture2D" uid="uid://k621mhhkg65f" path="res://resource/sprite/ui/mapBar.png" id="11_yaqsk"]
[ext_resource type="Texture2D" uid="uid://xafbhgrxmosy" path="res://resource/sprite/weapon/gun4.png" id="12_o2big"]

[sub_resource type="Gradient" id="1"]
colors = PackedColorArray(0.4, 0.498039, 1, 1, 0.4, 0.498039, 1, 0.313726)

[node name="RoomUI" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("1_tfcrp")

[node name="InteractiveTipBar" type="Node2D" parent="."]
z_index = 10
position = Vector2(961, 553)
scale = Vector2(4, 4)

[node name="Icon" type="Sprite2D" parent="InteractiveTipBar"]
position = Vector2(0, -25)
texture = ExtResource("2_a2ohq")

[node name="InteractiveIcon" type="Sprite2D" parent="InteractiveTipBar"]
visible = false
position = Vector2(0, -30)
texture = ExtResource("3_h7n2a")

[node name="Line2D" type="Line2D" parent="InteractiveTipBar"]
points = PackedVector2Array(0, -17, 0, -15.0938, 0, 0)
width = 2.0
gradient = SubResource("1")

[node name="ReloadBar" type="Node2D" parent="."]
z_index = 15
position = Vector2(961, 553)
scale = Vector2(4, 4)

[node name="Slot" type="Sprite2D" parent="ReloadBar"]
position = Vector2(0, -24)
texture = ExtResource("4_nt6mj")

[node name="Block" type="Sprite2D" parent="ReloadBar/Slot"]
texture = ExtResource("5_wob8d")

[node name="Control" type="Control" parent="."]
anchors_preset = 0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 20.0
offset_top = 20.0
offset_right = -20.0
offset_bottom = -20.0
mouse_filter = 2

[node name="HealthBar" type="TextureRect" parent="Control"]
layout_mode = 0
offset_right = 14.0
offset_bottom = 14.0
scale = Vector2(4, 4)
texture = ExtResource("6_e4f48")

[node name="HpSlot" type="NinePatchRect" parent="Control/HealthBar"]
layout_mode = 0
offset_left = 13.0
offset_top = 1.0
offset_right = 66.0
offset_bottom = 9.0
texture = ExtResource("7_kk5l8")
patch_margin_left = 1
patch_margin_top = 1
patch_margin_right = 2
patch_margin_bottom = 1

[node name="HpBar" type="TextureRect" parent="Control/HealthBar/HpSlot"]
layout_mode = 0
offset_left = 1.0
offset_top = 2.0
offset_right = 51.0
offset_bottom = 6.0
texture = ExtResource("8_j85pm")
expand_mode = 1

[node name="ShieldSlot" type="NinePatchRect" parent="Control/HealthBar"]
layout_mode = 0
offset_left = 13.0
offset_top = 8.0
offset_right = 65.0
offset_bottom = 13.0
texture = ExtResource("9_spw0e")
patch_margin_left = 1
patch_margin_top = 1
patch_margin_right = 1
patch_margin_bottom = 1

[node name="ShieldBar" type="TextureRect" parent="Control/HealthBar/ShieldSlot"]
layout_mode = 0
offset_left = 1.0
offset_top = 1.0
offset_right = 51.0
offset_bottom = 4.0
texture = ExtResource("10_8lm6q")
expand_mode = 1

[node name="MapBar" type="TextureRect" parent="Control"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -176.0
offset_right = -132.0
offset_bottom = 44.0
grow_horizontal = 0
scale = Vector2(4, 4)
texture = ExtResource("11_yaqsk")

[node name="GunBar" type="Control" parent="Control"]
anchors_preset = 0
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -264.0
offset_right = 264.0
offset_bottom = 0.00146484

[node name="GunSprite" type="TextureRect" parent="Control/GunBar"]
layout_mode = 0
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -132.0
offset_top = -132.0
offset_right = -66.0
offset_bottom = -66.0
scale = Vector2(4, 4)
texture = ExtResource("12_o2big")
stretch_mode = 3

[node name="BulletText" type="Label" parent="Control/GunBar"]
layout_mode = 0
anchor_left = 0.5
anchor_right = 0.5
offset_left = -89.0
offset_top = 39.0
offset_right = 89.0
offset_bottom = 74.0
text = "30/90"
horizontal_alignment = 1
vertical_alignment = 1