FunkPanion/scenes/config_presets.tscn

84 lines
2.9 KiB
Text
Raw Permalink Normal View History

[gd_scene load_steps=5 format=3 uid="uid://b7a6e4l7mhqmt"]
[ext_resource type="StyleBox" uid="uid://bdkv45xc5lotp" path="res://assets/config/bg.tres" id="1_no4mj"]
[ext_resource type="Script" path="res://scripts/config/config_window_presets.gd" id="2_yjvpe"]
[ext_resource type="FontFile" uid="uid://4e3o2ds5xy7p" path="res://assets/fonts/MatSymOut.ttf" id="3_bra08"]
[ext_resource type="LabelSettings" uid="uid://2iu8q0tylumo" path="res://assets/config/header_bold.tres" id="4_mvauf"]
[node name="ScrollContainer" type="ScrollContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
theme_override_styles/panel = ExtResource("1_no4mj")
horizontal_scroll_mode = 0
vertical_scroll_mode = 0
script = ExtResource("2_yjvpe")
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/margin_left = 8
theme_override_constants/margin_top = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 8
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
[node name="Header" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="CloseButton" type="Button" parent="MarginContainer/VBoxContainer/Header"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_fonts/font = ExtResource("3_bra08")
theme_override_font_sizes/font_size = 24
text = "close"
flat = true
[node name="Header" type="Label" parent="MarginContainer/VBoxContainer/Header"]
layout_mode = 2
size_flags_horizontal = 3
text = "Presets"
label_settings = ExtResource("4_mvauf")
[node name="ResetButton" type="Button" parent="MarginContainer/VBoxContainer/Header"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
tooltip_text = "Reset your current configuration."
theme_override_fonts/font = ExtResource("3_bra08")
theme_override_font_sizes/font_size = 24
text = "reset_settings"
[node name="Tree" type="Tree" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
columns = 2
column_titles_visible = true
hide_folding = true
enable_recursive_folding = false
hide_root = true
select_mode = 1
scroll_horizontal_enabled = false
[node name="AddNew" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="name" type="LineEdit" parent="MarginContainer/VBoxContainer/AddNew"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "Preset Name"
[node name="switch" type="Button" parent="MarginContainer/VBoxContainer/AddNew"]
layout_mode = 2
text = "Save Preset"
[connection signal="pressed" from="MarginContainer/VBoxContainer/Header/CloseButton" to="." method="_on_close_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/Header/ResetButton" to="." method="_on_reset_button_pressed"]