summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
AgeCommit message (Collapse)Author
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-29Fix missed renamings from empty() to is_empty()Rémi Verschelde
Those were missed in #44401 or added by later PRs.
2020-12-29Merge pull request #43691 from bruvzg/ctl_dropcapRémi Verschelde
[Complex Text Layouts] Add drop-cap support to RTL.
2020-12-28Rename empty() to is_empty()Marcel Admiraal
2020-12-23Merge pull request #44605 from madmiraal/rename-control-marginRémi Verschelde
Rename Control margin to offset
2020-12-23Rename Control margin to offsetMarcel Admiraal
2020-12-21Fix RichTextLabel content height and scrollbar calculations.bruvzg
2020-12-13[Complex Text Layouts] Add drop-caps support to TextParagraph and RTL.bruvzg
2020-12-11[Complex Text Layouts] Refactor RichTextLabel.bruvzg
2020-12-09Cleanup unused engine codeTomasz Chabora
2020-11-26[Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg
use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
2020-09-14Improvement for the Copy button in the Output LogDanil Alexeev
Now if no text is selected, pressing the Copy button copies the entire text.
2020-09-11Fix RichTextLabel alignment for clickable regionsPouleyKetchoupp
Fixes #41006 (regression from #39164). The original alignment fix was limited to PROCESS_DRAW mode, which caused some discrepancies with PROCESS_POINTER mode. Now only PROCESS_CACHE is excluded with a condition a few lines above.
2020-09-03[Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg
2020-08-11Fix RichTextLabel center alignment bugUmang Kalra
Fixes #40207.
2020-07-27Make all String float conversion methods be 64-bitAaron Franke
2020-07-22Merge pull request #40217 from theoway/visible_line_count_fixRémi Verschelde
Fixes the get_visible_line_count() of rich text label
2020-07-14Correct RichTextLabel.custom_effects property type metadataEmmanuel Leblond
2020-07-09Fixes the get_visible_line_count() of rich text labelUmang Kalra
2020-07-03Fix RichTextLabel fill alignment regressionPouleyKetchoupp
Fixes #40068 (regression from #39164) by not applying the line offset change in the case of fill alignment mode.
2020-06-19Merge pull request #33235 from nekomatata/rich-text-label-fit-heightRémi Verschelde
Option in RichTextLabel for height to fit content
2020-06-15Merge pull request #39485 from theoway/append_bbcode_animation_bugRémi Verschelde
Fixes the stopping of animation effects in bbcode text after appending
2020-06-14Re-enable scroll follow on RichTextLabel clearTomasz Chabora
2020-06-13Fixes the stopping of animation effects in bbcode after appendingUmang Kalra
2020-06-03Merge pull request #39164 from theoway/richlabeltext_align_bugRémi Verschelde
Fixes the right and center alignment bug of rich text label
2020-06-03Allow scroll_to_line when scroll_active is 'false'Dominik 'dreamsComeTrue' Jasiński
Fix #36134
2020-06-03Fixes the right and center alignment bug of rich text labelUmang Kalra
2020-05-30Add color option for img bbcode tag in RichTextLabel to tint imagesPouleyKetchoupp
2020-05-22Option in RichTextLabel for height to fit contentPouleyKetchoupp
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
2020-05-10Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde
Part of #33027.
2020-05-10Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde
Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
2020-05-07Merge pull request #31086 from volzhs/underlineRémi Verschelde
Use underline position and thickness value in font file
2020-04-30Fixed bbcode parsing for built-in RichTextEffects in RichTextLabelDarenn
RichTextEffect can now have a bbcode string starting like one of the built-in. It was impossible before as the built-in would take precedence over the custom effect that has the same bbcode start. Example : [fade] would take precedence over [fade_in]
2020-04-29Use underline position and thickness value in font filevolzhs
2020-04-13Fixed 0 width issue of rich text labeljanglee
Fixes #37746
2020-04-07Fixed underlines and striketrough not respecting visible characterjanglee
2020-04-06Calculate strike-through position correctlyDominik 'dreamsComeTrue' Jasiński
Fixes: #37637
2020-04-05Merge pull request #37397 from Eoin-ONeill-Yokai/Bug37081Rémi Verschelde
Correction to RichTextLabel Tabulation (Bug 37081)
2020-04-02Replace NULL with nullptrlupoDharkael
2020-03-29Correction to RichTextLabel TabulationEoin O'Neill
Correct backtrack assignment to prevent excessive tabulation. Worth noting that tabulation is treated differently in RichTextLabel because of custom user-asignable tab variable which creates problems with dynamic fonts specifically.
2020-03-27Renaming of servers for coherency.Juan Linietsky
VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
2020-03-26Reworked tooltips to use the popup system.Juan Linietsky
2020-03-26Popups are now windows also (broken!)Juan Linietsky
2020-03-26Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky
2020-03-24Make search in RichTextLabel case-insensitiveTomasz Chabora
2020-03-01Merge pull request #18020 from bruvzg/input_fix_non_latin_and_add_hw_scancodesRémi Verschelde
Fix non-latin layout scancodes on Linux, adds access to physical scancodes.
2020-02-28Signals: Port connect calls to use callable_mpRémi Verschelde
Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)