[gd_scene load_steps=18 format=3 uid="uid://bfstrli64u23y"]

[ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="1_jk1qb"]
[ext_resource type="Script" uid="uid://drru785m4eep" path="res://scripts/gui/main_menu_rich_text.gd" id="2_5dd4i"]
[ext_resource type="Script" uid="uid://cghu4i3bnyavg" path="res://scripts/gui/PrototypeWindow.cs" id="2_flqon"]
[ext_resource type="Texture2D" uid="uid://c37pvdhol2x02" path="res://assets/sprites/menu_bg.png" id="3_lgwnu"]
[ext_resource type="Theme" uid="uid://btulhvgwclket" path="res://resources/themes/MainMenu.tres" id="4_flqon"]
[ext_resource type="Texture2D" uid="uid://cfgkauyw7qful" path="res://assets/sprites/vertical_logo.png" id="5_1ajci"]
[ext_resource type="Script" uid="uid://c06k4k3ww48ev" path="res://scripts/gui/menu_buttons.gd" id="5_rcqid"]
[ext_resource type="Script" uid="uid://6e8n6kc0y11o" path="res://scripts/sacrifice.gd" id="6_1ajci"]
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="7_7b55j"]
[ext_resource type="Texture2D" uid="uid://drydueofrb448" path="res://assets/sprites/gui/almanach/book.tres" id="7_flqon"]
[ext_resource type="AudioStream" uid="uid://bdx83fokp6kha" path="res://assets/audio/sfx/buttonclick.mp3" id="8_5pajh"]
[ext_resource type="AudioStream" uid="uid://djgyc7bbwcepp" path="res://assets/audio/music/Александр Зацепин - Увертюра.mp3" id="9_j7ex8"]
[ext_resource type="PackedScene" uid="uid://bvpt0q4j6nx18" path="res://scenes/gui/almanach.tscn" id="12_rcqid"]

[sub_resource type="GDScript" id="GDScript_5dd4i"]
resource_name = "main_menu"
script/source = "extends Control


func _ready() -> void:
	get_tree().paused = false
	Engine.time_scale = 1.0
"

[sub_resource type="AtlasTexture" id="AtlasTexture_5pe7g"]
atlas = ExtResource("1_jk1qb")
region = Rect2(226, 77, 18, 18)

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_jl0ue"]
texture = SubResource("AtlasTexture_5pe7g")
texture_margin_left = 6.0
texture_margin_top = 6.0
texture_margin_right = 6.0
texture_margin_bottom = 6.0

[sub_resource type="GDScript" id="GDScript_flqon"]
resource_name = "version_label"
script/source = "extends Label


func _ready() -> void:
	text = ProjectSettings.get_setting(\"application/config/version\")
	
"

[node name="MainMenu" type="Control"]
process_mode = 3
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = SubResource("GDScript_5dd4i")

[node name="PrototypeWindow" type="AcceptDialog" parent="."]
canvas_item_default_texture_filter = 0
title = ""
size = Vector2i(600, 400)
unresizable = true
borderless = true
theme_override_styles/panel = SubResource("StyleBoxTexture_jl0ue")
ok_button_text = "close"
dialog_close_on_escape = false
script = ExtResource("2_flqon")

[node name="ScrollContainer" type="ScrollContainer" parent="PrototypeWindow"]
offset_left = 6.0
offset_top = 6.0
offset_right = 594.0
offset_bottom = 343.0

[node name="PrototypeNotification" type="RichTextLabel" parent="PrototypeWindow/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
bbcode_enabled = true
text = "lon_proto"
fit_content = true
scroll_active = false
script = ExtResource("2_5dd4i")

[node name="AboutWindow" type="AcceptDialog" parent="."]
canvas_item_default_texture_filter = 0
title = ""
initial_position = 2
size = Vector2i(300, 300)
unresizable = true
borderless = true
ok_button_text = "close"

[node name="ScrollContainer" type="ScrollContainer" parent="AboutWindow"]
offset_left = 8.0
offset_top = 8.0
offset_right = 292.0
offset_bottom = 241.0
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="AboutText" type="RichTextLabel" parent="AboutWindow/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
bbcode_enabled = true
text = "about_screen"
fit_content = true
scroll_active = false

[node name="BG" type="TextureRect" parent="."]
z_index = -1
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
texture = ExtResource("3_lgwnu")
metadata/_edit_lock_ = true

[node name="TextureRect" type="TextureRect" parent="."]
layout_mode = 0
offset_left = 197.0
offset_top = 181.0
offset_right = 402.0
offset_bottom = 248.0
texture = ExtResource("5_1ajci")
expand_mode = 2
stretch_mode = 5

[node name="Buttons" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("4_flqon")
script = ExtResource("5_rcqid")
metadata/_edit_lock_ = true

[node name="GameButtons" type="VBoxContainer" parent="Buttons"]
layout_mode = 0
offset_left = 504.0
offset_top = 177.0
offset_right = 596.0
offset_bottom = 275.0

[node name="PlayButton" type="Button" parent="Buttons/GameButtons"]
layout_mode = 2
text = "play"

[node name="ExitButton" type="Button" parent="Buttons/GameButtons"]
layout_mode = 2
text = "exit"

[node name="InfoButtons" type="VBoxContainer" parent="Buttons"]
layout_mode = 0
offset_left = 10.0
offset_top = 188.0
offset_right = 86.0
offset_bottom = 235.0

[node name="AboutButton" type="Button" parent="Buttons/InfoButtons"]
layout_mode = 2
text = "about"

[node name="SplashButton" type="Button" parent="Buttons/InfoButtons"]
layout_mode = 2
text = "splash"

[node name="AlmanachButton" type="Button" parent="Buttons/InfoButtons"]
layout_mode = 2
icon = ExtResource("7_flqon")
icon_alignment = 1

[node name="SACRIFICE" type="TextureButton" parent="Buttons"]
layout_mode = 0
offset_left = 338.0
offset_top = 254.0
offset_right = 387.0
offset_bottom = 278.0
script = ExtResource("6_1ajci")

[node name="CONFIRM" type="AcceptDialog" parent="Buttons/SACRIFICE"]
title = ""
initial_position = 1
size = Vector2i(359, 100)
ok_button_text = ""
dialog_text = "                ?
"

[node name="ChannelPlayer" type="Node" parent="Buttons"]
script = ExtResource("7_7b55j")
audioStream = ExtResource("8_5pajh")
channel = "button"
metadata/_custom_type_script = "uid://c36bj8u7jghc7"

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("9_j7ex8")
volume_db = -20.0
autoplay = true
bus = &"MusicBus"

[node name="Almanach" parent="." instance=ExtResource("12_rcqid")]
visible = false
layout_mode = 1

[node name="VersionLabel" type="Label" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.823
anchor_top = 0.957
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 0.199982
offset_top = 0.199982
grow_horizontal = 0
grow_vertical = 0
horizontal_alignment = 2
vertical_alignment = 1
script = SubResource("GDScript_flqon")

[connection signal="meta_clicked" from="PrototypeWindow/ScrollContainer/PrototypeNotification" to="PrototypeWindow/ScrollContainer/PrototypeNotification" method="_on_meta_clicked"]
[connection signal="pressed" from="Buttons/GameButtons/PlayButton" to="Buttons" method="_on_play_button_pressed"]
[connection signal="pressed" from="Buttons/GameButtons/ExitButton" to="Buttons" method="_on_exit_button_pressed"]
[connection signal="pressed" from="Buttons/InfoButtons/AboutButton" to="Buttons" method="_on_button_pressed"]
[connection signal="pressed" from="Buttons/InfoButtons/SplashButton" to="Buttons" method="_on_splash_button_pressed"]
[connection signal="pressed" from="Buttons/InfoButtons/AlmanachButton" to="Buttons" method="_on_almanach_button_pressed"]
[connection signal="close_requested" from="Buttons/SACRIFICE/CONFIRM" to="Buttons/SACRIFICE" method="_on_confirm_close_requested"]
[connection signal="confirmed" from="Buttons/SACRIFICE/CONFIRM" to="Buttons/SACRIFICE" method="_on_confirm_confirmed"]
