diff options
| author | Rémi Verschelde | 2018-05-04 09:58:35 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-04 09:58:35 +0200 |
| commit | 6405dcb7dbf4447729b6402208adbb151a5e9f1a (patch) | |
| tree | eccc0547c17d9fd7d44c4fe3ad34e9b5750c8648 /scene | |
| parent | d6ddfdf004a1b5a334a0709e87e2e427624e616b (diff) | |
| parent | 4e26e5e26855c29e47f4e38f03c0f697af5b8c2d (diff) | |
| download | godot-6405dcb7dbf4447729b6402208adbb151a5e9f1a.tar.gz godot-6405dcb7dbf4447729b6402208adbb151a5e9f1a.tar.zst godot-6405dcb7dbf4447729b6402208adbb151a5e9f1a.zip | |
Merge pull request #18595 from AlexHoratio/script_pos_columns
Script Editor now displays positional column
Diffstat (limited to 'scene')
| -rw-r--r-- | scene/gui/text_edit.cpp | 5 | ||||
| -rw-r--r-- | scene/gui/text_edit.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 24a13db3c..423e011d1 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4978,6 +4978,11 @@ void TextEdit::set_indent_size(const int p_size) { update(); } +int TextEdit::get_indent_size() { + + return indent_size; +} + void TextEdit::set_draw_tabs(bool p_draw) { draw_tabs = p_draw; diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h index 30e70bfd0..60c6ab492 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -557,6 +557,7 @@ public: void set_indent_using_spaces(const bool p_use_spaces); bool is_indent_using_spaces() const; void set_indent_size(const int p_size); + int get_indent_size(); void set_draw_tabs(bool p_draw); bool is_drawing_tabs() const; void set_override_selected_font_color(bool p_override_selected_font_color); |
