You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Tweak the script editor's line/column indicator for readability
- Use a colon instead of parentheses and a comma to reduce visual clutter. - Pad the line number with 4 spaces to account for scripts longer than 999 lines.
This commit is contained in:
@@ -834,11 +834,9 @@ void CodeTextEditor::_line_col_changed() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
StringBuilder sb;
|
StringBuilder sb;
|
||||||
sb.append("(");
|
sb.append(itos(text_editor->get_caret_line() + 1).lpad(4));
|
||||||
sb.append(itos(text_editor->get_caret_line() + 1).lpad(3));
|
sb.append(" : ");
|
||||||
sb.append(",");
|
|
||||||
sb.append(itos(positional_column + 1).lpad(3));
|
sb.append(itos(positional_column + 1).lpad(3));
|
||||||
sb.append(")");
|
|
||||||
|
|
||||||
line_and_col_txt->set_text(sb.as_string());
|
line_and_col_txt->set_text(sb.as_string());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user