diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-11-20 00:15:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 00:15:10 +0100 |
commit | d826b043ad285121cedf6286d1fad1eb23535bcc (patch) | |
tree | a2693df052ba0de198970db7f51e4c4e9ffec719 /editor/plugins/script_text_editor.h | |
parent | 9fc0b23210df7fbb6e95f8765e798bacd1853f46 (diff) | |
parent | 1e59169d2d62edc25d5c046ff119cdd9bc991a18 (diff) | |
download | redot-engine-d826b043ad285121cedf6286d1fad1eb23535bcc.tar.gz |
Merge pull request #12950 from ianb96/code_folding
Code Folding
Diffstat (limited to 'editor/plugins/script_text_editor.h')
-rw-r--r-- | editor/plugins/script_text_editor.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.h b/editor/plugins/script_text_editor.h index 83f3ea57c0..722015ef3e 100644 --- a/editor/plugins/script_text_editor.h +++ b/editor/plugins/script_text_editor.h @@ -91,6 +91,10 @@ class ScriptTextEditor : public ScriptEditorBase { EDIT_TO_UPPERCASE, EDIT_TO_LOWERCASE, EDIT_CAPITALIZE, + EDIT_FOLD_LINE, + EDIT_UNFOLD_LINE, + EDIT_FOLD_ALL_LINES, + EDIT_UNFOLD_ALL_LINES, SEARCH_FIND, SEARCH_FIND_NEXT, SEARCH_FIND_PREV, @@ -118,7 +122,7 @@ protected: static void _bind_methods(); void _edit_option(int p_op); - void _make_context_menu(bool p_selection, bool p_color); + void _make_context_menu(bool p_selection, bool p_color, bool p_can_fold, bool p_is_folded); void _text_edit_gui_input(const Ref<InputEvent> &ev); void _color_changed(const Color &p_color); |