-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhealth_display_3d.tscn
40 lines (33 loc) · 1.44 KB
/
health_display_3d.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[gd_scene load_steps=4 format=3 uid="uid://cd4hnivcahq4"]
[ext_resource type="Script" path="res://health_display_3d.gd" id="2_h06of"]
[ext_resource type="PackedScene" uid="uid://by52yvso6g4j4" path="res://current_next_hp_bar.tscn" id="2_nub7l"]
[ext_resource type="Texture2D" uid="uid://chqhphvk6urdd" path="res://resources/skull.png" id="3_4ckc0"]
[node name="HealthDisplay3D" type="Node3D" node_paths=PackedStringArray("sprite", "health_display", "skull")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.2, 0)
script = ExtResource("2_h06of")
sprite = NodePath("Sprite3D")
health_display = NodePath("SubViewport/VBoxContainer/HPBar")
skull = NodePath("SubViewport/VBoxContainer/Skull")
[node name="SubViewport" type="SubViewport" parent="."]
disable_3d = true
transparent_bg = true
size = Vector2i(100, 94)
render_target_update_mode = 4
[node name="VBoxContainer" type="VBoxContainer" parent="SubViewport"]
offset_right = 100.0
offset_bottom = 94.0
theme_override_constants/separation = 10
alignment = 1
[node name="HPBar" parent="SubViewport/VBoxContainer" instance=ExtResource("2_nub7l")]
custom_minimum_size = Vector2(100, 20)
layout_mode = 2
hide_full = true
[node name="Skull" type="TextureRect" parent="SubViewport/VBoxContainer"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("3_4ckc0")
expand_mode = 3
[node name="Sprite3D" type="Sprite3D" parent="."]
billboard = 1