summaryrefslogtreecommitdiffstats
path: root/scene/gui/rich_text_label.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotSpartan3222024-10-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084) Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* [RTL] Fix list item prefix width not taken into account.bruvzg2024-06-101-1/+6
|
* Fix RichTextLabel table overlapping with next lineaaronp642024-05-311-0/+2
| | | | | | | | When calculating table height, RichTextLabel::_shape_line would increase the height when it reached the end of a complete row, or the final cell of the table. RichTextLabel::_resize_line would only increase the height at the end of a complete row, causing the height to ignore the final row if not all cells were populated. This would cause the final row to overlap with the following line in the RichTextLabel if it was the last visible line in the RichTextLabel, as _resize_line is called when updating scrolling properties. This change moves the common table size calculations to a separate function to reuse the code between _shape_line and _resize_line, keeping the final cell check that was used in _shape_line. Fixes #92603
* [RTL] Adds extra argument to `remove_paragraph` to skip cache invalidation ↵bruvzg2024-05-021-1/+3
| | | | and a method for manual cache invalidation.
* Merge pull request #89705 from bruvzg/rtl_draw_stepsRémi Verschelde2024-04-291-1/+9
|\ | | | | | | [RTL] Move shadow and foreground/background boxes drawing into a separate draw steps.
| * [RTL] Move shadow and foreground/background boxes drawing into a separate ↵bruvzg2024-04-091-1/+9
| | | | | | | | draw steps.
* | [RTL] Rewrite `remove_paragraph` code.bruvzg2024-04-221-1/+1
|/
* [RTL] Add optional `push_meta` argument to control how meta underline is drawn.bruvzg2024-03-011-1/+10
|
* [RTL] Connect image update signals.bruvzg2024-01-261-1/+21
|
* Fix RichTextLabel.remove_paragraph crash by popping currentNicholas Foo2024-01-161-1/+1
|
* Merge pull request #80410 from bruvzg/rtl_img_featuresRémi Verschelde2023-09-261-1/+27
|\ | | | | | | [RTL] Add support for image dynamic updating, padding, tooltips and size in percent.
| * [RTL] Add support for image dynamic updating, padding, tooltips and size in ↵bruvzg2023-09-261-1/+27
| | | | | | | | percent.
* | Merge pull request #77819 from 0xafbf/char-fx-testsRémi Verschelde2023-09-261-11/+5
|\ \ | |/ |/| | | Make it possible to change character transform in RichTextEffect
| * Add transform support to CharFXTransformAndrés Botero2023-08-231-11/+5
| | | | | | | | | | | | Use absolute transforms for CharFX fix formatting
* | Bind remaining theme properties to their respective classesYuri Sizov2023-09-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This adds binds for GraphEdit/GraphElement/GraphNode, which were skipped before due to a rework. This also adds binds for Window, which was skipped before due to a complicated code organization. Also adds theme cache entries/direct cache access to a few places that previously missed it. Some theme properties are now exposed to other classes via friendships or public getters for convenience. This removes all string-based theme access from scene/ classes.
* | Register theme properties with ThemeDBYuri Sizov2023-09-111-0/+1
| |
* | [RTL] Adds "lang" tag to allow overriding language specific text rendering ↵bruvzg2023-08-211-1/+8
|/ | | | without starting a new paragraph.
* Use compile-time Unicode string conversionHugo Locurcio2023-08-071-1/+1
| | | | | Thanks to this syntax introduced in C++11, this reduces the amount of work that needs to be performed at run-time while making the code more terse.
* Add drag and drop option for line edit and rich text labelunknown2023-07-191-0/+6
|
* Extract and reorganize texture resource classesHendrik Brucker2023-07-141-1/+1
|
* Merge pull request #79011 from bruvzg/pop_allYuri Sizov2023-07-141-1/+9
|\ | | | | | | [RTL] Add `pop_all`, `push_context` and `pop_context` methods, and use it for `print_rich` to avoid unclosed tags.
| * [RTL] Add `pop_all`, `push_context` and `pop_context` methods, and use it ↵bruvzg2023-07-091-1/+9
| | | | | | | | for `print_rich` to avoid unclosed tags.
* | Merge pull request #77117 from Calinou/richtextlabel-add-pulse-effectYuri Sizov2023-07-121-0/+10
|\ \ | |/ |/| | | Add a `[pulse]` built-in effect to RichTextLabel
| * Add a `[pulse]` built-in effect to RichTextLabelHugo Locurcio2023-06-051-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In games, blinking text is one of the more frequently used animations. It can be (sparingly) used to bring attention to important messages in a chat log or inventory tooltip, for instance. This effect accepts the following options: - `freq`: How fast text blinks (higher is faster). - `color`: The target color multiplier for blinking. The default mostly fades out text, but not entirely (for better accessibility). - `ease`: The easing function exponent to use. Negative values provide in-out easing, which is why `-2.0` is the default.
* | [RTL] Fix multithreaded resizing.bruvzg2023-06-141-0/+1
| |
* | Fix editor log flicker.bruvzg2023-06-121-0/+1
|/
* Merge pull request #75622 from ↵Rémi Verschelde2023-05-241-0/+1
|\ | | | | | | | | | | joao-pedro-braz/parse_string_paths_with_quotes_correctly_bb_code Make sure to normalize subtags when parsing BBCode
| * Make sure to normalize subtags when parsing BBCodeJoão Pedro Braz2023-05-231-0/+1
| | | | | | | | | | | | | | | | This PR makes it so that all subtags are normalized before usage. Normalization means removing any leading and/or trailing quotation marks from any given subtag. Fixes: https://github.com/godotengine/godot/issues/75501
* | [RichTextLabel] Add support for tab stops.bruvzg2023-05-201-1/+3
| |
* | Expose TextServer justification flags to Label, Label3D, TextMesh and RTL. ↵bruvzg2023-05-151-1/+4
| | | | | | | | Add flags to control last/single line justification.
* | Improve line BiDi handling, prevent crash on recursive log updates.bruvzg2023-04-121-0/+2
| |
* | Add translation support to RichTextLabelTimothée Giet2023-04-111-0/+1
|/ | | | | BUG: 34050 add translation support to RichTextLabel, and respect its Auto Translate setting
* [RTL] Add option to customize list bullet, use U+2022 by default.bruvzg2023-03-171-1/+2
|
* Remove methods in header removed in c7eb814George L. Albany2023-03-151-3/+0
| | | | | | | | | c7eb814 missed these methods in the RichTextLabel's header Remove set_override_selected_font_color from rich_text_label.h Remove is_override_selected_font_color from rich_text_label.h c7eb814 missed these methods in the TextEdit's header Remove set_override_selected_font_color from text_edit.h Remove is_override_selected_font_color from text_edit.h
* RichTextLabel fixesRedMser2023-02-141-1/+0
| | | | | - Unexpose ItemType enum, since it is not used in public API. - Fix documentation for meta tag, since it has no BBCode equivalent.
* Fix `RichTextLabel` context menu not customizableDanil Alexeev2023-02-031-1/+4
|
* [RichTextLabel] Fix thread unsafe `set_physics_process_internal` usage. Use ↵bruvzg2023-01-301-2/+4
| | | | `WorkerThreadPool` instead of creating new threads.
* [RichTextLabel] Match minimum size calculation of LabelHendrik Brucker2023-01-131-6/+3
| | | | (optional via fit_content property)
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Renamed RTL remove_line() to remove_paragraph().Koyper2022-12-211-1/+1
|
* [RTL/TextServer] Add baseline inline alignment mode for objects and RTL tables.bruvzg2022-12-151-1/+3
|
* [RTL] Fix search method not taking nested frame and line wraps into account.bruvzg2022-12-041-0/+2
|
* Remove override_selected_font_color propertykobewi2022-10-261-1/+1
|
* Add Spritesheet support to RichTextLabel BBCodePetra Baranski2022-10-111-1/+1
| | | | BBCode: [img region=0,0,16,16]res://icon.svg[/img]
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-6/+6
| | | | change warnings=all to use /W4.
* [RTL] Fix font variations / OpenType features of theme default font not ↵bruvzg2022-09-261-1/+4
| | | | updated when default font is changed.
* [RTL] Add option to apply built-in effects to the individual connected glyphs.bruvzg2022-09-191-3/+4
|
* Fix RichTextLabel not updating on theme/theme override change until text is ↵bruvzg2022-09-161-0/+11
| | | | updated.
* Fix theme propagation in various parts of the editorYuri Sizov2022-09-021-0/+41
|