[gd_scene load_steps=5 format=2]

[ext_resource path="res://fonts/19844.otf" type="DynamicFontData" id=1]
[ext_resource path="res://scripts/main_menu.gd" type="Script" id=2]

[sub_resource type="DynamicFont" id=1]
size = 128
use_filter = true
font_data = ExtResource( 1 )

[sub_resource type="DynamicFont" id=2]
size = 48
use_filter = true
font_data = ExtResource( 1 )

[node name="main_screen" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="bg" type="Polygon2D" parent="."]
color = Color( 0.360784, 0.513726, 0.360784, 1 )
polygon = PoolVector2Array( -32, -32, 1952, -32, 1952, 1120, -32, 1120 )

[node name="title" type="Label" parent="."]
margin_left = 64.0
margin_top = 96.0
margin_right = 904.0
margin_bottom = 208.0
custom_fonts/font = SubResource( 1 )
text = "Путешественник"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="main_menu" type="Control" parent="."]
margin_left = 1184.0
margin_top = 736.0
margin_right = 1792.0
margin_bottom = 992.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="start_pvp_button" type="Button" parent="main_menu"]
margin_right = 608.0
margin_bottom = 64.0
rect_pivot_offset = Vector2( 54.6059, 154.1 )
focus_mode = 0
custom_fonts/font = SubResource( 2 )
enabled_focus_mode = 0
text = "Играть"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="option_button" type="Button" parent="main_menu"]
margin_top = 96.0
margin_right = 608.0
margin_bottom = 160.0
rect_pivot_offset = Vector2( 54.6059, 63.3942 )
focus_mode = 0
custom_fonts/font = SubResource( 2 )
enabled_focus_mode = 0
text = "Options"

[node name="exit_button" type="Button" parent="main_menu"]
margin_top = 192.0
margin_right = 608.0
margin_bottom = 256.0
rect_pivot_offset = Vector2( 54.6059, 18.4892 )
focus_mode = 0
custom_fonts/font = SubResource( 2 )
enabled_focus_mode = 0
text = "Exit"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="options_menu" type="Control" parent="."]
visible = false
margin_right = 1920.0
margin_bottom = 1088.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="options_apply_button" type="Button" parent="options_menu"]
margin_left = 1184.0
margin_top = 832.0
margin_right = 1792.0
margin_bottom = 896.0
focus_mode = 0
custom_fonts/font = SubResource( 2 )
enabled_focus_mode = 0
text = "Применить"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="options_cancel_button" type="Button" parent="options_menu"]
margin_left = 1184.0
margin_top = 928.0
margin_right = 1792.0
margin_bottom = 992.0
focus_mode = 0
custom_fonts/font = SubResource( 2 )
enabled_focus_mode = 0
text = "Отмена"

[node name="sound_volume" type="Label" parent="options_menu"]
margin_left = 192.0
margin_top = 608.0
margin_right = 487.0
margin_bottom = 650.0
custom_fonts/font = SubResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Звуки: 100"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="sound_volume_slider" type="HSlider" parent="options_menu/sound_volume"]
margin_left = 320.0
margin_top = -111.0
margin_right = 640.0
margin_bottom = -47.0
rect_scale = Vector2( 4, 4 )
value = 70.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="music_volume" type="Label" parent="options_menu"]
margin_left = 192.0
margin_top = 512.0
margin_right = 484.0
margin_bottom = 554.0
custom_fonts/font = SubResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Музыка: 100"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="music_volume_slider" type="HSlider" parent="options_menu/music_volume"]
margin_left = 320.0
margin_top = -22.0
margin_right = 640.0
margin_bottom = -6.0
rect_scale = Vector2( 4, 4 )
value = 70.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="ambient_volume" type="Label" parent="options_menu"]
margin_left = 192.0
margin_top = 416.0
margin_right = 484.0
margin_bottom = 458.0
custom_fonts/font = SubResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Окружение: 100"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="ambient_volume_slider" type="HSlider" parent="options_menu/ambient_volume"]
margin_left = 320.0
margin_top = -22.0
margin_right = 640.0
margin_bottom = -6.0
rect_scale = Vector2( 4, 4 )
value = 70.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="help_screen" type="Control" parent="."]
visible = false
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="play_button" type="Button" parent="help_screen"]
margin_left = 672.0
margin_top = 736.0
margin_right = 1280.0
margin_bottom = 800.0
rect_pivot_offset = Vector2( 54.6059, 154.1 )
focus_mode = 0
custom_fonts/font = SubResource( 2 )
enabled_focus_mode = 0
text = "Играть"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="help" type="Label" parent="help_screen"]
margin_left = 416.0
margin_top = 256.0
margin_right = 1589.0
margin_bottom = 613.0
custom_fonts/font = SubResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Управление:

WASD/стрелки - передвижение.
Cтрелка вверх/стрелка вниз - выбор ответа.
Пробел/Enter - подобрать предмет/разговаривать/атаковать.
ESC - пауза.

Левый клик по ячейке инвентаря - использовать предмет."
align = 1
[connection signal="pressed" from="main_menu/start_pvp_button" to="." method="_on_start_pvp_button_pressed"]
[connection signal="pressed" from="main_menu/option_button" to="." method="_on_option_button_pressed"]
[connection signal="pressed" from="main_menu/exit_button" to="." method="_on_exit_button_pressed"]
[connection signal="pressed" from="options_menu/options_apply_button" to="." method="_on_options_apply_button_pressed"]
[connection signal="pressed" from="options_menu/options_cancel_button" to="." method="_on_options_cancel_button_pressed"]
[connection signal="value_changed" from="options_menu/sound_volume/sound_volume_slider" to="." method="_on_sound_volume_slider_value_changed"]
[connection signal="value_changed" from="options_menu/music_volume/music_volume_slider" to="." method="_on_music_volume_slider_value_changed"]
[connection signal="value_changed" from="options_menu/ambient_volume/ambient_volume_slider" to="." method="_on_ambient_volume_slider_value_changed"]
[connection signal="pressed" from="help_screen/play_button" to="." method="_on_play_button_pressed"]
