1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00
Commit Graph

217 Commits

Author SHA1 Message Date
Pāvels Nadtočajevs
0d19e18b00 [RTL] Use separate paragraph copy for the partially visible paragraphs. 2025-11-05 17:51:22 +02:00
Robob27
82ddbe7878 Fix scrollbar render with RTL scroll following visible 2025-10-27 06:37:18 -04: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
Koyper
faf1ab126d Fix RichTextLabel bullet list font issues 2025-10-07 09:52:34 -05: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
Aaron Franke
1a7be001d2 Use const Array ref in set_structured_text_bidi_override_options 2025-09-26 14:31:38 -07:00
aaronp64
f0eddb8e6f Fix issues searching RichTextLabel when search result is in a table
Fixes for cases where search results would be skipped or repeatedly found involving tables in RichTextLabel:
- If previous result was found in last cell of table, earlier cells would be skipped, since the end of the table was reached.  Updated to not skip earlier cells when searching in reverse.
- When choosing next line to continue from after searching table, the inner line number within the table's cell was added, causing the search to jump forward if not on line 0 in the cell.  This could cause lines to get skipped when searching forward, or searching the table again when searching in reverse.  Updated to continue from the immediate next line before/after the table.
- If a table cell has multiple lines, repeated searching would only include the line where the previous result was found, then jump to the next cell.  Updated to search remaining lines in the same cell first.
2025-08-08 15:28:53 -04:00
Thaddeus Crews
d36f394714 Merge pull request #108399 from bruvzg/rtl_vflscr
[RTL] Add option to scroll follow visible characters.
2025-07-10 11:39:31 -05:00
Pāvels Nadtočajevs
45a564f4f8 [RTL] Add option to scroll follow visible characters. 2025-07-10 17:30:09 +03:00
Pāvels Nadtočajevs
406a22d0da [RTL] Add method to get visible content bounding box. 2025-07-10 15:49:35 +03:00
Rémi Verschelde
95e72a36f3 Merge pull request #107347 from bruvzg/hr_hr_hr
[RTL] Decouple image width/height "in percent" properties. Add [hr] tag support.
2025-06-13 01:30:47 +02:00
Pāvels Nadtočajevs
a262747cdf [RTL] Decouple image width/height "in percent" properties. Add [hr] tag support. 2025-06-10 12:22:02 +03:00
Pāvels Nadtočajevs
1e2fc9bcad [RTL] Add paragraph separation theme property. 2025-06-10 12:13:48 +03:00
AndrewYuan34
4774b57e4d Add auto-scroll behavior when selecting text outside the visible area in RichTextLabel 2025-06-07 11:28:54 -04:00
Pāvels Nadtočajevs
332352d37f [RTL] Add options to override underline color and default alpha. 2025-06-05 12:39:25 +03:00
Lukas Tenbrink
ea6fbd6687 Use OkHSV for rainbow labels. 2025-05-22 22:53:32 +02:00
Danil Alexeev
decf5bf865 GUI: Copy all text in RichTextLabel if nothing is selected 2025-05-14 19:31:57 +03:00
ExEago
4115b813fe Add two methods to compute the height and width of an individual line in a RichTextLabel 2025-04-21 10:25:47 +02:00
Pāvels Nadtočajevs
1ddd503213 [RTL] Track external changes in the custom fonts set by BBCode / push_*. 2025-04-11 00:10:45 +03:00
Pāvels Nadtočajevs
b106dfd4f9 Base accessibility API. 2025-04-08 20:14:28 +03:00
Thaddeus Crews
8f6bb119f4 Merge pull request #100602 from KoBeWi/over_100_changes_in_50_random_files_aka_the_best_kind_of_PR
Add templated version of `ObjectDB::get_instance()`
2025-03-31 12:03:47 -05:00
Rémi Verschelde
1a367f3a68 Merge pull request #104685 from bruvzg/rtl_vpad
[RTL] Improve vertical padding.
2025-03-28 17:30:44 +01:00
kobewi
bc9d0c7835 Add templated version of ObjectDB::get_instance() 2025-03-27 15:43:23 +01:00
Pāvels Nadtočajevs
a2919f8127 [RTL] Improve vertical padding. 2025-03-27 08:51:21 +02:00
Pāvels Nadtočajevs
42edbcd748 [RTL] Fix size/alignment of tables with padded cells. 2025-03-26 20:50:59 +02:00
Pāvels Nadtočajevs
2bbf0f2317 Add properties to configure space trimming on line break. 2025-03-16 16:15:37 +02:00
Pāvels Nadtočajevs
9f8d8b7c4e [RTL] Fix custom effects not updating. 2025-03-14 16:35:35 +02:00
Thaddeus Crews
324512e11c Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
Pāvels Nadtočajevs
7397e33cc9 Fix text shadow outline draw batching. 2025-03-02 19:28:48 +02:00
Pāvels Nadtočajevs
b983b9d9f4 [RTL] Add cell option to control if cell is shrinked to its contents width. 2025-01-13 21:44:06 +02:00
HolonProduction
617e3456fd Allow dragging selection when selecting whole words in RichTextLabel 2025-01-13 09:56:09 +01:00
Rémi Verschelde
c1f65b429d Merge pull request #100329 from eviltrout/add-custom-line-offset
Add `get_selection_line_offset` to `RichTextLabel`
2025-01-06 22:47:33 +01:00
Rémi Verschelde
8a743f23e6 Merge pull request #98385 from RandomShaper/thread_yield
Rationalize busy waits
2024-12-20 23:56:39 +01:00
havi05
b905014128 Fix RichTextLabel bbcode rainbow play reversed and paused 2024-12-16 23:52:26 +01:00
Thaddeus Crews
4d4c229a83 Merge pull request #100432 from markdibarry/add_get_line_range_rtl
Add `get_line_range()` to `RichTextLabel`
2024-12-16 12:09:54 -06:00
Mark DiBarry
53a1be61a1 Add get_line_range to RTL 2024-12-15 19:09:42 -05:00
Danil Alexeev
80d11500b5 Code Editor: Add documentation tooltips 2024-12-15 10:51:33 +03:00
Pedro J. Estébanez
4f8dd96b3d Rationalize busy waits 2024-12-13 10:14:26 +01:00
Robin Ward
b3e970dde8 Adds get_selection_line_offset to RichTextLabel
This new method allow you to get the line offset of the current
selection (returns -1 if nothing is selected.)

This is useful if you want to pop up a control or menu above the
currently selected text. Previously there was no accurate way to get
this information.

The logic is moved from the implementation of `scroll_to_selection`
verbatim, and that method has been adjusted to avoid repetition.
2024-12-12 16:02:21 -05:00
bruvzg
121e640637 [RTL] Fix indent in tables and tables in indent. 2024-12-03 23:30:08 +02:00
bruvzg
4b23e504e8 [RTL] Keep tag stack between append_text calls. 2024-12-02 18:45:03 +02:00
Pāvels Nadtočajevs
dc71fbacc5 [RTL] Add tooltip support to meta/url tag. 2024-12-02 15:26:14 +02:00
Rémi Verschelde
5d74c5370b Merge pull request #97963 from bruvzg/rtl_valign
[RTL] Add support for vertical alignment.
2024-11-29 22:46:14 +01:00
Michael Alexsander
250de088e3 Fix RichTextLabel's modified stack being wiped on translation changes 2024-11-22 16:09:26 -03:00
bruvzg
7ed90a4f07 [RTL] Add support for vertical alignment. 2024-10-08 09:58:54 +03:00
bruvzg
b59fd28dec [RTL] Improve BBCode parsing. 2024-09-06 13:50:47 +03:00
bruvzg
94ad663c0f [RTL] Expose missing default properties, ensure bbcode is reparserd when these are changed. 2024-08-28 08:43:30 +03:00
Micky
edb3d99942 Add RichTextLabel is_finished(), deprecate is_ready() 2024-08-16 20:08:38 +02:00
bruvzg
fff71db5b1 [RTL] Fix list item prefix width not taken into account. 2024-06-10 13:14:56 +03:00
aaronp64
6ecccd6085 Fix RichTextLabel table overlapping with next line
When calculating table height, RichTextLabel::_shape_line would increase the height when it reached the end of a complete row, or the final cell of the table.  RichTextLabel::_resize_line would only increase the height at the end of a complete row, causing the height to ignore the final row if not all cells were populated.  This would cause the final row to overlap with the following line in the RichTextLabel if it was the last visible line in the RichTextLabel, as _resize_line is called when updating scrolling properties.

This change moves the common table size calculations to a separate function to reuse the code between _shape_line and _resize_line, keeping the final cell check that was used in _shape_line.

Fixes #92603
2024-05-31 16:21:17 -04:00