Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / RoomUI.tscn
@小李xl 小李xl on 24 Jun 2023 3 KB 将玩家血条改为单颗红心
[gd_scene load_steps=10 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://blywnftxn1cfd" path="res://resource/sprite/ui/Life_full.png" id="11_y2dqd"]
[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="LifeBar" type="Control" parent="Control"]
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
scale = Vector2(4, 4)

[node name="Life" type="TextureRect" parent="Control/LifeBar"]
layout_mode = 2
offset_right = 12.0
offset_bottom = 10.0
texture = ExtResource("11_y2dqd")

[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