52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="res://scenes/tavern/init.gd" id="1"]
|
|
[ext_resource type="Resource" path="res://scenes/tavern/tavern_stats.tres" id="2"]
|
|
[ext_resource type="PackedScene" path="res://assets/models/buildings/building_home_A_blue.gltf" id="3"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_tavern"]
|
|
size = Vector3(5, 3, 5)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_health_bg"]
|
|
bg_color = Color(0.3, 0.1, 0.1, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_health_fill"]
|
|
bg_color = Color(0.9, 0.7, 0.2, 1)
|
|
|
|
[node name="Tavern" type="StaticBody3D"]
|
|
script = ExtResource("1")
|
|
stats = ExtResource("2")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("BoxShape3D_tavern")
|
|
|
|
[node name="Mesh" type="Node3D" parent="."]
|
|
|
|
[node name="Model" parent="Mesh" instance=ExtResource("3")]
|
|
transform = Transform3D(2.5, 0, 0, 0, 2.5, 0, 0, 0, 2.5, 0, -1.5, 0)
|
|
|
|
[node name="Healthbar" type="Sprite3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, 0)
|
|
billboard = 1
|
|
pixel_size = 0.015
|
|
|
|
[node name="SubViewport" type="SubViewport" parent="Healthbar"]
|
|
transparent_bg = true
|
|
size = Vector2i(204, 25)
|
|
|
|
[node name="Border" type="ColorRect" parent="Healthbar/SubViewport"]
|
|
offset_right = 204.0
|
|
offset_bottom = 25.0
|
|
color = Color(0.1, 0.1, 0.1, 1)
|
|
|
|
[node name="HealthBar" type="ProgressBar" parent="Healthbar/SubViewport"]
|
|
offset_left = 2.0
|
|
offset_top = 2.0
|
|
offset_right = 202.0
|
|
offset_bottom = 23.0
|
|
theme_override_styles/background = SubResource("StyleBoxFlat_health_bg")
|
|
theme_override_styles/fill = SubResource("StyleBoxFlat_health_fill")
|
|
max_value = 5000.0
|
|
value = 5000.0
|
|
show_percentage = false
|