diff options
author | Kongfa Waroros <gongpha@hotmail.com> | 2021-02-23 17:22:46 +0700 |
---|---|---|
committer | Kongfa Waroros <gongpha@hotmail.com> | 2021-04-06 22:48:03 +0700 |
commit | 6294507acb0b2e07dc7e48adb97e03dd92ccd8fa (patch) | |
tree | 24599df8a1dae120a374f4f5beb7497c679ec6a2 /editor/plugins/script_text_editor.cpp | |
parent | 55faf1c874fae5b67928395d3a35889bbb4e458b (diff) | |
download | redot-engine-6294507acb0b2e07dc7e48adb97e03dd92ccd8fa.tar.gz |
Add Various ColorPicker shapes
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 3534809891..c982207224 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1721,6 +1721,9 @@ void ScriptTextEditor::_enable_code_editor() { 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); + quick_open = memnew(ScriptEditorQuickOpen); quick_open->connect("goto_line", callable_mp(this, &ScriptTextEditor::_goto_line)); add_child(quick_open); |