summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
AgeCommit message (Collapse)Author
2022-09-01[TextServer] Add support for trimming edge spaces on line break.bruvzg
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-26[RichTextLabel] Fix theme bold / italics / bold italics and mono font size ↵bruvzg
not applied correctly.
2022-07-24Add error for invalid RichTextLabel.install_effectRedMser
2022-07-15Use BitField hint for the TextServer enums. Add missing parts for BitField ↵bruvzg
support to the GDextension API.
2022-07-13Merge pull request #62774 from Rindbee/make-the-meta-click-area-fitRémi Verschelde
Make the meta click area fit to its visible area
2022-07-13Make the meta click area fitRindbee
Eliminate the click vacuum area, mainly the indentation generated by indent/ul/ol tags
2022-07-07Fix regressions from Font refactorbruvzg
Fixes `p_font.is_null()` errors due to incorrect resource type used. Fixes code editor font not set correctly, and OpenType features applied to the wrong font.
2022-07-06Refactor Font configuration and import UI, and Font resources.bruvzg
2022-06-16Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the ↵bruvzg
TextServer.
2022-06-13[RTL] Fix underline/overline/strikethrough interaction with the "visible ↵bruvzg
characters" property.
2022-06-11Add suffixes to all nodes and resourcesFireForge
2022-06-06[RTL] Stop processing thread before deleting scroll bar.bruvzg
2022-06-06Merge pull request #61724 from iwek7/fixing_rich_text_labelRémi Verschelde
Fix richTextLabel scroll showing
2022-06-05Fix richTextLabel scroll showingiwek
2022-06-05Fix strange behavior with list close tags and empty list tagsRindbee
Fix the first two points in #61621. Support for two writing ways: compact or loose. The loose one is designed for easy editing in the editor. For this, the first blank line (if exists) right after the list tags (`[ol]`, `[/ol]`, `[ul]`, and `[/ul]`) will be ignored. Make sure the empty list contains at least one item, that is, an empty list is ultimately a list with one item. As a reminder here is a list.
2022-05-20Merge pull request #61182 from danielkariv/fix_misclick_selectionRémi Verschelde
2022-05-19add check for selection when try to push a meta.Daniel Kariv
Add a check for when we select a text but end on a link. Before it would act as if we just click an link, but now it changes it so if we click-drag over a link, we could select it (and not move to other page).
2022-05-19[RTL] Add support for shaping in background thread.bruvzg
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-04-25Merge pull request #60261 from fire-forge/theme-prop-renamesRémi Verschelde
2022-04-23Rename theme properties to include underscoresFireForge
- check_vadjust -> check_v_adjust - close_h_ofs -> close_h_offset - close_v_ofs -> close_v_offset - commentfocus -> comment_focus - hseparation -> h_separation - ofs -> offset - selectedframe -> selected_frame - state_machine_selectedframe -> state_machine_selected_frame - table_hseparation -> table_h_separation - table_vseparation -> table_v_separation - vseparation -> v_separation
2022-04-22Implement Label3D node.bruvzg
Add "generate_mipmap" font import option. Add some missing features to the Sprite3D. Move BiDi override code from Control to TextServer. Add functions to access TextServer font cache textures. Add MSDF related flags and shader to the standard material. Change standard material cache to use HashMap instead of Vector.
2022-04-13Fix select_all() crash in RichTextLabelConteZero
2022-04-12Add context menu to RichTextLabelConteZero
2022-04-10Add select_all() to RichTextLabelConteZero
2022-04-06Fix some issues found by cppcheck.bruvzg
2022-04-06[RTL] Improve table cell selection.bruvzg
2022-04-04Add deselect() to RichTextLabelConteZero
2022-03-31Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git. Fix a couple incorrect uses of gendered pronouns.
2022-03-18Merge pull request #58394 from bruvzg/rtl_hintRémi Verschelde
2022-03-13Fix RichTextLabel shadow color when text has transparencyHaoyu Qiu
2022-03-08Add support to align to left to bbcodeCésar Izurieta
2022-03-04Add optional constructor arguments to more Control nodesHugo Locurcio
This can be used to make editor code more compact. However, as of writing, these constructor arguments cannot be used from the scripting API. This was already provided for Label and CheckBox, but it was missing for other Control nodes where it made sense to provide a default value.
2022-02-21Add RichTextLabel "hint" tag.bruvzg
2022-02-16Merge pull request #58055 from markdibarry/add_get_line_offsetRémi Verschelde
2022-02-16Merge pull request #58154 from markdibarry/fix_scroll_to_lineRémi Verschelde
2022-02-15Fix scroll_to_line ignoring line separationmarkdibarry
2022-02-15Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde
2022-02-14Merge pull request #57988 from markdibarry/add_get_last_visible_character_lineRé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