1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Add Various ColorPicker shapes

This commit is contained in:
Kongfa Waroros
2021-02-23 17:22:46 +07:00
parent 55faf1c874
commit 6294507acb
12 changed files with 348 additions and 78 deletions

View File

@@ -832,6 +832,9 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
} else if (default_color_mode == 2) {
color_picker->set_raw_mode(true);
}
int picker_shape = EDITOR_GET("interface/inspector/default_color_picker_shape");
color_picker->set_picker_shape((ColorPicker::PickerShapeType)picker_shape);
}
color_picker->show();