added stamina and health bar, gold can now be picked up
This commit is contained in:
20
Prefabs/DefaultTheme.tres
Normal file
20
Prefabs/DefaultTheme.tres
Normal file
@@ -0,0 +1,20 @@
|
||||
[gd_resource type="Theme" load_steps=3 format=3 uid="uid://bey4nvrdo2vy"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://peikxwadqo68" path="res://Assets/Fonts/UnifrakturCook-Bold.ttf" id="1_6y4xm"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_70173"]
|
||||
|
||||
[resource]
|
||||
default_font = ExtResource("1_6y4xm")
|
||||
default_font_size = 100
|
||||
Label/colors/font_color = Color(1, 0.769324, 0.396122, 1)
|
||||
Label/colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
Label/colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
Label/constants/line_spacing = 3
|
||||
Label/constants/outline_size = 0
|
||||
Label/constants/shadow_offset_x = 3
|
||||
Label/constants/shadow_offset_y = 3
|
||||
Label/constants/shadow_outline_size = 10
|
||||
Label/font_sizes/font_size = 100
|
||||
Label/styles/normal = SubResource("StyleBoxEmpty_70173")
|
||||
ProgressBar/font_sizes/font_size = 40
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://bici4k5vkuoos" path="res://Scripts/player_camera.gd" id="1_ocbkm"]
|
||||
[ext_resource type="Script" uid="uid://bnqpqdped5uw2" path="res://Scripts/camera_Look.gd" id="2_8uhk6"]
|
||||
[ext_resource type="FontFile" uid="uid://peikxwadqo68" path="res://Assets/Fonts/UnifrakturCook-Bold.ttf" id="2_70173"]
|
||||
[ext_resource type="Theme" uid="uid://bey4nvrdo2vy" path="res://Prefabs/DefaultTheme.tres" id="3_8uhk6"]
|
||||
|
||||
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_ocbkm"]
|
||||
dof_blur_far_enabled = true
|
||||
@@ -11,20 +11,11 @@ dof_blur_near_enabled = true
|
||||
dof_blur_near_distance = 6.0
|
||||
dof_blur_amount = 0.5
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_70173"]
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6wc88"]
|
||||
bg_color = Color(0.458824, 0, 0.145098, 1)
|
||||
|
||||
[sub_resource type="Theme" id="Theme_8uhk6"]
|
||||
default_font = ExtResource("2_70173")
|
||||
default_font_size = 100
|
||||
Label/colors/font_color = Color(1, 0.785333, 0.44, 1)
|
||||
Label/colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
Label/colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
Label/constants/line_spacing = 3
|
||||
Label/constants/outline_size = 0
|
||||
Label/constants/shadow_offset_x = 3
|
||||
Label/constants/shadow_offset_y = 3
|
||||
Label/constants/shadow_outline_size = 10
|
||||
Label/styles/normal = SubResource("StyleBoxEmpty_70173")
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8uhk6"]
|
||||
bg_color = Color(0.457868, 0.677542, 0.145981, 1)
|
||||
|
||||
[node name="CameraFollow" type="Node3D"]
|
||||
script = ExtResource("1_ocbkm")
|
||||
@@ -41,9 +32,34 @@ anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="Label" type="Label" parent="Camera3D/Control"]
|
||||
[node name="BoxContainer" type="BoxContainer" parent="Camera3D/Control"]
|
||||
layout_mode = 1
|
||||
offset_right = 334.0
|
||||
offset_bottom = 153.0
|
||||
theme = SubResource("Theme_8uhk6")
|
||||
offset_right = 3400.0
|
||||
offset_bottom = 1440.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Camera3D/Control/BoxContainer"]
|
||||
custom_minimum_size = Vector2(236.82, 3.065)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 8
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="Camera3D/Control/BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 10
|
||||
theme = ExtResource("3_8uhk6")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_6wc88")
|
||||
value = 42.34
|
||||
|
||||
[node name="StaminaBar" type="ProgressBar" parent="Camera3D/Control/BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 1
|
||||
theme = ExtResource("3_8uhk6")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_8uhk6")
|
||||
value = 42.34
|
||||
|
||||
[node name="GOLD" type="Label" parent="Camera3D/Control/BoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
theme = ExtResource("3_8uhk6")
|
||||
text = "Gold: 35"
|
||||
|
||||
Reference in New Issue
Block a user