[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) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 border_color = Color(0.25, 0.25, 0.25, 1) [node name="BodyPartPanel" type="PanelContainer"] 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") [node name="VBoxContainer" type="VBoxContainer" parent="."] layout_mode = 2 offset_left = 5.0 offset_top = 5.0 offset_right = 225.0 offset_bottom = 155.0 [node name="TitleLabel" type="Label" parent="VBoxContainer"] unique_name_in_owner = true layout_mode = 2 text = "Body Part" horizontal_alignment = 1 [node name="DrawingArea" type="Control" parent="VBoxContainer"] unique_name_in_owner = true layout_mode = 2 size_flags_vertical = 3 mouse_filter = 1 clip_contents = true theme_override_styles/panel = SubResource("StyleBox_drawing") [node name="ContextMenu" type="PopupPanel" parent="."] unique_name_in_owner = true script = ExtResource("2_context_menu_script") [node name="ColorPickerPopup" type="PopupPanel" parent="."] unique_name_in_owner = true visible = false [node name="VBoxContainer" type="VBoxContainer" parent="ColorPickerPopup"] layout_mode = 2 [node name="ColorPicker" type="ColorPicker" parent="ColorPickerPopup/VBoxContainer"] unique_name_in_owner = true layout_mode = 2 custom_minimum_size = Vector2(300, 300) [node name="ButtonRow" type="HBoxContainer" parent="ColorPickerPopup/VBoxContainer"] unique_name_in_owner = true layout_mode = 2 alignment = 2 [node name="CancelButton" type="Button" parent="ColorPickerPopup/VBoxContainer/ButtonRow"] unique_name_in_owner = true layout_mode = 2 text = "Cancel" [node name="OKButton" type="Button" parent="ColorPickerPopup/VBoxContainer/ButtonRow"] unique_name_in_owner = true layout_mode = 2 text = "Use Color"