mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
[RTL] Add option to scroll follow visible characters.
This commit is contained in:
parent
d7cc121e64
commit
45a564f4f8
3 changed files with 43 additions and 0 deletions
|
|
@ -527,6 +527,8 @@ private:
|
|||
|
||||
bool scroll_visible = false;
|
||||
bool scroll_follow = false;
|
||||
bool scroll_follow_visible_characters = false;
|
||||
int follow_vc_pos = 0;
|
||||
bool scroll_following = false;
|
||||
bool scroll_active = true;
|
||||
int scroll_w = 0;
|
||||
|
|
@ -554,6 +556,7 @@ private:
|
|||
|
||||
HashMap<RID, Rect2> ac_element_bounds_cache;
|
||||
|
||||
void _update_follow_vc();
|
||||
void _invalidate_accessibility();
|
||||
void _invalidate_current_line(ItemFrame *p_frame);
|
||||
|
||||
|
|
@ -839,6 +842,9 @@ public:
|
|||
void set_scroll_follow(bool p_follow);
|
||||
bool is_scroll_following() const;
|
||||
|
||||
void set_scroll_follow_visible_characters(bool p_follow);
|
||||
bool is_scroll_following_visible_characters() const;
|
||||
|
||||
void set_tab_size(int p_spaces);
|
||||
int get_tab_size() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue