summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
AgeCommit message (Collapse)Author
2023-01-12Merge pull request #70566 from cg9999/richtextlabel_fixRémi Verschelde
Fix crash in RichTextLabel table parsing
2023-01-12Fix crash in RichTextLabel table parsingHenri Valta
Fixed with help of feedback from bruvzg. Prevents invalid items getting to stack.
2023-01-05One Copyright Update to rule them allRémi Verschelde
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".
2022-12-23Merge pull request #70407 from Koyper/rich_text_bold_italicsYuri Sizov
[RTL] Fix push bold or italics not using bold_italics_font when required
2022-12-22Fixed RichTextLabel push bold/italic to correctly use bold_italic font.Koyper
2022-12-21Renamed RTL remove_line() to remove_paragraph().Koyper
2022-12-15[RTL/TextServer] Add baseline inline alignment mode for objects and RTL tables.bruvzg
2022-12-15[RTL] Fix nested tables getting parent offset applied multiple times.bruvzg
2022-12-14[RTL] Fix image click detection.bruvzg
2022-12-08RichTextLabel: decouple meta cursor from underlineLluc Pares
This commit decouples the type of cursor used when the underline of meta tag is set to False. Previous to this commit setting the meta underline to false in the RichTextLabel would also make it show the arrow cursor instead of the hand cursor. Making the meta tag with no underline should not have any effect on the type of cursor, since the text will still be clickable it should be expected to have a hand cursor. The same behavior is seen in other languages, like HTML+CSS, where the setting "text-decoration" to "none" for the links, disables the underline but maintains the clickable cursor. Fixes godotengine/godot-proposals#3193
2022-12-04[RTL] Fix search method not taking nested frame and line wraps into account.bruvzg
2022-12-02[RichTextEffect] Restore missing `relative_index` property.bruvzg
2022-11-30Rename theme cache separation namesIceflower
2022-11-24Add MAKE_RESOURCE_TYPE_HINT macro to simplify binding arrays of resourcesRémi Verschelde
2022-11-23add possibility to use only one colorHana
2022-11-17Fix multithreaded RTL resetting scroll position on resize.bruvzg
2022-11-17Add `Control::localize_numeral_system` property to toggle automatic numeral ↵bruvzg
system conversion.
2022-11-14Remove redundant Variant-types initializationsMarkus Sauermann
2022-10-31Merge pull request #63590 from golfinq/fbg-paddingRémi Verschelde
Add padding options in theme for fg/bgcolor tags in RichTextLabel
2022-10-26Remove override_selected_font_color propertykobewi
2022-10-13Merge pull request #66337 from EricEzaM/sprite-framesRémi Verschelde
Ensure control built-in shortcuts are matched exactly & add shortcuts for SpriteFrames editor
2022-10-11Add Spritesheet support to RichTextLabel BBCodePetra Baranski
BBCode: [img region=0,0,16,16]res://icon.svg[/img]
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-09-28Fix MSVC warning C4702: unreachable codeRémi Verschelde
Part of #66537.
2022-09-26[RTL] Fix font variations / OpenType features of theme default font not ↵bruvzg
updated when default font is changed.
2022-09-24Ensure all checks of `is_action` in the editor which are for 'shortcut' use, ↵Eric M
check the action exactly.
2022-09-23Merge pull request #65158 from nongvantinh/fixed-infinite-loopRémi Verschelde
Fixes engine runs into an infinite loop when searching using FindBar
2022-09-19[RTL] Add option to apply built-in effects to the individual connected glyphs.bruvzg
2022-09-16Fix RichTextLabel not updating on theme/theme override change until text is ↵bruvzg
updated.
2022-09-13RTL Improvementsbruvzg
Do not apply negative line separation to the last line. Ensure all methods immediately update cache in a single thread mode. Fix bbcode_enabled change not being applied until text is changed. Fix crash if line height is zero or less.
2022-09-07[RTL] Stop threaded RTL auto-redrawing as soon as text processing is ↵bruvzg
finished, instead of waiting for first redraw.
2022-09-06Fix theming code in Panel, SplitContainer, RichTextLabelYuri Sizov
2022-09-06Improve naming of theme properties throughout GUI codeYuri Sizov
Rename ItemList's bg -> panel Rename ItemList's bg_focus -> focus Rename ProgressBar's bg -> background Rename ProgressBar's fg -> fill Rename Tree's bg -> panel Rename Tree's bg_focus -> focus Rename ScrollContainer's bg -> panel Rename FileDialog's *_icon_modulate -> *_icon_color Rename FileDialog's files_disabled -> file_disabled_color Rename CheckButton's on/off -> checked/unchecked Rename check_v_adjust -> check_v_offset
2022-09-06Rename `range_lerp` to `remap`Micky
2022-09-02Fix theme propagation in various parts of the editorYuri Sizov
2022-09-01Fix Label & RichTextLabel's visible_ratio not workingMicky
2022-09-01[TextServer] Add support for trimming edge spaces on line break.bruvzg
2022-09-01Fixes #64962 that cause program run into infinite loopNong Van Tinh
2022-08-29Rename `CanvasItem.update()` to `queue_redraw()`Micky
Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
2022-08-28Reorganized Label and RichTextLabel propertiesVolTer
2022-08-26Rename Label & RichTextLabel.`percent_visible` to `visible_ratio`Micky
Also updates the documentation of both `visible_characters` and `visible_ratio` to, better describe what they do and improve consistency between the two Classes.
2022-08-24Merge pull request #59226 from Rindbee/better-setters-in-gui-controlsYuri Sizov
Improve the setters in gui, return directly if the value does not change.
2022-08-24Merge pull request #64783 from bruvzg/fix_rtl_min_sizeRémi Verschelde
Fix RTL min. size not triggering text cache update.
2022-08-23Add some codes, returnes directly if the value is not changed.风青山
Avoid executing the following value-changed logics if the value does not really change.
2022-08-23Fix RTL min. size not triggering text cache update.bruvzg
2022-08-23[RTL] Improve meta click position.bruvzg
2022-08-22Clamp Label's `percent_visible` properly between 0 and 1.0Micky
Also applies to RichTextLabel
2022-08-04Fix issue with overlaping text label textiwek
2022-07-31Add padding options in theme for fg/bgcolor tagsgolfinq
2022-07-26[RichTextLabel] Fix theme bold / italics / bold italics and mono font size ↵bruvzg
not applied correctly.