cosmic/scenes/Base/base_menu.tscn
2024-05-15 07:48:03 +03:00

104 lines
2.9 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://crq284yed2if5"]
[ext_resource type="Script" path="res://scripts/Base/base_menu.gd" id="1_3hgu4"]
[ext_resource type="Texture2D" uid="uid://db4euprxhape0" path="res://sprites/9s.png" id="1_uf5rv"]
[ext_resource type="Texture2D" uid="uid://hxrx87gda3uf" path="res://sprites/Bases/Menu/end_communications.png" id="2_ceeiv"]
[ext_resource type="Script" path="res://scripts/Base/close_button.gd" id="4_68ool"]
[node name="BaseMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_3hgu4")
[node name="MenuBackground" type="NinePatchRect" parent="."]
layout_mode = 0
offset_left = 40.0
offset_top = 40.0
offset_right = 1240.0
offset_bottom = 640.0
texture = ExtResource("1_uf5rv")
region_rect = Rect2(0, 0, 5, 5)
patch_margin_left = 2
patch_margin_top = 2
patch_margin_right = 2
patch_margin_bottom = 2
[node name="HeaderBackground" type="NinePatchRect" parent="MenuBackground"]
layout_mode = 0
offset_left = 2.0
offset_top = 2.0
offset_right = 1198.0
offset_bottom = 76.0
texture = ExtResource("1_uf5rv")
region_rect = Rect2(0, 0, 5, 5)
patch_margin_left = 2
patch_margin_top = 2
patch_margin_right = 2
patch_margin_bottom = 2
[node name="PortraitBackground" type="NinePatchRect" parent="MenuBackground"]
layout_mode = 0
offset_left = 2.0
offset_top = 77.0
offset_right = 324.0
offset_bottom = 598.0
texture = ExtResource("1_uf5rv")
region_rect = Rect2(0, 0, 5, 5)
patch_margin_left = 2
patch_margin_top = 2
patch_margin_right = 2
patch_margin_bottom = 2
[node name="DialogueBackground" type="NinePatchRect" parent="MenuBackground"]
layout_mode = 0
offset_left = 325.0
offset_top = 77.0
offset_right = 1198.0
offset_bottom = 399.0
texture = ExtResource("1_uf5rv")
region_rect = Rect2(0, 0, 5, 5)
patch_margin_left = 2
patch_margin_top = 2
patch_margin_right = 2
patch_margin_bottom = 2
[node name="ActionsBackground" type="NinePatchRect" parent="MenuBackground"]
layout_mode = 0
offset_left = 325.0
offset_top = 400.0
offset_right = 1198.0
offset_bottom = 598.0
texture = ExtResource("1_uf5rv")
region_rect = Rect2(0, 0, 5, 5)
patch_margin_left = 2
patch_margin_top = 2
patch_margin_right = 2
patch_margin_bottom = 2
[node name="CloseButtonBackground" type="NinePatchRect" parent="MenuBackground"]
layout_mode = 0
offset_left = 1124.0
offset_top = 2.0
offset_right = 1198.0
offset_bottom = 76.0
texture = ExtResource("1_uf5rv")
region_rect = Rect2(0, 0, 5, 5)
patch_margin_left = 2
patch_margin_top = 2
patch_margin_right = 2
patch_margin_bottom = 2
[node name="CloseButton" type="Button" parent="MenuBackground/CloseButtonBackground"]
layout_mode = 0
offset_left = 1.0
offset_top = 1.0
offset_right = 73.0
offset_bottom = 73.0
icon = ExtResource("2_ceeiv")
script = ExtResource("4_68ool")
[connection signal="button_up" from="MenuBackground/CloseButtonBackground/CloseButton" to="MenuBackground/CloseButtonBackground/CloseButton" method="_on_button_up"]