added basic player UI
This commit is contained in:
parent
1ba24d1faf
commit
a16601fa1d
15 changed files with 165 additions and 72 deletions
|
|
@ -10,8 +10,7 @@
|
|||
[ext_resource type="Theme" uid="uid://bybov1cpwtf7p" path="res://src/base_theme.tres" id="5_bs6l1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cbjps58vfmyeb" path="res://src/level/background.aseprite" id="5_wqvko"]
|
||||
[ext_resource type="Texture2D" uid="uid://dg5wulm2tav4t" path="res://src/level/neon_box_selector.aseprite" id="5_y2hwx"]
|
||||
[ext_resource type="Script" uid="uid://i5v0sfow12sr" path="res://src/player/PlayerHealthBar.cs" id="6_pk08u"]
|
||||
[ext_resource type="Script" uid="uid://i2ts2auxd3na" path="res://src/player/DashPointBar.cs" id="12_qiocs"]
|
||||
[ext_resource type="PackedScene" uid="uid://llohfwmma2hv" path="res://src/player/ui/player_hud.tscn" id="11_y2hwx"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_qiocs"]
|
||||
texture = ExtResource("4_y2hwx")
|
||||
|
|
@ -157,9 +156,6 @@ custom_data_layer_0/name = "is_water"
|
|||
custom_data_layer_0/type = 1
|
||||
sources/2 = SubResource("TileSetAtlasSource_e2o6t")
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2j2mp"]
|
||||
bg_color = Color(0.7842881, 0.31957126, 0.8066615, 1)
|
||||
|
||||
[node name="Game" type="Node2D" unique_id=1186062666]
|
||||
script = ExtResource("1_kc8ui")
|
||||
|
||||
|
|
@ -205,7 +201,7 @@ color = Color(0, 0, 0, 1)
|
|||
[node name="UI" type="CanvasLayer" parent="." unique_id=884024747]
|
||||
layer = 20
|
||||
|
||||
[node name="Control" type="Control" parent="UI" unique_id=791343346]
|
||||
[node name="HudRoot" type="Control" parent="UI" unique_id=791343346]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
|
@ -216,25 +212,10 @@ mouse_filter = 1
|
|||
theme = ExtResource("5_bs6l1")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="PlayerHealthBar" type="ProgressBar" parent="UI/Control" unique_id=1470557052 node_paths=PackedStringArray("Player")]
|
||||
[node name="PlayerHud" parent="UI/HudRoot" unique_id=763981532 node_paths=PackedStringArray("Player") instance=ExtResource("11_y2hwx")]
|
||||
layout_mode = 1
|
||||
offset_left = 32.0
|
||||
offset_left = 48.0
|
||||
offset_top = 16.0
|
||||
offset_right = 170.0
|
||||
offset_bottom = 29.0
|
||||
mouse_filter = 2
|
||||
value = 50.0
|
||||
script = ExtResource("6_pk08u")
|
||||
Player = NodePath("../../../World/Player")
|
||||
|
||||
[node name="DashPointBar" type="ProgressBar" parent="UI/Control" unique_id=1441382612 node_paths=PackedStringArray("Player")]
|
||||
layout_mode = 1
|
||||
offset_left = 32.0
|
||||
offset_top = 48.0
|
||||
offset_right = 170.0
|
||||
offset_bottom = 61.0
|
||||
mouse_filter = 2
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_2j2mp")
|
||||
value = 50.0
|
||||
script = ExtResource("12_qiocs")
|
||||
offset_right = 88.0
|
||||
offset_bottom = 56.0
|
||||
Player = NodePath("../../../World/Player")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue