Tweak the property hint ranges of caret blink and line length guideline
This allows for more precise adjustments.
(cherry picked from commit 0eb2f6c223
)
This commit is contained in:
parent
9a0a40042e
commit
8ccb27ce18
|
@ -364,7 +364,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
||||||
_initial_set("text_editor/line_numbers/code_folding", true);
|
_initial_set("text_editor/line_numbers/code_folding", true);
|
||||||
_initial_set("text_editor/line_numbers/show_line_length_guideline", false);
|
_initial_set("text_editor/line_numbers/show_line_length_guideline", false);
|
||||||
_initial_set("text_editor/line_numbers/line_length_guideline_column", 80);
|
_initial_set("text_editor/line_numbers/line_length_guideline_column", 80);
|
||||||
hints["text_editor/line_numbers/line_length_guideline_column"] = PropertyInfo(Variant::INT, "text_editor/line_numbers/line_length_guideline_column", PROPERTY_HINT_RANGE, "20, 160, 10");
|
hints["text_editor/line_numbers/line_length_guideline_column"] = PropertyInfo(Variant::INT, "text_editor/line_numbers/line_length_guideline_column", PROPERTY_HINT_RANGE, "20, 160, 1");
|
||||||
|
|
||||||
_initial_set("text_editor/open_scripts/smooth_scrolling", true);
|
_initial_set("text_editor/open_scripts/smooth_scrolling", true);
|
||||||
_initial_set("text_editor/open_scripts/v_scroll_speed", 80);
|
_initial_set("text_editor/open_scripts/v_scroll_speed", 80);
|
||||||
|
@ -378,7 +378,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
||||||
_initial_set("text_editor/cursor/block_caret", false);
|
_initial_set("text_editor/cursor/block_caret", false);
|
||||||
_initial_set("text_editor/cursor/caret_blink", true);
|
_initial_set("text_editor/cursor/caret_blink", true);
|
||||||
_initial_set("text_editor/cursor/caret_blink_speed", 0.65);
|
_initial_set("text_editor/cursor/caret_blink_speed", 0.65);
|
||||||
hints["text_editor/cursor/caret_blink_speed"] = PropertyInfo(Variant::REAL, "text_editor/cursor/caret_blink_speed", PROPERTY_HINT_RANGE, "0.1, 10, 0.1");
|
hints["text_editor/cursor/caret_blink_speed"] = PropertyInfo(Variant::REAL, "text_editor/cursor/caret_blink_speed", PROPERTY_HINT_RANGE, "0.1, 10, 0.01");
|
||||||
_initial_set("text_editor/cursor/right_click_moves_caret", true);
|
_initial_set("text_editor/cursor/right_click_moves_caret", true);
|
||||||
|
|
||||||
_initial_set("text_editor/completion/auto_brace_complete", false);
|
_initial_set("text_editor/completion/auto_brace_complete", false);
|
||||||
|
|
|
@ -1464,7 +1464,7 @@ void LineEdit::_bind_methods() {
|
||||||
ADD_PROPERTYNZ(PropertyInfo(Variant::REAL, "placeholder_alpha", PROPERTY_HINT_RANGE, "0,1,0.001"), "set_placeholder_alpha", "get_placeholder_alpha");
|
ADD_PROPERTYNZ(PropertyInfo(Variant::REAL, "placeholder_alpha", PROPERTY_HINT_RANGE, "0,1,0.001"), "set_placeholder_alpha", "get_placeholder_alpha");
|
||||||
ADD_GROUP("Caret", "caret_");
|
ADD_GROUP("Caret", "caret_");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "caret_blink"), "cursor_set_blink_enabled", "cursor_get_blink_enabled");
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "caret_blink"), "cursor_set_blink_enabled", "cursor_get_blink_enabled");
|
||||||
ADD_PROPERTYNZ(PropertyInfo(Variant::REAL, "caret_blink_speed", PROPERTY_HINT_RANGE, "0.1,10,0.1"), "cursor_set_blink_speed", "cursor_get_blink_speed");
|
ADD_PROPERTYNZ(PropertyInfo(Variant::REAL, "caret_blink_speed", PROPERTY_HINT_RANGE, "0.1,10,0.01"), "cursor_set_blink_speed", "cursor_get_blink_speed");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "caret_position"), "set_cursor_position", "get_cursor_position");
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "caret_position"), "set_cursor_position", "get_cursor_position");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5716,7 +5716,7 @@ void TextEdit::_bind_methods() {
|
||||||
ADD_GROUP("Caret", "caret_");
|
ADD_GROUP("Caret", "caret_");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "caret_block_mode"), "cursor_set_block_mode", "cursor_is_block_mode");
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "caret_block_mode"), "cursor_set_block_mode", "cursor_is_block_mode");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "caret_blink"), "cursor_set_blink_enabled", "cursor_get_blink_enabled");
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "caret_blink"), "cursor_set_blink_enabled", "cursor_get_blink_enabled");
|
||||||
ADD_PROPERTYNZ(PropertyInfo(Variant::REAL, "caret_blink_speed", PROPERTY_HINT_RANGE, "0.1,10,0.1"), "cursor_set_blink_speed", "cursor_get_blink_speed");
|
ADD_PROPERTYNZ(PropertyInfo(Variant::REAL, "caret_blink_speed", PROPERTY_HINT_RANGE, "0.1,10,0.01"), "cursor_set_blink_speed", "cursor_get_blink_speed");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "caret_moving_by_right_click"), "set_right_click_moves_caret", "is_right_click_moving_caret");
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "caret_moving_by_right_click"), "set_right_click_moves_caret", "is_right_click_moving_caret");
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("cursor_changed"));
|
ADD_SIGNAL(MethodInfo("cursor_changed"));
|
||||||
|
|
Loading…
Reference in New Issue