bruvzg
b5c96df277
Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the TextServer.
2022-06-16 16:49:37 +03:00
bruvzg
ba6cb84d01
[RTL] Fix underline/overline/strikethrough interaction with the "visible characters" property.
2022-06-13 10:53:55 +03:00
FireForge
4678736a39
Add suffixes to all nodes and resources
2022-06-11 09:41:05 -05:00
bruvzg
fc77f983cb
[RTL] Stop processing thread before deleting scroll bar.
2022-06-06 23:46:22 +03:00
Rémi Verschelde
52952edafc
Merge pull request #61724 from iwek7/fixing_rich_text_label
...
Fix richTextLabel scroll showing
2022-06-06 10:39:39 +02:00
iwek
c179ba665a
Fix richTextLabel scroll showing
2022-06-05 20:33:17 +02:00
Rindbee
a14f7c4027
Fix strange behavior with list close tags and empty list tags
...
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-06-05 01:33:09 +08:00
Rémi Verschelde
136da4d3bc
Merge pull request #61182 from danielkariv/fix_misclick_selection
2022-05-20 15:38:22 +02:00
Daniel Kariv
e6c909b489
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).
2022-05-19 11:55:14 +03:00
bruvzg
cfcdfc38e2
[RTL] Add support for shaping in background thread.
2022-05-19 09:34:44 +03:00
reduz
746dddc067
Replace most uses of Map by HashMap
...
* 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-05-16 10:37:48 +02:00
Rémi Verschelde
02bb8e948f
Merge pull request #60261 from fire-forge/theme-prop-renames
2022-04-25 16:20:19 +02:00
FireForge
3073b85de9
Rename theme properties to include underscores
...
- 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-23 11:16:18 -05:00
bruvzg
be611c1c05
Implement Label3D node.
...
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-22 12:08:46 +03:00
ConteZero
6530e55f2d
Fix select_all() crash in RichTextLabel
2022-04-13 15:41:34 +02:00
ConteZero
645aded7e9
Add context menu to RichTextLabel
2022-04-12 16:28:38 +02:00
ConteZero
addadaaa24
Add select_all() to RichTextLabel
2022-04-10 18:03:10 +02:00
bruvzg
f851c4aa33
Fix some issues found by cppcheck.
2022-04-06 14:34:37 +03:00
bruvzg
9c61fa7ad8
[RTL] Improve table cell selection.
2022-04-06 09:03:08 +03:00
ConteZero
45159e88e1
Add deselect() to RichTextLabel
2022-04-04 16:06:57 +02:00
Rémi Verschelde
a647fb3e62
Fix typos with codespell
...
Using codespell 2.2-dev from current git.
Fix a couple incorrect uses of gendered pronouns.
2022-03-31 14:07:29 +02:00
Rémi Verschelde
19950076b1
Merge pull request #58394 from bruvzg/rtl_hint
2022-03-18 14:49:13 +01:00
Haoyu Qiu
d62e8bbc74
Fix RichTextLabel shadow color when text has transparency
2022-03-13 19:57:56 +08:00
César Izurieta
42f1697857
Add support to align to left to bbcode
2022-03-08 01:36:19 -05:00
Hugo Locurcio
a06f82ca4d
Add optional constructor arguments to more Control nodes
...
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-03-04 09:48:41 +01:00
bruvzg
7385c3602d
Add RichTextLabel "hint" tag.
2022-02-21 19:34:16 +02:00
Rémi Verschelde
eeda603355
Merge pull request #58055 from markdibarry/add_get_line_offset
2022-02-16 14:07:23 +01:00
Rémi Verschelde
fe8f4cebce
Merge pull request #58154 from markdibarry/fix_scroll_to_line
2022-02-16 14:07:06 +01:00
markdibarry
4d53c086ff
Fix scroll_to_line ignoring line separation
2022-02-15 12:52:11 -05:00
Rémi Verschelde
0f5455230c
Use `switch` consistently in `_notification` (`scene` folder)
2022-02-15 18:44:55 +01:00
Rémi Verschelde
89996be091
Merge pull request #57988 from markdibarry/add_get_last_visible_character_line
2022-02-14 15:22:03 +01:00
markdibarry
c0caafe960
Add offset methods for lines and paragraphs in RichTextLabel
...
Adds `get_line_offset` and `get_paragraph_offset` methods to `RichTextLabel`
Fix arg mismatch
2022-02-13 13:15:21 -05:00
markdibarry
ae7eec53c0
Add get_character_line method for RichTextLabel
...
Adds the ability to get the line number of provided character position
Fix arg name
Add get_character_paragraph
Replaced glyph logic with code suggestions, added get_character_paragraph method
Run doctool
Use built-in method
Replace TS access with built in method
2022-02-13 11:12:12 -05:00
bruvzg
d7f6a4853a
[RTL] Fix "img" tag not setting image size.
2022-02-12 11:48:56 +02:00
bruvzg
2e01a0d7a3
[RTL / Label] Reorganize property order to ensure "visible_characters" / "percent_visible" are set after the "text".
2022-02-11 12:31:13 +02:00
Rémi Verschelde
9abf5f01fd
Merge pull request #55207 from ConteZero/rich_text_label_drag
2022-02-10 22:14:08 +01:00
ConteZero
cb222f6c9d
Add drag to RichTextLabel
2022-02-10 20:24:28 +01:00
markdibarry
29c21ac590
Add get_content_width method
...
Adds a get_content_width method to RichTextLabel
2022-02-10 10:56:11 -05:00
bruvzg
ead6f67670
Add auto-wrap mode property to the RichTextLabel, set default auto-wrap mode to AUTOWRAP_WORD_SMART to match 3.x behavior.
2022-02-03 16:04:07 +02:00
bruvzg
215bede6ff
[TextServer] Add function to change font, font size, and OpenType features without invalidating line break points, justification points, or recreating shaped text buffer.
2022-02-02 11:20:44 +02:00
Rémi Verschelde
38c6611b91
Merge pull request #57344 from bruvzg/rtl_fix_tab_offset
2022-01-28 14:04:33 +01:00
bruvzg
a2f5f7cccf
Fix RTL table offset, if indent is set.
2022-01-28 12:27:47 +02:00
bruvzg
978f2edeea
[RTL] Fix calculation of the last line height.
2022-01-28 10:13:23 +02:00
bruvzg
0014f0233a
[RTL] Fix min. height calculation when fit_content_height is enabled.
2022-01-27 12:05:21 +02:00
bruvzg
cf3d3a6ffa
Fix RichTextLabel [ol type=1] tag closing.
2022-01-26 13:52:24 +02:00
bruvzg
268bab077f
[RTL] Fix missing line separation in the paragraph offset and click calculation.
2022-01-23 19:09:14 +02:00
Rémi Verschelde
82efb1d262
Merge pull request #53923 from KoBeWi/RichBugLabel
2022-01-19 15:23:13 +01:00
kobewi
42c79161c2
Fix bottom line in editor log
2022-01-19 14:26:31 +01:00
Yuri Sizov
3f5ed098bb
Fix RichTextLabel tables shrinking expanded columns when there is not enough space
2022-01-19 00:44:19 +03:00
Yuri Sizov
3b1c02a139
Fix RichTextLabel not respecting line separation in several cases
2022-01-18 23:01:01 +03:00