[gd_scene load_steps=16 format=3 uid="uid://cm8jwfg6rnnor"]

[ext_resource type="Script" uid="uid://cgi3tu0ussfk0" path="res://scripts/quest_progress_bar.gd" id="1_3w4v3"]
[ext_resource type="Texture2D" uid="uid://vt3yvxm2ho7o" path="res://graphics/progress-fill.png" id="2_t7shn"]
[ext_resource type="Texture2D" uid="uid://b88n81qde4p3n" path="res://graphics/progress-bar.png" id="3_qhjhp"]
[ext_resource type="Script" uid="uid://cf0pt0ty4uaas" path="res://scripts/endpoint.gd" id="4_4udsi"]
[ext_resource type="Texture2D" uid="uid://c6ptvokr5npl7" path="res://graphics/progress-marks.png" id="5_bt26m"]
[ext_resource type="Texture2D" uid="uid://qxx2gxnsd3yg" path="res://graphics/hero.png" id="6_lufuo"]
[ext_resource type="Script" uid="uid://cxqkvnv4rwots" path="res://scripts/hero_icon.gd" id="7_nby1n"]
[ext_resource type="Texture2D" uid="uid://dotwwulusn1b1" path="res://graphics/speechbubble.png" id="8_b7pey"]
[ext_resource type="Script" uid="uid://c23pbcmig5v3s" path="res://scripts/update_bubble.gd" id="9_pq74m"]

[sub_resource type="AtlasTexture" id="AtlasTexture_8wucn"]
atlas = ExtResource("5_bt26m")
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_bt26m")
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_bt26m")
region = Rect2(32, 0, 32, 32)
filter_clip = true

[node name="QuestProgressBar" type="Control"]
custom_minimum_size = Vector2(250, 70)
layout_mode = 3
anchor_left = 0.5
anchor_right = 0.5
offset_left = -125.0
offset_right = 125.0
offset_bottom = 70.0
grow_horizontal = 2
pivot_offset = Vector2(125, 0)
size_flags_horizontal = 4
script = ExtResource("1_3w4v3")

[node name="HeroLabel" type="Label" parent="."]
unique_name_in_owner = true
layout_mode = 0
offset_left = 30.0
offset_top = 2.0
offset_right = 223.0
offset_bottom = 25.0
text = "Hero Name Here"
horizontal_alignment = 1

[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.01000000000931322
nine_patch_stretch = true
stretch_margin_left = 1
stretch_margin_top = 2
stretch_margin_right = 1
stretch_margin_bottom = 2
texture_under = ExtResource("2_t7shn")
texture_over = ExtResource("3_qhjhp")
texture_progress = ExtResource("2_t7shn")
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_4udsi")

[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_4udsi")
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_lufuo")
script = ExtResource("7_nby1n")

[node name="SpeechBubble" type="NinePatchRect" parent="ProgressBar/Hero"]
unique_name_in_owner = true
visible = false
clip_contents = true
anchors_preset = -1
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_b7pey")
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_pq74m")

[node name="Label" type="Label" parent="ProgressBar/Hero/SpeechBubble"]
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/SpeechBubble"]
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

[node name="Path" type="Control" parent="."]
unique_name_in_owner = true
anchors_preset = 0
offset_left = 18.0
offset_top = 34.0
offset_right = 231.0
offset_bottom = 54.0

[connection signal="timeout" from="ProgressBar/Hero/SpeechBubble/Timer" to="ProgressBar/Hero/SpeechBubble" method="_on_timer_timeout"]
