d4433ae6d3
Remove Signal connect binds
...
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind().
Changed all uses of it to Callable.bind()
2022-07-29 16:26:13 +02:00
36ef8f29dc
Implement support for loading system fonts on Linux, macOS / iOS and Windows.
2022-07-26 08:38:05 +03:00
f4a7450216
Fix too thin underline in brace match
2022-07-10 18:23:03 +02:00
344ba0ffaf
Refactor Font configuration and import UI, and Font resources.
2022-07-06 14:12:36 +03:00
41f6e7c50e
Allow to disable TextEdit vertical scroll
2022-07-04 15:02:15 +02:00
5d56efcaa4
Add an option to drag'n'drop selected text in TextEdit
2022-06-26 15:22:02 +02:00
4678736a39
Add suffixes to all nodes and resources
2022-06-11 09:41:05 -05:00
848e759d88
Remove redundant min call when setting line
2022-06-02 15:52:09 +02:00
9923851370
Fix typos with codespell
...
Using codespell 2.2-dev from current git.
2022-05-23 21:32:19 +02:00
c0d189fbb8
Merge pull request #60955 from pfertyk/issue-60668-fix-get-breakpointed-lines-crash
...
Fix `get_breakpointed_lines` crashing Godot
2022-05-18 22:55:30 +02:00
3d5dd91f22
Fix get_breakpointed_lines crashing Godot
...
Fixes #60668 .
2022-05-16 18:46:01 +02:00
081b6b8053
Add ALT NUM+ {hex code} character input support for LineEdit, TextEdit and CodeEdit.
2022-05-13 09:33:24 +03:00
d1aed90976
Fix backspace when selection reaches left edge
...
Fixes #60866 .
2022-05-09 14:16:28 +02:00
8c2b9801fd
Merge pull request #60438 from Paulb23/text-edit-tests
...
Add TextEdit unit tests and multiple fixes.
2022-04-25 23:39:30 +02:00
7f62a74927
Multiple small TextEdit Bug Fixes
...
Fixed line_drawing_cache not containing anything
Fixed is_move_caret_on_right_click_enabled requiring the context menu to be enabled
Fixed when selecting_enabled is false not disabling shift + click
Fixed when selecting_enabled is false not being able to drag the caret
Fixed _delete emitting signals when nothing had changed.
Fixed insert_line_at up causing a visual update
Fixed get_pos_at_line_column returning a valid position when it was invalid
Fixed set_caret_column unnecessary emitting "caret_changed" when the column is greater then the line
Fixed select_word_under_caret not accepting the edges of words
Fixed select_word_under_caret moving the caret to the start of the line when no word was found
Fixed get_selection_line and get_selection_column not checking if the selection was enabled
Fixed set_line_as_center_visible throwing errors if it would show line 0
Fixed set_line_as_center_visible being off by one
Fixed set_line_as_last_visible not being able to show the first line
Fixed pressing UP and the end of a wrapped line sending the caret to col 0 rather then then persevering the position.
2022-04-22 17:53:14 +01:00
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
a3d82f5afb
Fix shortcut_keys_enabled in TextEdit
2022-04-08 15:13:32 +02:00
d1207a0504
[Input] Add extra shortcut_input input processing step to process Unicode character input with Alt / Ctrl modifiers, after processing of shortcuts.
2022-04-05 13:46:45 +03:00
8cefbfcf43
Consider chained operation when selecting text in TextEdit::undo()
2022-04-05 09:12:10 +08:00
f454cea785
Merge pull request #58452 from marcgpuig/text-edit-backspace-fix
2022-04-04 23:58:33 +02:00
f22d257025
Fixed ctrl + backspace on empty lines
...
Fix <word><space><caret> scenario
Fix move left & right for lines without words
2022-04-04 01:21:16 +02:00
0d17903bd5
Fix TextEdit v_scroll_speed invalid values breaks wheel scrolling
2022-04-03 21:07:39 +02:00
4b8fa3716f
Fix "p_from_line > p_to_line" errors in text edit
...
Done via making the function more robust to different inputs
2022-03-11 01:13:45 -05:00
8845798b44
Merge pull request #58739 from Calinou/control-add-constructors
...
Add optional constructor arguments to more Control nodes
2022-03-04 11:42:53 +01:00
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
933211cb0c
Remove extra separator when TextEdit is read only and unselectable
2022-03-04 16:25:25 +08:00
816d332e51
Fix LineEdit and TextEdit carets disappearing at theme scales below 1.0
...
This fixes carets disappearing in the editor when the Editor Scale
setting is set below 100%.
2022-03-03 00:15:48 +01:00
7f5782047e
Fixed caret change signal emission
2022-02-28 19:01:44 +00:00
0f5455230c
Use switch consistently in _notification (scene folder)
2022-02-15 18:44:55 +01:00
29199579f7
Add sub-pixel glyph positioning support.
2022-02-12 19:55:52 +02:00
1bdb82c64e
Fix typos with codespell
...
Using codespell 2.2-dev from current git.
Added `misc/scripts/codespell.sh` to make it easier to run it once in a
while and update the skip and ignore lists.
2022-02-10 12:30:19 +01:00
244db37508
Cleanup and move char functions to the char_utils.h header.
2022-02-04 11:35:01 +02:00
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
1cd1df5dc3
Move placeholder color to theme item
2022-01-30 17:56:23 +00:00
e911eee21b
Fix TextEdit placeholder not checking line count
2022-01-25 17:41:05 +00:00
33960b3b87
Merge pull request #55884 from preslavnpetrov/ctrl-enter-deleting-selection-fix-master
2022-01-24 21:33:14 +01:00
6f1089af86
Fix selection being deleted and indentation not being accounted for
2022-01-23 23:14:35 +00:00
09212ba151
Add Placeholder to TextEdit
2022-01-23 20:19:36 +00:00
f43f68f605
Convert TextEdit callbacks to Callable
2022-01-19 17:26:22 +00:00
40c56ed410
Improve locale detection.
...
Use separate language, script and country lists.
Add locale selection dialog and property hint.
2022-01-18 14:30:00 +02:00
8958e1b352
Merge pull request #56720 from volokh0x/to-fix-#56274
2022-01-16 15:54:42 +01:00
034f31aa5c
Save clear action of TextEdit in history when used from context menu
2022-01-16 15:00:57 +02:00
f6792eacf5
Merge pull request #54956 from Calinou/lineedit-textedit-add-caret-width-theme-item
...
Add a theme constant to change LineEdit and TextEdit's caret width
2022-01-13 09:21:01 +01:00
b52f90e795
Merge pull request #56637 from KoBeWi/maxxxxxxcroll
...
Set max value of inactive TextEdit scrolls to 0
2022-01-10 22:15:57 +01:00
7faf02383c
Merge pull request #55225 from bruvzg/fix_ligature_cursor_and_ot_features
2022-01-10 13:32:54 +01:00
8c973f21ee
Fix glyph index for bitmap fonts.
...
Fix TextEdit glyph position rounding.
2022-01-10 08:00:27 +02:00
c89c515ccf
[TextServer] Improve ligature cursor handling.
...
Fix mid-grapheme hit test.
Fix OpenType features property handling, add default features override option.
Enable mid-grapheme cursor by default.
2022-01-09 19:03:48 +02:00
892d93759c
Set max value of inactive TextEdit scrolls to 0
2022-01-09 01:45:07 +01:00
f6443beade
Add a theme constant to change LineEdit and TextEdit's caret width
...
This can be useful to improve caret visibility, especially at
larger font sizes. This can also be used for accessibility purposes.
2022-01-07 20:51:22 +01:00
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00