diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2020-07-25 18:27:35 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2020-09-10 20:35:28 +0100 |
commit | 1353ed5e44a725308292ce44d24d7cf76b0af272 (patch) | |
tree | ff30ce8e33db378aff9637698034c420472244db /editor/plugins/visual_shader_editor_plugin.cpp | |
parent | c13d9eb6e500ace4e106c50cb016125ef064f4e4 (diff) |
Added Line numbers to CodeEdit
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 0da86ed3a1..adca639896 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -968,7 +968,7 @@ void VisualShaderEditor::_update_graph() { expression_box->set_text(expression); expression_box->set_context_menu_enabled(false); - expression_box->set_show_line_numbers(true); + expression_box->set_draw_line_numbers(true); expression_box->connect("focus_exited", callable_mp(this, &VisualShaderEditor::_expression_focus_out), varray(expression_box, nodes[n_i])); } @@ -2557,7 +2557,7 @@ VisualShaderEditor::VisualShaderEditor() { preview_text->set_v_size_flags(SIZE_EXPAND_FILL); preview_text->set_custom_minimum_size(Size2(400 * EDSCALE, 0)); preview_text->set_syntax_highlighter(syntax_highlighter); - preview_text->set_show_line_numbers(true); + preview_text->set_draw_line_numbers(true); preview_text->set_readonly(true); error_text = memnew(Label); |