Files
pomchronicles/templates/game_panel.tscn

230 lines
8.2 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://c8ofw6na082gv"]
[ext_resource type="Script" uid="uid://dhw85vqlvw33s" path="res://scripts/game_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="Texture2D" uid="uid://bwaiuy7yf7tu3" path="res://graphics/ui/time-frame.png" id="3_7oi8q"]
[ext_resource type="StyleBox" uid="uid://b7vjpwageyi6m" path="res://styles/working_shift_panel.tres" id="4_b7y1i"]
[ext_resource type="Texture2D" uid="uid://cs7bvpn6jgofn" path="res://graphics/ui/options.png" id="5_6vw8v"]
[ext_resource type="PackedScene" uid="uid://du4hyv7egc7ny" path="res://templates/quest_view_window.tscn" id="6_er2tk"]
[ext_resource type="AudioStream" uid="uid://dq7e5u8j14atb" path="res://sounds/Paper Turn.wav" id="6_osxme"]
[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.36, 0.2256, 0.1584, 1)
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="GamePanel" type="MarginContainer"]
offset_right = 401.0
offset_bottom = 853.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="Panel" parent="VBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(401, 216)
layout_mode = 2
theme_override_styles/panel = ExtResource("2_b7y1i")
[node name="TextureButton" type="TextureButton" parent="VBoxContainer/OpenShift"]
layout_mode = 0
offset_left = 358.0
offset_top = 5.0
offset_right = 397.0
offset_bottom = 44.0
texture_normal = ExtResource("5_6vw8v")
[node name="NinePatchRect" type="NinePatchRect" parent="VBoxContainer/OpenShift"]
layout_mode = 0
offset_left = 9.0
offset_top = 54.0
offset_right = 200.0
offset_bottom = 76.5
scale = Vector2(2, 2)
texture = ExtResource("3_7oi8q")
patch_margin_left = 7
patch_margin_top = 7
patch_margin_right = 7
patch_margin_bottom = 7
[node name="Margin" type="MarginContainer" parent="VBoxContainer/OpenShift"]
layout_mode = 0
offset_left = 74.0
offset_top = 34.0
offset_right = 236.0
offset_bottom = 174.0
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"]
modulate = Color(0.4209763, 0.2318669, 0, 1)
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"]
modulate = Color(0.4209763, 0.2318669, 0, 1)
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"]
modulate = Color(0.4209763, 0.2318669, 0, 1)
layout_mode = 2
theme_override_font_sizes/font_size = 28
text = "Visitors"
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="Panel" parent="VBoxContainer"]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(401, 216)
layout_mode = 2
theme_override_styles/panel = ExtResource("4_b7y1i")
[node name="DragRegion" type="Control" parent="VBoxContainer/WorkingShift"]
layout_mode = 1
anchors_preset = 0
offset_left = 4.0
offset_top = 3.0
offset_right = 399.0
offset_bottom = 43.0
[node name="TextureButton" type="TextureButton" parent="VBoxContainer/WorkingShift"]
layout_mode = 0
offset_left = 352.0
offset_top = 5.0
offset_right = 391.0
offset_bottom = 44.0
texture_normal = ExtResource("5_6vw8v")
[node name="NinePatchRect" type="NinePatchRect" parent="VBoxContainer/WorkingShift"]
layout_mode = 1
anchors_preset = -1
offset_left = 9.0
offset_top = 86.0
offset_right = 200.0
offset_bottom = 108.5
scale = Vector2(2, 2)
texture = ExtResource("3_7oi8q")
patch_margin_left = 7
patch_margin_top = 7
patch_margin_right = 7
patch_margin_bottom = 7
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/WorkingShift"]
layout_mode = 0
offset_left = 13.0
offset_top = 45.0
offset_right = 388.0
offset_bottom = 205.0
[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"
horizontal_alignment = 1
script = ExtResource("2_5rs2c")
[node name="Control" type="Control" parent="VBoxContainer/WorkingShift/MarginContainer/WorkingList"]
custom_minimum_size = Vector2(0, 30)
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/WorkingShift/MarginContainer/WorkingList"]
layout_mode = 2
alignment = 1
[node name="QuestViewerButton" type="Button" parent="VBoxContainer/WorkingShift/MarginContainer/WorkingList/HBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(175, 0)
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxFlat_q6wja")
text = "Quest Viewer"
[node name="ShowQuestsButton" type="Button" parent="VBoxContainer/WorkingShift/MarginContainer/WorkingList/HBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(175, 0)
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxFlat_q6wja")
text = "Show Quests"
[node name="QuestView" parent="VBoxContainer" instance=ExtResource("6_er2tk")]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(375, 325)
layout_mode = 2
[node name="Panel" type="PanelContainer" parent="VBoxContainer"]
custom_minimum_size = Vector2(400, 100)
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
custom_minimum_size = Vector2(0, 200)
layout_mode = 2
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_osxme")
volume_db = -10.31
[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/TextureButton" to="." method="_on_options_button_pressed"]
[connection signal="pressed" from="VBoxContainer/OpenShift/Margin/OpenList/Button" to="." method="_on_end_shift_pressed"]
[connection signal="gui_input" from="VBoxContainer/WorkingShift/DragRegion" to="." method="_on_drag_region_gui_input"]
[connection signal="pressed" from="VBoxContainer/WorkingShift/MarginContainer/WorkingList/HBoxContainer/QuestViewerButton" to="." method="_on_quest_viewer_button_pressed"]
[connection signal="pressed" from="VBoxContainer/WorkingShift/MarginContainer/WorkingList/HBoxContainer/ShowQuestsButton" to="." method="_on_show_quests_pressed"]