[gd_scene load_steps=6 format=3 uid="uid://c8ofw6na082gv"]

[ext_resource type="Script" uid="uid://dhw85vqlvw33s" path="res://scripts/main_panel.gd" id="1_pdekv"]
[ext_resource type="Script" uid="uid://4jrp67ckp7vt" path="res://scripts/timer_label.gd" id="2_5rs2c"]
[ext_resource type="StyleBox" uid="uid://by1jk8r2avjp4" path="res://styles/open_shift_panel.tres" id="2_b7y1i"]
[ext_resource type="StyleBox" uid="uid://b7vjpwageyi6m" path="res://styles/working_shift_panel.tres" id="4_b7y1i"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_q6wja"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 4.0
content_margin_bottom = 4.0
bg_color = Color(0.32774815, 0.3295362, 0.561609, 0.6)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5

[node name="MainPanel" type="MarginContainer"]
anchors_preset = -1
offset_right = 319.0
offset_bottom = 189.0
theme_override_constants/margin_left = 0
theme_override_constants/margin_top = 0
theme_override_constants/margin_right = 0
script = ExtResource("1_pdekv")

[node name="Timer" type="Timer" parent="."]
unique_name_in_owner = true
wait_time = 300.0
autostart = true

[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2

[node name="OpenShift" type="PanelContainer" parent="VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
theme_override_styles/panel = ExtResource("2_b7y1i")

[node name="Margin" type="MarginContainer" parent="VBoxContainer/OpenShift"]
layout_mode = 2
theme_override_constants/margin_top = -20
theme_override_constants/margin_right = -80

[node name="OpenList" type="VBoxContainer" parent="VBoxContainer/OpenShift/Margin"]
unique_name_in_owner = true
layout_mode = 2
alignment = 1

[node name="Label" type="Label" parent="VBoxContainer/OpenShift/Margin/OpenList"]
layout_mode = 2
theme_override_font_sizes/font_size = 28
text = "Time til Next Shift"
horizontal_alignment = 1

[node name="TimerLabel" type="Label" parent="VBoxContainer/OpenShift/Margin/OpenList"]
layout_mode = 2
theme_override_font_sizes/font_size = 28
text = "00:00:00.00"
horizontal_alignment = 1
script = ExtResource("2_5rs2c")

[node name="VisitorsLabel" type="Label" parent="VBoxContainer/OpenShift/Margin/OpenList"]
layout_mode = 2
theme_override_font_sizes/font_size = 28
text = "000:00:00.00"
script = ExtResource("2_5rs2c")

[node name="Button" type="Button" parent="VBoxContainer/OpenShift/Margin/OpenList"]
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxFlat_q6wja")
text = "CLOSE GUILD"

[node name="WorkingShift" type="PanelContainer" parent="VBoxContainer"]
unique_name_in_owner = true
visible = false
layout_mode = 2
theme_override_styles/panel = ExtResource("4_b7y1i")

[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/WorkingShift"]
layout_mode = 2
theme_override_constants/margin_left = -80
theme_override_constants/margin_top = -20

[node name="WorkingList" type="VBoxContainer" parent="VBoxContainer/WorkingShift/MarginContainer"]
unique_name_in_owner = true
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/WorkingShift/MarginContainer/WorkingList"]
layout_mode = 2
theme_override_font_sizes/font_size = 28
text = "Time til Next Shift"
horizontal_alignment = 1

[node name="TimerLabel" type="Label" parent="VBoxContainer/WorkingShift/MarginContainer/WorkingList"]
layout_mode = 2
theme_override_font_sizes/font_size = 28
text = "000:00:00.00"
script = ExtResource("2_5rs2c")

[node name="ShowQuestsButton" type="Button" parent="VBoxContainer/WorkingShift/MarginContainer/WorkingList"]
unique_name_in_owner = true
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxFlat_q6wja")
text = "Show Quests"

[node name="Panel" type="PanelContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="QuestProgressList" type="ScrollContainer" parent="VBoxContainer/Panel"]
unique_name_in_owner = true
clip_contents = false
custom_minimum_size = Vector2(260, 100)
layout_mode = 2
horizontal_scroll_mode = 0

[node name="QuestList" type="VBoxContainer" parent="VBoxContainer/Panel/QuestProgressList"]
unique_name_in_owner = true
custom_minimum_size = Vector2(300, 100)
layout_mode = 2
size_flags_horizontal = 3

[node name="Notices" type="VBoxContainer" parent="VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2

[connection signal="time_changed" from="." to="VBoxContainer/OpenShift/Margin/OpenList/TimerLabel" method="_on_time_changed"]
[connection signal="time_changed" from="." to="VBoxContainer/WorkingShift/MarginContainer/WorkingList/TimerLabel" method="_on_time_changed"]
[connection signal="pressed" from="VBoxContainer/OpenShift/Margin/OpenList/Button" to="." method="_on_end_shift_pressed"]
[connection signal="pressed" from="VBoxContainer/WorkingShift/MarginContainer/WorkingList/ShowQuestsButton" to="." method="_on_show_quests_pressed"]
