summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.h
AgeCommit message (Collapse)Author
2022-02-16Merge pull request #58055 from markdibarry/add_get_line_offsetRémi Verschelde
2022-02-13Add offset methods for lines and paragraphs in RichTextLabelmarkdibarry
Adds `get_line_offset` and `get_paragraph_offset` methods to `RichTextLabel` Fix arg mismatch
2022-02-13Add get_character_line method for RichTextLabelmarkdibarry
Adds the ability to get the line number of provided character position Fix arg name Add get_character_paragraph Replaced glyph logic with code suggestions, added get_character_paragraph method Run doctool Use built-in method Replace TS access with built in method
2022-02-10Merge pull request #55207 from ConteZero/rich_text_label_dragRémi Verschelde
2022-02-10Add drag to RichTextLabelConteZero
2022-02-10Add get_content_width methodmarkdibarry
Adds a get_content_width method to RichTextLabel
2022-02-03Add auto-wrap mode property to the RichTextLabel, set default auto-wrap mode ↵bruvzg
to AUTOWRAP_WORD_SMART to match 3.x behavior.
2022-02-02[TextServer] Add function to change font, font size, and OpenType features ↵bruvzg
without invalidating line break points, justification points, or recreating shaped text buffer.
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2022-01-03Merge pull request #55487 from YeldhamDev/scroll_bikesheddingRémi Verschelde
2021-12-23Merge pull request #55636 from bruvzg/vis_char_modesRémi Verschelde
Add different "visible characters" behavior modes.
2021-12-09align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke
2021-12-06Add different "visible characters" behavior modes.bruvzg
2021-11-30Rename all methods that return `ScrollBar` nodes to `get_*_scroll_bar()`Michael Alexsander
2021-11-06Fix Label and RichTextLabale text shadows and shadow outlines.bruvzg
2021-10-28clang-format: Disable alignment of operands, too unreliableRémi Verschelde
Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
2021-10-27Merge pull request #54166 from ConteZero/unique_selectionRémi Verschelde
2021-10-27Add option to make selection uniqueConteZero
2021-10-23Make RichTextLabel's parse_bbcode and append_text return voidHaoyu Qiu
2021-09-21Add flag to connected grapheme. Apply RTL displacement FX only to the whole ↵bruvzg
connected grapheme. Pass more glyph info to the custom RTL FX.
2021-09-16Remove bbcode_text from RichTextLabelHaSa1002
Also renames: - append_bbcode -> append_text - get_bbcode -> get_text - set_bbcode -> set_text - get_text -> get_parsed_text Property text is: set_text get_text
2021-08-24RichTextLabel returns member (Array) for custom effects for EditorWilliam Deurwaarder
As RichTextLabel returned a copy of the member (Vector) the editor was notified that the value had changed which caused the dropdown menu to be immediately closed after opening. The fix is to return the member (Array) in stead of a copy which is the same instance and thereby does not notify the editor that the value has changed.
2021-08-23Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
2021-08-09Use doubles for time in many other placesAaron Franke
2021-08-08[Text Server] Improve object (image/table) inline alignment.bruvzg
2021-06-20Merge pull request #35608 from golfinq/masterRémi Verschelde
2021-06-20Rich Text Label now allows for foreground colors and background colorsgolfinq
2021-06-19Rename `instance()`->`instantiate()` when it's a verbLightning_A
2021-06-16Documentation search fixesGregory Basile
Updates rich_text_label so that the built-in documentation can be searched Previously, it would only find the first result and would not select other results Renames "_entered" functions to "_submitted"
2021-05-26Fixed implementation of RTL remove_line(), which fixed issues in EditorLog.Eric M
There were some issues in RichTextLabel `remove_line()` method, where items were not correctly removed, and line decremending for items in later lines was not correctly done. This also fixed several headaches with EditorLog, which relied on the `remove_line()` method for collapsing of duplicate messages. The fix to RTL also fixed the issues with EditorLog. Fixes #49030
2021-05-04Improve output log performance.Eric M
Added method to create a new line in RichTextLabel without adding an ItemNewline to the previous line. Previously, removing a line then adding a newline was adding unnecessary ItemNewline instances to the previous line, significantly the remove_line method.
2021-03-03Hide more options of disabled propertiesMichael Alexsander
2021-02-15Expose RichTextLabel selection to scriptPouleyKetchoupp
Expose existing get_selection_text and add methods to get the current selection index from and index to.
2021-02-14[CTL] Add missing font outline drawing routines and theme constants.bruvzg
2021-02-09Initialize class variables with default values in scene/ [2/2]Rafał Mikrut
2021-01-24Change themes *_color_* to *_*_colorMarcel Admiraal
Changed: font_color_accel -> font_accelerator_color font_color_bg -> font_unselected_color font_color_disabled -> font_disabled_color font_color_fg -> font_selected_color font_color_hover -> font_hover_color font_color_hover_pressed -> font_hover_pressed_color font_color_pressed -> font_pressed_color font_color_readonly -> font_readonly_color font_color_selected -> font_selected_color font_color_shadow -> font_shadow_color font_color_uneditable -> font_uneditable_color icon_color_disabled -> icon_disabled_color icon_color_hover -> icon_hover_color icon_color_hover_pressed -> icon_hover_pressed_color icon_color_normal -> icon_normal_color icon_color_pressed -> icon_pressed_color Also includes: font_outline_modulate -> font_outline_color tab_fg -> tab_selected tab_bg -> tab_unselected
2021-01-18RichTextLabel: adds separate `get_total_x_count`, `get_visible_x_count` and ↵bruvzg
`scroll_to_x` functions for wrapped lines and paragraphs (newlines).
2021-01-08Merge pull request #35505 from dalexeev/rtl_colorsRémi Verschelde
Unified named colors in RichTextLabel
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-29Merge pull request #43691 from bruvzg/ctl_dropcapRémi Verschelde
[Complex Text Layouts] Add drop-cap support to RTL.
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-16Remove empty lines around braces with the formatting scriptAaron Franke
2020-11-17Unified named colors in RichTextLabelDanil Alexeev
Now the BB tag `[color]` uses the color names from the `Color` class. Also, the use of the `#` symbol in an HTML color code has become optional.
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-07-10Add override keywords.Marcel Admiraal
2020-06-19Merge pull request #33235 from nekomatata/rich-text-label-fit-heightRémi Verschelde
Option in RichTextLabel for height to fit content
2020-05-30Add color option for img bbcode tag in RichTextLabel to tint imagesPouleyKetchoupp