GodotCourse/week6/example/UIDemo/main.tscn

200 lines
5.5 KiB
Plaintext
Raw Permalink Normal View History

2024-08-12 21:45:20 +00:00
[gd_scene load_steps=24 format=3 uid="uid://2imtdevb7dgp"]
[ext_resource type="Script" path="res://scripts/uicontrols.gd" id="1_jdye0"]
[ext_resource type="Theme" uid="uid://c1bv8x07p5hcq" path="res://themes/basic_theme.tres" id="1_rased"]
[ext_resource type="Texture2D" uid="uid://b1jefdr3xicmi" path="res://graphics/Player Idle 48x48.png" id="3_8gddj"]
[ext_resource type="Texture2D" uid="uid://cm1woggnuul4l" path="res://graphics/player run 48x48.png" id="4_feex0"]
[sub_resource type="AtlasTexture" id="AtlasTexture_2g7pn"]
atlas = ExtResource("3_8gddj")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_lkww2"]
atlas = ExtResource("3_8gddj")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_op60x"]
atlas = ExtResource("3_8gddj")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_u4y5s"]
atlas = ExtResource("3_8gddj")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_8iwh7"]
atlas = ExtResource("3_8gddj")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_e1wx7"]
atlas = ExtResource("3_8gddj")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_hi7vn"]
atlas = ExtResource("3_8gddj")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ljcxo"]
atlas = ExtResource("3_8gddj")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_3vbn3"]
atlas = ExtResource("3_8gddj")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_3jbx1"]
atlas = ExtResource("3_8gddj")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_632tr"]
atlas = ExtResource("4_feex0")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_16llu"]
atlas = ExtResource("4_feex0")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_1h853"]
atlas = ExtResource("4_feex0")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_g3x76"]
atlas = ExtResource("4_feex0")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ojjof"]
atlas = ExtResource("4_feex0")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vsvld"]
atlas = ExtResource("4_feex0")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_wyf10"]
atlas = ExtResource("4_feex0")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_76v8x"]
atlas = ExtResource("4_feex0")
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_ykw1q"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2g7pn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lkww2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_op60x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u4y5s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8iwh7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e1wx7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hi7vn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ljcxo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3vbn3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3jbx1")
}],
"loop": true,
"name": &"idle",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_632tr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_16llu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1h853")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g3x76")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ojjof")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vsvld")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wyf10")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_76v8x")
}],
"loop": true,
"name": &"run",
"speed": 15.0
}]
[node name="CenterContainer" type="CenterContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_jdye0")
[node name="PanelContainer" type="PanelContainer" parent="."]
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
theme = ExtResource("1_rased")
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
layout_mode = 2
theme = ExtResource("1_rased")
[node name="Label" type="Label" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
theme = ExtResource("1_rased")
text = "MAIN MENU"
horizontal_alignment = 1
[node name="NewGameButton" type="Button" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
theme = ExtResource("1_rased")
text = "New Game"
[node name="ContinueButton" type="Button" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
text = "Continue"
[node name="SettingsButton" type="Button" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
text = "Settings"
[node name="QuitButton" type="Button" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
text = "Quit"
[node name="Control" type="Control" parent="PanelContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 120)
layout_mode = 2
[node name="Node2D" type="Node2D" parent="PanelContainer/VBoxContainer/Control"]
texture_filter = 1
position = Vector2(150, 42)
scale = Vector2(2, 2)
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="PanelContainer/VBoxContainer/Control/Node2D"]
sprite_frames = SubResource("SpriteFrames_ykw1q")
animation = &"run"
autoplay = "idle"