Strayvoid/scenes/world_map.tscn
2025-03-24 19:21:17 +01:00

87 lines
3.0 KiB
Plaintext

[gd_scene load_steps=11 format=3 uid="uid://bad3nmlv2m7ig"]
[ext_resource type="Script" path="res://scripts/world_map.gd" id="1_vaj7y"]
[ext_resource type="Texture2D" uid="uid://nf1t72v76e6d" path="res://assets/sprites/background.png" id="2_p0e6e"]
[ext_resource type="Texture2D" uid="uid://dad7dkue6gyiv" path="res://assets/sprites/world1.png" id="3_ngfgm"]
[ext_resource type="LabelSettings" uid="uid://bpinurw0bakgm" path="res://assets/tres/label.tres" id="3_x7ldi"]
[ext_resource type="LabelSettings" uid="uid://ntl7jil1tcua" path="res://assets/tres/label_options.tres" id="4_dx5fl"]
[ext_resource type="Texture2D" uid="uid://dfhbdyfc0a572" path="res://assets/sprites/buttons/button.png" id="5_nfan6"]
[ext_resource type="Texture2D" uid="uid://wrbi6c4sil01" path="res://assets/sprites/buttons/button_pressed.png" id="6_eouwa"]
[ext_resource type="Texture2D" uid="uid://l0hgddevuuak" path="res://assets/sprites/buttons/button_hover.png" id="7_bomdv"]
[ext_resource type="FontFile" uid="uid://c6e56mqdq236j" path="res://assets/fonts/ark-pixel-12px-proportional-latin.ttf" id="8_fmp8h"]
[sub_resource type="LabelSettings" id="LabelSettings_ofavl"]
font = ExtResource("8_fmp8h")
font_size = 12
font_color = Color(0.560784, 0.337255, 0.623529, 1)
[node name="worldMap" 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_vaj7y")
[node name="background" type="Sprite2D" parent="."]
position = Vector2(320, 180)
texture = ExtResource("2_p0e6e")
[node name="World 1" type="Label" parent="."]
layout_mode = 2
offset_left = 192.0
offset_top = 64.0
offset_right = 448.0
offset_bottom = 118.0
text = "Select world"
label_settings = ExtResource("3_x7ldi")
horizontal_alignment = 1
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 2
offset_left = 192.0
offset_top = 128.0
offset_right = 448.0
offset_bottom = 332.0
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
layout_mode = 2
[node name="world1" type="TextureButton" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2
texture_normal = ExtResource("3_ngfgm")
stretch_mode = 0
[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "World 1"
label_settings = ExtResource("4_dx5fl")
horizontal_alignment = 1
[node name="Back" type="TextureButton" parent="."]
layout_mode = 0
offset_left = 8.0
offset_top = 8.0
offset_right = 146.0
offset_bottom = 41.0
texture_normal = ExtResource("5_nfan6")
texture_pressed = ExtResource("6_eouwa")
texture_hover = ExtResource("7_bomdv")
ignore_texture_size = true
stretch_mode = 0
[node name="Back" type="Label" parent="Back"]
layout_mode = 0
offset_left = 1.0
offset_top = 1.0
offset_right = 137.0
offset_bottom = 32.0
text = "Back"
label_settings = SubResource("LabelSettings_ofavl")
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="pressed" from="HBoxContainer/VBoxContainer/world1" to="." method="_on_world_1_pressed"]
[connection signal="pressed" from="Back" to="." method="_on_back_pressed"]