newlon/scenes/main_menu.tscn
2025-07-03 15:10:53 +05:00

196 lines
7 KiB
Text

[gd_scene load_steps=14 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/components/gui/main_menu_rich_text.gd" id="2_5dd4i"]
[ext_resource type="Script" uid="uid://dgevhrbucpwrs" path="res://scripts/components/gui/prototype_window.gd" id="2_lgwnu"]
[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="Script" uid="uid://c06k4k3ww48ev" path="res://scripts/components/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="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"]
[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
[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)
visible = true
unresizable = true
borderless = true
theme_override_styles/panel = SubResource("StyleBoxTexture_jl0ue")
ok_button_text = "Close"
dialog_close_on_escape = false
script = ExtResource("2_lgwnu")
[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 = "[p][center][wave amp=50.0 freq=5.0 connected=1][font_size=24]WELCOME TO LIBERATION OF NEIGHBOURVILLE PROTOTYPE![/font_size][/wave][/center][/p]
[p]Big thanks from me, Rendo, and our team! We appreciate any feedback, so consider reporting bugs to our [color=cyan][url=https://discord.gg/Y5Wk8H8EBY]discord server[/url][/color].[/p][p][/p]
[p]Liberation of Neighbourville is currently in early stages of development. However, we reached point when all essential systems and mechanics are ready.[/p]
[p][/p]
[p]As for now, you can play survival endless with all currently made plants. Game includes some plants from first Plants versus Zombies, Aloe from sequel, three basic zombies and a hobo zombie.[/p]
[p][/p]
[p]As for 0.2.X version, current roadmap contains:[ul]
[p]Adventure mode[/p]
[p]Almanach[/p]
[p]New plants and zombies, obviously[/p]
[p]More ways to play[/p]
[/ul][/p]"
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 = 6.0
offset_top = 6.0
offset_right = 294.0
offset_bottom = 243.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 = "[p][center][font_size=24]About[/font_size][/center][/p]
[p]Made in [color=steel_blue]Godot Engine [img=16]res://icon.svg[/img][/color][/p]
[p]
Made by: [ul]
[p]Rendo - programmer, gamedesigner[/p]
[p]Slaimy - graphics designer, gamedesigner[/p]
[p]CaTronick - graphics designer, gamedesigner[/p]
[/ul]
[/p]
[p]All rights for Plants versus Zombies franchise belong to PopCap games[/p]"
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="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="Button" type="Button" parent="Buttons/InfoButtons"]
layout_mode = 2
text = "About"
[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"
[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/Button" to="Buttons" method="_on_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"]