Commit Graph

684 Commits

Author SHA1 Message Date
uno1982 e2e8a280c3 Fix RichTextLabel drag selection not working after double-click
Start the selection timer after a double-click so that dragging to
extend a word selection works correctly.

Regression introduced in #104715 which moved selection updates into a
timer callback (click_select_held) but did not start the timer in
the double-click handler, only in the single-click handler.

Fixes #116860.
2026-03-09 11:27:40 -05:00
Rémi Verschelde 3bfde00aac Merge pull request #116868 from ismailivanov/richtextlabel-triple-click-select
Add triple-click paragraph selection to RichTextLabel
2026-03-09 11:49:30 +01:00
Ismail Ivanov 8dabd60033 Add triple-click paragraph selection to RichTextLabel 2026-03-06 22:53:44 +01:00
Thaddeus Crews 737ae54ef6 Merge pull request #117074 from qqwobble/fix-rich-ol-alpha
Fix RichTextLabel [ol type=a] not generating the right prefix
2026-03-06 12:39:59 -06:00
qqwobble 754eb7808a Fix RichTextLabel [ol type=a] not generating the right prefix 2026-03-05 13:55:41 +01:00
Rémi Verschelde 2dd1f4ef60 Decouple node.h from scene_tree.h, minimize its other includes 2026-03-05 13:54:46 +01:00
Thaddeus Crews c646b57c27 Merge pull request #117011 from bruvzg/rtl_tab_off
[RTL] Fix character click offsets after the table.
2026-03-04 11:20:50 -06:00
Rémi Verschelde eabb9a63d4 Rename callable_method_pointer.h to callable_mp.h and include it explicitly
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.

Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01:00
Rémi Verschelde 8c0f175c94 Decouple RenderingServer from as much of the codebase as possible
Notably decouples it from:
- AccessibilityServer
- DisplayServer
- Viewport
- Window
2026-03-03 12:48:07 +01:00
Rémi Verschelde a447ac95ec Move DisplayServer enums and typedefs to DisplayServerEnums
This will allow decoupling `display_server.h` from a number of headers in the
codebase which only require those enums and not all the DisplayServer API.
2026-03-03 12:44:02 +01:00
Pāvels Nadtočajevs 70906e4feb [RTL] Fix character click offsets after the table. 2026-03-03 13:15:32 +02:00
Pāvels Nadtočajevs 1306221592 Move accessibility methods/enums from DisplayServer to the AccessibilityServer dedicated singleton. 2026-03-02 13:48:29 +02:00
Pāvels Nadtočajevs d06b6e7111 [RTL] Fix % handling in [img=WxH] tags. 2026-03-01 20:35:38 +02:00
Thaddeus Crews e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
Rémi Verschelde f5a290ac46 Move RenderingServer enums to a dedicated RenderingServerEnums (RSE) namespace
A number of headers in the codebase included `rendering_server.h` just for
some enum definitions. This means that any change to `rendering_server.h` or
one of its dependencies would trigger a massive incremental rebuild.

With this change, we decouple a number of classes from `rendering_server.h`,
greatly speeding up incremental rebuilds for that area.

On my machine, this reduces incremental compilation time after an edit of
`rendering_server.h` by 60s (from 2m57s).
2026-02-25 19:43:03 +01:00
风青山 95851a05bc Remove redundant calculation code in RichTextLabel::_get_line_max_width()
Since `_shape_line()` is called recursively, nested tables will be
calculated first, so there is no need to calculate the `max_width`
of the columns of the nested table in `_get_line_max_width()` again.
2026-02-24 09:48:16 +08:00
Thaddeus Crews 9a1a0e927b Merge pull request #116277 from Rindbee/improve-the-table-in-RichTextLabel
Improve the table in `RichTextLabel`
2026-02-23 11:59:01 -06:00
kit a98f695673 Fix rtl scrollbar when too small to show it 2026-02-18 19:24:52 -05:00
风青山 10a91ca7cd Improve the table in RichTextLabel
The table should be neat and tidy.
2026-02-18 09:10:09 +08:00
Thaddeus Crews d1397d884a Merge pull request #116157 from Rindbee/fix-copying-text-across-frames-in-RichTextLabel
Fix copying text across tables in `RichTextLabel`
2026-02-17 14:03:59 -06:00
风青山 76a2ab7fbf Fix the table is too wide when using indentation in RichTextLabel
Line indentation (offset) is not taken into account when calculating
the available width of the table.

However, when drawing a table, its offset takes into account line
indentation.
2026-02-11 20:15:08 +08:00
风青山 f9c31d3483 Fix copying text across tables in RichTextLabel
Previously, using `\r` instead of `\n` for line breaks in tables (e.g.,
in class references) could cause issues when copying text across tables.
2026-02-11 15:43:20 +08:00
Danil Alexeev 6e3dc38835 Editor: Improve appearance of built-in help 2026-02-06 11:15:59 +03:00
Lukas Tenbrink c5df0cb82b Don't right-align escaped newlines, e.g. for #define. This has previously led to long diffs in the commit history. 2026-02-04 19:31:28 +01:00
Michael Alexsander a7c77ac1f7 Fix build profile generator creating bogus profiles 2026-01-26 21:42:01 -03:00
Kni1feKillz 3f50ab6f03 Fix RichTextLabel not updating
Fix RichTextLabel not updating when changing scroll_active in the editor and in projects
2026-01-20 16:18:37 +04:00
ash taylor?! bd5ff04a63 Add line separation to paragraph separation in RTL 2025-12-17 22:25:04 +01:00
Pāvels Nadtočajevs 3eaab68485 [RTL] Fix relative index getting out of sync. 2025-12-04 10:26:14 +02:00
Thaddeus Crews a259ad354f Merge pull request #112295 from bruvzg/rtl_empty_scroll
[RTL] Do not apply scroll offset to empty RTL.
2025-11-25 09:52:23 -06:00
Haoyu Qiu 72d437c030 Move localized number formatting methods to TranslationServer
Co-Authored-By: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>
2025-11-10 15:01:22 +08:00
Thaddeus Crews 6af0c2a21c Merge pull request #110340 from bruvzg/ts_dup_r
[RTL] Use separate paragraph copy for the partially visible paragraphs.
2025-11-07 10:32:27 -06:00
Pāvels Nadtočajevs 0d19e18b00 [RTL] Use separate paragraph copy for the partially visible paragraphs. 2025-11-05 17:51:22 +02:00
Pāvels Nadtočajevs dcb40b52ac [RTL] Fix meta hover signals not emitted. 2025-11-05 12:33:45 +02:00
Pāvels Nadtočajevs ad5931ea28 [RTL] Do not apply scroll offset to empty RTL. 2025-11-01 23:22:40 +02:00
Robob27 82ddbe7878 Fix scrollbar render with RTL scroll following visible 2025-10-27 06:37:18 -04:00
Thaddeus Crews 9e96c7d9b8 Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
2025-10-16 12:48:05 -05:00
Lukas Tenbrink 33689d7beb Remove transitive mesh.h, rendering_server.h and shader.h includes from node.h. 2025-10-08 12:16:52 +02:00
Thaddeus Crews ccccb9d3cb Merge pull request #111258 from Koyper/fix_rich_text_label_bullet_list_issues
[RichTextLabel] Fix bullet list font color and formatting issues
2025-10-07 11:54:43 -05:00
Thaddeus Crews 9efb50bad7 Merge pull request #111250 from scgm0/Fix-RichTextLabel-Focus
Fix RichTextLabel Focus Box
2025-10-07 11:54:39 -05:00
Koyper faf1ab126d Fix RichTextLabel bullet list font issues 2025-10-07 09:52:34 -05:00
chocola-mint 19c47c5d99 Remove #include "scene/main/timer.h" from control.h 2025-10-05 14:41:06 +09:00
scgm0 8657d8a090 Fix RichTextLabel Focus 2025-10-04 20:52:03 +08:00
Thaddeus Crews 71a485a1af Merge pull request #104715 from Andrewyuan34/add-auto-scroll
Add auto-scroll behavior when selecting text outside the visible area in RichTextLabel
2025-10-03 12:01:05 -05:00
Thaddeus Crews 38af23a654 Merge pull request #89409 from aaronfranke/server-folders
Move server files into their subfolders
2025-10-03 12:01:00 -05:00
Thaddeus Crews 486626413b Merge pull request #110444 from bruvzg/rtl_bb_sp
[RTL] Fix `outline_size=0` and `font`/`otf` tags with invalid arguments breaking tag stack and spamming errors.
2025-10-01 13:12:39 -05:00
Aaron Franke 3d1c9fd5de Move server files into their subfolders 2025-09-30 19:39:39 -07:00
Pāvels Nadtočajevs 9a1fbff651 [RTL] Fix outline_size=0 and font/otf tags with invalid arguments breaking tag stack and spamming errors. 2025-09-27 20:42:05 +03:00
Aaron Franke 1a7be001d2 Use const Array ref in set_structured_text_bidi_override_options 2025-09-26 14:31:38 -07:00
Thaddeus Crews be421bcdd4 Merge pull request #110250 from YeldhamDev/i_just_cant_keep_focused
Hide `Control` focus when given via mouse input
2025-09-22 13:28:44 -05:00
Haoyu Qiu 172c80df67 Make text-related nodes translation domain aware
- Makes `is_layout_rtl()` translation domain aware
- Makes various text-drawing controls translation domain aware
- Makes translation preview use the project's fallback locale when disabled
2025-09-22 09:39:14 +08:00