Files
pomchronicles/quest_progress_bar.tscn

195 lines
5.9 KiB
Plaintext

[gd_scene load_steps=16 format=3 uid="uid://cm8jwfg6rnnor"]
[ext_resource type="Texture2D" uid="uid://vt3yvxm2ho7o" path="res://progress-fill.png" id="1_67v7s"]
[ext_resource type="Texture2D" uid="uid://b88n81qde4p3n" path="res://progress-bar.png" id="2_7mk3y"]
[ext_resource type="Script" uid="uid://cgi3tu0ussfk0" path="res://quest_progress_bar.gd" id="3_ngyoy"]
[ext_resource type="Script" uid="uid://cf0pt0ty4uaas" path="res://endpoint.gd" id="4_urnrp"]
[ext_resource type="Texture2D" uid="uid://c6ptvokr5npl7" path="res://progress-marks.png" id="5_0mjs1"]
[ext_resource type="Texture2D" uid="uid://qxx2gxnsd3yg" path="res://hero.png" id="6_c61hf"]
[ext_resource type="Script" uid="uid://cxqkvnv4rwots" path="res://hero_icon.gd" id="7_ej80i"]
[ext_resource type="Texture2D" uid="uid://dotwwulusn1b1" path="res://speechbubble.png" id="8_0hkgs"]
[ext_resource type="Script" uid="uid://c23pbcmig5v3s" path="res://update_bubble.gd" id="9_1vrqv"]
[sub_resource type="AtlasTexture" id="AtlasTexture_8wucn"]
atlas = ExtResource("5_0mjs1")
region = Rect2(0, 32, 32, 32)
filter_clip = true
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_mf4ya"]
load_path = "res://.godot/imported/progress-dot-fill.png-a1e94128dc6c2f11bfa15c335ef05892.ctex"
[sub_resource type="AtlasTexture" id="AtlasTexture_eu8pt"]
resource_local_to_scene = true
atlas = SubResource("CompressedTexture2D_mf4ya")
region = Rect2(0, 32, 32, 32)
filter_clip = true
[sub_resource type="AtlasTexture" id="AtlasTexture_pg7md"]
atlas = ExtResource("5_0mjs1")
region = Rect2(32, 32, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_bnohr"]
resource_local_to_scene = true
atlas = SubResource("CompressedTexture2D_mf4ya")
region = Rect2(32, 0, 32, 32)
filter_clip = true
[sub_resource type="AtlasTexture" id="AtlasTexture_mmi8n"]
atlas = ExtResource("5_0mjs1")
region = Rect2(32, 0, 32, 32)
filter_clip = true
[node name="QuestProgressBar" type="Control"]
custom_minimum_size = Vector2(250, 70)
layout_mode = 3
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -125.0
offset_right = 125.0
offset_bottom = 70.0
grow_horizontal = 2
script = ExtResource("3_ngyoy")
[node name="ProgressBar" type="TextureProgressBar" parent="."]
custom_minimum_size = Vector2(213, 14)
layout_mode = 0
offset_left = 18.0
offset_top = 37.0
offset_right = 231.0
offset_bottom = 51.0
max_value = 1.0
step = 0.010000000009313226
nine_patch_stretch = true
stretch_margin_left = 1
stretch_margin_top = 2
stretch_margin_right = 1
stretch_margin_bottom = 2
texture_under = ExtResource("1_67v7s")
texture_over = ExtResource("2_7mk3y")
texture_progress = ExtResource("1_67v7s")
tint_under = Color(0, 0, 0, 1)
tint_progress = Color(0.1804, 0.5451, 0.3412, 1)
[node name="Start" type="Control" parent="ProgressBar"]
unique_name_in_owner = true
anchors_preset = 0
offset_left = -16.0
offset_top = -9.0
offset_right = 24.0
offset_bottom = 31.0
script = ExtResource("4_urnrp")
[node name="Over" type="TextureRect" parent="ProgressBar/Start"]
layout_mode = 0
offset_right = 32.0
offset_bottom = 32.0
texture = SubResource("AtlasTexture_8wucn")
[node name="Fill" type="TextureRect" parent="ProgressBar/Start"]
modulate = Color(0, 0, 0, 1)
layout_mode = 0
offset_right = 32.0
offset_bottom = 32.0
texture = SubResource("AtlasTexture_eu8pt")
[node name="Dot" type="TextureRect" parent="ProgressBar/Start"]
visible = false
layout_mode = 0
offset_right = 32.0
offset_bottom = 32.0
texture = SubResource("AtlasTexture_pg7md")
[node name="End" type="Control" parent="ProgressBar"]
unique_name_in_owner = true
anchors_preset = 0
offset_left = 197.0
offset_top = -9.0
offset_right = 237.0
offset_bottom = 31.0
script = ExtResource("4_urnrp")
percent = 1.0
[node name="Fill" type="TextureRect" parent="ProgressBar/End"]
modulate = Color(0, 0, 0, 1)
layout_mode = 0
offset_right = 32.0
offset_bottom = 32.0
texture = SubResource("AtlasTexture_bnohr")
[node name="Over" type="TextureRect" parent="ProgressBar/End"]
layout_mode = 0
offset_right = 32.0
offset_bottom = 32.0
texture = SubResource("AtlasTexture_mmi8n")
[node name="Dot" type="TextureRect" parent="ProgressBar/End"]
visible = false
layout_mode = 0
offset_right = 32.0
offset_bottom = 32.0
texture = SubResource("AtlasTexture_pg7md")
[node name="Waypoints" type="Control" parent="ProgressBar"]
unique_name_in_owner = true
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="Hero" type="Sprite2D" parent="ProgressBar"]
unique_name_in_owner = true
position = Vector2(-1, -12)
texture = ExtResource("6_c61hf")
script = ExtResource("7_ej80i")
[node name="UpdateBubble" type="NinePatchRect" parent="ProgressBar/Hero"]
clip_contents = true
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -61.0
offset_top = -90.0
offset_right = -42.0
offset_bottom = -75.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(0, 15)
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource("8_0hkgs")
patch_margin_left = 13
patch_margin_top = 5
patch_margin_right = 6
patch_margin_bottom = 10
axis_stretch_horizontal = 1
axis_stretch_vertical = 1
script = ExtResource("9_1vrqv")
[node name="Label" type="Label" parent="ProgressBar/Hero/UpdateBubble"]
unique_name_in_owner = true
layout_mode = 0
offset_left = 5.0
offset_top = 1.0
offset_right = 95.0
offset_bottom = 37.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_constants/line_spacing = -4
theme_override_font_sizes/font_size = 8
text = "testing one 1 2 3"
vertical_alignment = 1
autowrap_mode = 2
[node name="Timer" type="Timer" parent="ProgressBar/Hero/UpdateBubble"]
unique_name_in_owner = true
[node name="Container" type="Container" parent="ProgressBar"]
layout_mode = 0
offset_top = -32.0
offset_right = 75.0
offset_bottom = 40.0
[connection signal="value_changed" from="ProgressBar" to="ProgressBar" method="_on_value_changed"]
[connection signal="timeout" from="ProgressBar/Hero/UpdateBubble/Timer" to="ProgressBar/Hero/UpdateBubble" method="_on_timer_timeout"]