152 lines
4.3 KiB
Plaintext
152 lines
4.3 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://6wqo0sp4eij6"]
|
|
|
|
[ext_resource type="Script" uid="uid://dlacmxk257ro" path="res://scripts/stickman_editor.gd" id="1_editor_script"]
|
|
[ext_resource type="Script" uid="uid://codv3g6qw1tef" path="res://scripts/whole_stickman_preview.gd" id="2_preview_script"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBox_preview"]
|
|
bg_color = Color(0.12, 0.12, 0.12, 1)
|
|
border_width_left = 1
|
|
border_width_top = 1
|
|
border_width_right = 1
|
|
border_width_bottom = 1
|
|
border_color = Color(0.3, 0.3, 0.3, 1)
|
|
corner_radius_top_left = 4
|
|
corner_radius_top_right = 4
|
|
corner_radius_bottom_right = 4
|
|
corner_radius_bottom_left = 4
|
|
|
|
[node name="StickmanEditor" 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_editor_script")
|
|
|
|
[node name="MenuBar" type="MenuBar" parent="."]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = 0
|
|
anchor_right = 1.0
|
|
offset_bottom = 32.0
|
|
grow_horizontal = 2
|
|
|
|
[node name="TopBar" type="HBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 0
|
|
anchor_right = 1.0
|
|
offset_top = 32.0
|
|
offset_bottom = 64.0
|
|
grow_horizontal = 2
|
|
|
|
[node name="NameLabel" type="Label" parent="TopBar"]
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(0.85, 0.85, 0.85, 1)
|
|
text = "Stickman Name:"
|
|
vertical_alignment = 1
|
|
|
|
[node name="StickmanNameEdit" type="LineEdit" parent="TopBar"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
placeholder_text = "Unnamed Stickman"
|
|
|
|
[node name="MainLayout" type="HBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 68.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="LeftColumn" type="VBoxContainer" parent="MainLayout"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="CenterColumn" type="VBoxContainer" parent="MainLayout"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="WholeStickmanPreview" type="PanelContainer" parent="MainLayout"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
size_flags_stretch_ratio = 2.0
|
|
theme_override_styles/panel = SubResource("StyleBox_preview")
|
|
script = ExtResource("2_preview_script")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MainLayout/WholeStickmanPreview"]
|
|
layout_mode = 2
|
|
|
|
[node name="PreviewTitle" type="Label" parent="MainLayout/WholeStickmanPreview/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(0.85, 0.85, 0.85, 1)
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "Whole Stickman"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="PreviewArea" type="Control" parent="MainLayout/WholeStickmanPreview/VBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
mouse_filter = 1
|
|
clip_contents = true
|
|
|
|
[node name="SaveDialog" type="FileDialog" parent="."]
|
|
unique_name_in_owner = true
|
|
title = "Save Stickman"
|
|
size = Vector2i(600, 450)
|
|
access = 2
|
|
filters = PackedStringArray("*.stk ; Stickman Files")
|
|
|
|
[node name="LoadDialog" type="FileDialog" parent="."]
|
|
unique_name_in_owner = true
|
|
title = "Open a File"
|
|
size = Vector2i(600, 450)
|
|
ok_button_text = "Open"
|
|
file_mode = 0
|
|
access = 2
|
|
filters = PackedStringArray("*.stk ; Stickman Files")
|
|
|
|
[node name="ClearConfirmDialog" type="ConfirmationDialog" parent="."]
|
|
unique_name_in_owner = true
|
|
title = "Clear Stickman"
|
|
ok_button_text = "Clear"
|
|
dialog_text = "Are you sure you want to clear the current stickman?
|
|
This action cannot be undone."
|
|
|
|
[node name="ErrorDialog" type="AcceptDialog" parent="."]
|
|
unique_name_in_owner = true
|
|
title = "Error"
|
|
|
|
[node name="GridConfigDialog" type="ConfirmationDialog" parent="."]
|
|
unique_name_in_owner = true
|
|
title = "Configure Grid"
|
|
ok_button_text = "OK"
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="GridConfigDialog"]
|
|
layout_mode = 2
|
|
|
|
[node name="GridSizeLabel" type="Label" parent="GridConfigDialog/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Grid Size (pixels):"
|
|
|
|
[node name="GridSizeSpinBox" type="SpinBox" parent="GridConfigDialog/VBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
min_value = 1.0
|
|
max_value = 100.0
|
|
value = 15.0
|
|
step = 1.0
|
|
rounded = true
|