Commit Graph

225 Commits

Author SHA1 Message Date
1426cd3b3a One Copyright Update to rule them all
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".

Backported from #70885.
2023-01-10 15:26:54 +01:00
0a386084bc Fix RichTextLabel discards appended BBCode text on window resize when using DynamicFont 2023-01-09 09:07:48 +01:00
bfce0c1e52 Merge pull request #59765 from pfertyk/issue-59359-wrong-visible-line-count-if-newline
Fix wrong visible line count for newline
2022-12-12 13:40:14 +01:00
ffbaa7fff0 Enhance null checking for input event 2022-11-27 15:01:34 +07:00
a0ad958582 Hide text of RichTextLabel if BBCode is enabled 2022-10-11 15:21:19 +02:00
64a107508a [3.x] Improve RTL table fill. 2022-06-13 09:57:35 +03:00
f5fa1ca944 Add readable export errors. Add RTL image vertical alignment support. 2022-06-08 17:56:28 +03:00
47ead8504a add check for selection when try to push a meta.
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).

(cherry picked from commit e6c909b489)
2022-05-22 19:26:45 +02:00
ff381f6e84 Fixed implementation of RTL remove_line()
Co-authored-by: Eric M <itsjusteza@gmail.com>
2022-04-29 10:59:31 +03:00
820728aa52 [3.x] Expose get_selected_text in RichTextLabel 2022-04-05 22:38:10 +02:00
5e714051ea [3.x] Add deselect() to RichTextLabel 2022-04-04 22:46:13 +02:00
32cdf9fad2 Fix get_visible_line_count in RichTextLabel with newlines
Fixed #59359.
2022-03-31 22:28:40 +02:00
72837b8ecd Fix RichTextLabel underlining does not respect visible character 2022-03-16 17:54:07 +08:00
c0bd05762e Revert "Fixed underlines and striketrough not respecting visible character"
This reverts commit 8bbcc624fd.
2022-03-16 17:40:14 +08:00
fd968157a4 Revert "Fixed 0 width issue of rich text label"
This reverts commit a1155b86e4.
2022-03-16 17:40:09 +08:00
2ff0735329 Added primary clipboard for Linux 2022-03-14 15:28:36 +01:00
0ffacff998 [3.x] Add option to make selection unique 2022-03-14 09:48:09 +01:00
08c3e00b95 Merge pull request #55355 from ConteZero/drag_and_drop_3.x 2022-03-14 08:43:22 +01:00
4167e98088 Add drag and drop to TextEdit, LineEdit, RichTextLabel 2022-03-14 08:15:25 +01:00
7d219b6793 Fix RichTextLabel shadow color when text has transparency 2022-03-12 11:02:27 +08:00
a1155b86e4 Fixed 0 width issue of rich text label
Fixes #37746

(cherry picked from commit 5e64c146bc)
2022-03-02 11:00:26 +01:00
8bbcc624fd Fixed underlines and striketrough not respecting visible character
(cherry picked from commit 9c2c2ab2b0)
2022-03-02 11:00:26 +01:00
f8f83f05f2 Fix RichTextLabel uninitialized content height value. 2022-01-20 13:53:52 +02:00
a627cdafc5 Update copyright statements to 2022
Happy new year to the wonderful Godot community!
2022-01-13 15:54:13 +01:00
458f65171c Add BBCode escape sequences
(cherry picked from commit 884f1acff8)
2022-01-12 17:40:15 +01:00
57cceb47d1 Fix memory leak in RichTextLabel.remove_line
(cherry picked from commit f21b5e4d2f)
2022-01-12 17:32:19 +01:00
09397f10c5 Fix BBCode underline prevents strikethrough from rendering 2022-01-11 12:53:51 +08:00
89574a8258 Merge pull request #54296 from timothyqiu/rtl-fill-underline
[3.x] Fix `RichTextLabel` underline appearance when inside fill tag
2022-01-07 09:20:44 +01:00
df38da84b4 Merge pull request #55440 from bruvzg/fix_cell_width 2021-11-29 15:04:22 +01:00
33b26e5cdc Fix RTL min/max line width calculation. 2021-11-29 15:36:42 +02:00
820f7c9d15 Fix right alignment in RichTextLabel 2021-11-29 14:33:12 +01:00
6f4858f184 Modules: Make sure to include modules_enabled.gen.h where needed
Fixes #51677.

Co-authored-by: Arkadiusz Marcin Kołek <aksoftware91@gmail.com>
2021-11-12 13:45:33 +01:00
42d385b312 clang-format: Disable alignment of operands, too unreliable
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-28 13:23:38 +02:00
23c64fc43c Fix RichTextLabel underline appearance when inside fill tag 2021-10-27 21:04:20 +08:00
5366743454 Fix RichTextLabel meta link detection when used inside a fill tag 2021-10-22 16:20:56 +08:00
7e6e6c871b Make RichTextLabel honor content margin when drawing font shadow 2021-10-21 11:30:45 +08:00
37ef6036d0 Add missing cache clear in RichTextLabel::_process_line 2021-10-20 23:46:57 +08:00
903765f94d Fix RichTextLabel character horizontal offset calculation 2021-09-16 21:44:17 +02:00
930a1ea746 Make RichTextLabel honour default cursor shape property
(cherry picked from commit d12cceadd2)
2021-09-14 13:41:26 +02:00
4874270592 Removed unused variable 2021-08-22 15:58:45 +05:30
9b06355488 Update scene/gui/rich_text_label.cpp
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2021-08-22 15:18:52 +05:30
b8bf2ec3cd fixed crash with RichTextLabel [fill] tag #51968 by using 3.3 as reference 2021-08-22 14:17:01 +05:30
1de8f31448 CI: Upgrade Emscripten to 2.0.25
That's the version used by current containers for Godot 3.4.

Fixes a couple stray warnings that new Emscripten/LLVM catches.
2021-08-18 11:13:34 +02:00
875045adde Use modules_enabled.gen.h to improve inter dependency checks
- Fix build with gdscript module disabled. Fixes #31011.
- Remove unused `gdscript` compile option.
- Fix build with regex module disabled.
- Fix ImageLoaderSVG to forward declare thirdparty structs.

(cherry picked from commit f3726ee994)
2021-07-14 23:36:38 +02:00
d84d5a9665 Merge pull request #49332 from megalobyte/doc-prev-search
[3.x] Fix previous search for built-in-docs
2021-06-09 11:11:15 +02:00
7408b33895 Fix previous search for built-in-docs 2021-06-08 23:11:42 -07:00
3a591aaeeb Fix RichTextLabel auto-wrapping on CJK 2021-06-08 21:04:20 +08:00
1b7c2a1428 Fix not updating fonts when parent theme changes
Reparsing the bbcode content when we receieve a theme changed
notification just like we already do in ENTER_TREE.

Resolves #49089
2021-05-28 20:44:00 +02:00
0e7c2ea331 Attempt to fix rich text label effects processing even when
the node is invisible.

ISSUE:47687
(cherry picked from commit c4f976b38b)
2021-05-14 10:17:17 +02:00
140350d767 Style: Enforce braces around if blocks and loops
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2021-05-05 15:02:01 +02:00