mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
[RTL] Add paragraph separation theme property.
This commit is contained in:
parent
fc523ec5f6
commit
1e2fc9bcad
5 changed files with 23 additions and 12 deletions
|
|
@ -181,8 +181,8 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ float get_height(float line_separation) const {
|
||||
return offset.y + text_buf->get_size().y + text_buf->get_line_count() * line_separation;
|
||||
_FORCE_INLINE_ float get_height(float p_line_separation, float p_paragraph_separation) const {
|
||||
return offset.y + text_buf->get_size().y + (text_buf->get_line_count() - 1) * p_line_separation + p_paragraph_separation;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -717,6 +717,7 @@ private:
|
|||
Ref<StyleBox> progress_fg_style;
|
||||
|
||||
int line_separation;
|
||||
int paragraph_separation;
|
||||
|
||||
Ref<Font> normal_font;
|
||||
int normal_font_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue