This commit is contained in:
Kirill
2025-11-20 10:02:20 +03:00
parent aecce7d1c4
commit 9f94114aa2
30 changed files with 294 additions and 129 deletions
+46 -11
View File
@@ -1,21 +1,56 @@
[gd_scene load_steps=4 format=3 uid="uid://bv384dpmvjv8o"]
[gd_scene load_steps=6 format=3 uid="uid://bv384dpmvjv8o"]
[ext_resource type="Script" uid="uid://d2wrwichuoncd" path="res://world/Background/background.gd" id="1_fj7yv"]
[ext_resource type="PackedScene" uid="uid://cdbqh3hvqvpab" path="res://UI/TopMenu/top_menu.tscn" id="3_036b0"]
[ext_resource type="PackedScene" uid="uid://icbk3la71t7h" path="res://world/Background/starry_sky_layer.tscn" id="3_aqk2v"]
[ext_resource type="Script" uid="uid://b823gkreu47t3" path="res://world/Background/starry_sky_dynamic_bg.gd" id="3_tlwt5"]
[ext_resource type="Script" uid="uid://xte4iwvipeve" path="res://command_processor.gd" id="5_036b0"]
[ext_resource type="PackedScene" uid="uid://dg15dpxiepicb" path="res://UI/Border/border.tscn" id="28_o3ebs"]
[node name="World" type="Node2D"]
[node name="BackgroundLayer" type="Node2D" parent="." node_paths=PackedStringArray("Parallax_2d")]
[node name="Background" type="Node2D" parent="."]
script = ExtResource("1_fj7yv")
STARRY_SKY_LAYER = ExtResource("3_aqk2v")
Parallax_2d = NodePath("Parallax2D")
[node name="Parallax2D" type="Parallax2D" parent="BackgroundLayer"]
repeat_size = Vector2(2048, 2048)
[node name="MainScreen" type="Control" parent="."]
custom_minimum_size = Vector2(1080, 1920)
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
size_flags_horizontal = 4
size_flags_vertical = 3
[node name="StarrySkyDynamicBG" type="Node2D" parent="BackgroundLayer/Parallax2D"]
visible = false
script = ExtResource("3_tlwt5")
Star_Count = 2000
Background_Image_Size = Vector2(2048, 2048)
[node name="MainRows" type="VBoxContainer" parent="MainScreen"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 128.0
grow_horizontal = 2
size_flags_horizontal = 3
theme_override_constants/separation = 0
[node name="TopMenu" parent="MainScreen/MainRows" node_paths=PackedStringArray("TopMenuButtons") instance=ExtResource("3_036b0")]
layout_mode = 2
TopMenuButtons = {
"Charsheet": NodePath("Control/CharsheetButton"),
"Dialog": NodePath("Control/DialogButton"),
"Equipment": null,
"Questlog": NodePath("Control/QuestlogButton"),
"Starship": NodePath("Control/StarshipButton"),
"Trade": null,
"Travel": NodePath("Control/TravelButton"),
"Worm": null
}
[node name="TopMenuBorder" parent="MainScreen/MainRows" instance=ExtResource("28_o3ebs")]
layout_mode = 2
[node name="CommandProcessor" type="Node" parent="."]
script = ExtResource("5_036b0")
[node name="Tree" type="Tree" parent="CommandProcessor"]
offset_right = 16.0
offset_bottom = 17.0
[connection signal="button_pressed" from="MainScreen/MainRows/TopMenu" to="CommandProcessor" method="print_smth"]