feat: harmonize Prop and Stickman editor UI
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=3 format=3]
|
||||
[gd_scene load_steps=4 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/editors/stickman/body_part_panel.gd" id="1_panel_script"]
|
||||
[ext_resource type="Script" path="res://scripts/shared/editor_ui/editor_context_menu.gd" id="2_context_menu_script"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBox_drawing"]
|
||||
bg_color = Color(0.12, 0.12, 0.12, 1)
|
||||
@@ -14,6 +15,7 @@ border_color = Color(0.25, 0.25, 0.25, 1)
|
||||
custom_minimum_size = Vector2(230, 160)
|
||||
offset_right = 230.0
|
||||
offset_bottom = 160.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
script = ExtResource("1_panel_script")
|
||||
|
||||
@@ -38,9 +40,9 @@ mouse_filter = 1
|
||||
clip_contents = true
|
||||
theme_override_styles/panel = SubResource("StyleBox_drawing")
|
||||
|
||||
[node name="ContextMenu" type="PopupMenu" parent="."]
|
||||
[node name="ContextMenu" type="PopupPanel" parent="."]
|
||||
unique_name_in_owner = true
|
||||
item_count = 0
|
||||
script = ExtResource("2_context_menu_script")
|
||||
|
||||
[node name="ColorPickerPopup" type="PopupPanel" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://6wqo0sp4eij6"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://6wqo0sp4eij6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dlacmxk257ro" path="res://scripts/editors/stickman/stickman_editor.gd" id="1_editor_script"]
|
||||
[ext_resource type="Script" uid="uid://codv3g6qw1tef" path="res://scripts/editors/stickman/whole_stickman_preview.gd" id="2_preview_script"]
|
||||
[ext_resource type="Script" path="res://scripts/shared/editor_ui/editor_selection_dropdown.gd" id="3_selection_dropdown_script"]
|
||||
|
||||
[node name="StickmanEditor" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -60,9 +61,10 @@ layout_mode = 2
|
||||
text = "Focus on Part"
|
||||
toggle_mode = true
|
||||
|
||||
[node name="PartPicker" type="OptionButton" parent="ChromeRoot/WorkspaceToolbar"]
|
||||
[node name="PartPicker" type="MenuButton" parent="ChromeRoot/WorkspaceToolbar"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
script = ExtResource("3_selection_dropdown_script")
|
||||
|
||||
[node name="AddShapeButton" type="Button" parent="ChromeRoot/WorkspaceToolbar"]
|
||||
unique_name_in_owner = true
|
||||
@@ -115,16 +117,22 @@ vertical_scroll_mode = 1
|
||||
[node name="OverviewColumns" type="HBoxContainer" parent="ChromeRoot/WorkspaceRow/BodyPartWorkspace/OverviewScroll"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="LeftColumn" type="VBoxContainer" parent="ChromeRoot/WorkspaceRow/BodyPartWorkspace/OverviewScroll/OverviewColumns"]
|
||||
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="ChromeRoot/WorkspaceRow/BodyPartWorkspace/OverviewScroll/OverviewColumns"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/separation = 6
|
||||
|
||||
[node name="FocusHost" type="VBoxContainer" parent="ChromeRoot/WorkspaceRow/BodyPartWorkspace"]
|
||||
@@ -138,12 +146,6 @@ grow_vertical = 2
|
||||
visible = false
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="FocusPartLabel" type="Label" parent="ChromeRoot/WorkspaceRow/BodyPartWorkspace/FocusHost"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Head"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="FocusPanelHost" type="Control" parent="ChromeRoot/WorkspaceRow/BodyPartWorkspace/FocusHost"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
@@ -219,9 +221,9 @@ filters = PackedStringArray("*.stk ; Stickman Files")
|
||||
|
||||
[node name="ClearConfirmDialog" type="ConfirmationDialog" parent="."]
|
||||
unique_name_in_owner = true
|
||||
title = "Start Over"
|
||||
title = "Start Over?"
|
||||
ok_button_text = "Start Over"
|
||||
dialog_text = "Start over with a blank stickman?"
|
||||
dialog_text = "This will clear your current stickman. Start over?"
|
||||
|
||||
[node name="UnsavedChangesDialog" type="ConfirmationDialog" parent="."]
|
||||
unique_name_in_owner = true
|
||||
@@ -254,3 +256,6 @@ max_value = 100.0
|
||||
value = 15.0
|
||||
step = 1.0
|
||||
rounded = true
|
||||
|
||||
[node name="StageDialogLayer" type="CanvasLayer" parent="."]
|
||||
layer = 100
|
||||
|
||||
Reference in New Issue
Block a user