summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
AgeCommit message (Collapse)Author
2021-05-05Fixed issues with Editor Log after recent changesEric M
Fixed #48446, Fixed #48443
2021-05-04Merge pull request #47855 from aaronfranke/doubleclickRémi Verschelde
Rename `doubleclick` to `double_click`
2021-05-04Rename `doubleclick` to `double_click`Aaron Franke
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-04-05Fix crashes in *_input functionsRafał Mikrut
2021-03-30RichTextLabel: On custom effect change, parse bbcode only if it's enabled ↵bruvzg
and not empty.
2021-03-29Use extra font spacing in the RichTextLabel line height calculation, and ↵bruvzg
stylebox size in the minimum size calculation.
2021-03-23Rename ButtonList enum and members to MouseButtonAaron Franke
2021-03-16Fix BBCode tables overlap with bottom textjmb462
New row height was added only if all the column was full.
2021-03-14Fix RTL BBCode range regression and selection issues.bruvzg
2021-03-03Hide more options of disabled propertiesMichael Alexsander
2021-02-24Fixed 'nonexistent action' errors spammed at startup on OSXEric M
2021-02-18Removed hardcoded shortcuts from /scene and converted to input actionsEric M
This removes hardcoded actions from things like LineEdit and TextEdit. Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
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-14RichTextLabel::add_image Fail if passed image has no areakleonc
2021-02-14[CTL] Fix RichTextLabel cell horizontal padding.bruvzg
2021-02-14[CTL] Add missing font outline drawing routines and theme constants.bruvzg
2021-02-12Use get_char_size(' ') to calculate space width.bruvzg
2021-02-10Removed _change_notifyreduz
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
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-15Merge pull request #44870 from ↵Rémi Verschelde
alexpech12/fix-rich-text-label-set-visible-characters Keep RichTextLabel visible character properties in sync
2021-01-14Keep RichTextLabel visible character properties in syncAlexander Pech
The RichTextLabel class is inconsistent in how it updates the visible_characters and percent_visible properties when either is changed. To keep both properties consistent, update percent_visible when setting the visible_characters property. For both properties, when setting one, notify change for the other. Docs updated for member set_visible_characters on RichTextLabel class.
2021-01-08RichTextLabel: Fix build after #35505Rémi Verschelde
Should have rebased before merging.
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-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-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-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