start creating the framework for menus (#3)
all very experimental so it'll see lots of changes
This commit is contained in:
parent
f7e85724b3
commit
eefda9e2bd
6 changed files with 479 additions and 1 deletions
102
menus/main/save_file_manager.tscn
Normal file
102
menus/main/save_file_manager.tscn
Normal file
|
@ -0,0 +1,102 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://w5te3qujco7d"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_a5kgg"]
|
||||
script/source = "extends MarginContainer
|
||||
|
||||
func _ready() -> void:
|
||||
$HSplitContainer/CenterContainer/Label.hide()
|
||||
|
||||
|
||||
func _on_button_pressed() -> void:
|
||||
$HSplitContainer/CenterContainer/Label.show()
|
||||
$AnimationPlayer.play(\"add_information\")
|
||||
"
|
||||
|
||||
[sub_resource type="Animation" id="Animation_a5kgg"]
|
||||
resource_name = "add_information"
|
||||
length = 0.2
|
||||
step = 0.2
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("HSplitContainer/CenterContainer:size_flags_stretch_ratio")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [0.0, 2.0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_xs01b"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("HSplitContainer/CenterContainer:size_flags_stretch_ratio")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [0.0]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_36lt1"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_xs01b"),
|
||||
&"add_information": SubResource("Animation_a5kgg")
|
||||
}
|
||||
|
||||
[node name="SaveFileManager" type="MarginContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
theme_override_constants/margin_left = 20
|
||||
theme_override_constants/margin_top = 20
|
||||
theme_override_constants/margin_right = 20
|
||||
theme_override_constants/margin_bottom = 20
|
||||
script = SubResource("GDScript_a5kgg")
|
||||
|
||||
[node name="HSplitContainer" type="HSplitContainer" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="HSplitContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
alignment = 1
|
||||
|
||||
[node name="Button" type="Button" parent="HSplitContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Save file"
|
||||
|
||||
[node name="Button2" type="Button" parent="HSplitContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Save file"
|
||||
|
||||
[node name="Button3" type="Button" parent="HSplitContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Save file"
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="HSplitContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.0
|
||||
|
||||
[node name="Label" type="Label" parent="HSplitContainer/CenterContainer"]
|
||||
show_behind_parent = true
|
||||
layout_mode = 2
|
||||
text = "Information"
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_36lt1")
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="HSplitContainer/VBoxContainer/Button" to="." method="_on_button_pressed"]
|
Loading…
Add table
Add a link
Reference in a new issue