Age | Commit message (Collapse) | Author |
|
Reset caret blink when Ctrl+moving the cursor
|
|
|
|
Scale underlines in the script editor with the editor scale
|
|
Shader language - Add optional float typings
|
|
There was a hardcoded exception to never reset caret blinking if Ctrl
(`command`) was pressed. This broke on Ctrl+arrows,
Ctrl+Home/End/PgUp/PgDn, Ctrl+C, Ctrl+V, Ctrl+Backspace and Ctrl+Delete.
Resetting blink only for those Ctrl operations that actually touch the
cursor somehow would clutter the code a lot, so I removed the check
entirely. That means we now also reset blinking on unrelated operations
like Ctrl+O, but that seems pretty harmless. I actually like the
additional bit of feedback even in that case (most of these will
immediately defocus the editor anyway, so you never see it).
Fixes #18100
|
|
|
|
Make the caret thicker in TextEdit and scale it with the editor scale
|
|
This makes sure the default line spacing in the script editor
is consistent with the editor scale in use.
|
|
The caret in LineEdit is still 1 pixel thick, but it will become
2 pixels thick at editor scales higher than or equal to 150%.
|
|
This commit makes operator[] on Vector const and adds a write proxy to it. From
now on writes to Vectors need to happen through the .write proxy. So for
instance:
Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;
Failing to use the .write proxy will cause a compilation error.
In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.
_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
|
|
|
|
The line number is hightlighted to indicate that the line contains only
type-safe code.
|
|
* Potential bug fix on hex (cannot be used atm)
* Added optional typing for floats, eg:
"1f" -> "1.0"
"1.f" -> "1.0"
"1.99f" -> "1.99"
"1." -> "1.0"
|
|
Fixed text drawing too high in TextEdit, issue 15688
|
|
Editor autocomplete won't insert unnecessary quotes
|
|
Fix #18026. Expose TextEdit::set_draw_breakpoint_gutter.
|
|
get_word_at_pos considers simple and double quotes
|
|
|
|
|
|
|
|
TextEdit scaled selection
|
|
Added breakpoint_gutter, is_breakpoint_gutter_enabled, set_breakpoint_gutter_enabled, get_breakpoints, remove_breakpoints.
Fixed breakpoint_toggled signal not fierd when text is edited.
Fixes #18026.
|
|
When autocompleting a string (e.g. emit_signal or connect), e.g.
emit_signal('visibility_c')
^
where "^" is the cursor, hitting <tab> would insert an unnecessary
quote, breaking the string:
emit_signal('visibility_changed'')
This commit adds a small lookahead, so the end result will be as the
user probably expected:
emit_signal('visibility_changed')
|
|
Removing some _changed signals in set_ functions.
Includes revert of commit 384625aa31a3627c25246e06c1fbc3019866765c
|
|
fixed capital A osx
|
|
|
|
Fix missing registration for new param of TextEdit::cursor_set_line.
|
|
This caused Mono glue gen to fail and other bugs to appear
(such as in Visual Script)
|
|
|
|
|
|
Fixed some warnings found with Cppcheck
|
|
|
|
|
|
sugested by reduz
|
|
Not considering a paste operation as a complex one ends up
adding an unneeded extra step when pasting over a selection.
This fixes issue #18325
|
|
When using the get_word_at_pos function in TextEdit, the function would
return a full string only if this string is surrounded by double quotes
and not by simple quotes.
With this fix, get_word_at_pos will return the full string, whether be a
string surrounded by simple or double quotes.
Fixes #17437
|
|
- Implement outlines based on FreeType Stroker API. This allows
artifact-free results, similar to what you will see in Web or any text
editing tools. Outline is a part of DynamicFont rather than Label,
because outlines have to be baked into the font's atlas. Font has a
default outline_color and a Label can specify font_outline_modulator
that will be multiplied with the Font's color to get the final result.
- draw_char now has to be called twice to fully render a text - first
with p_outline == true for each character and then with
p_outline == false for each character.
- Number of draw-calls is reduced from 5 to 2 per outlined character.
- Overall cleanup of DynamicFont code, extracted duplicated code pieces
into separate methods.
- The change is backward-compatible - Labels still have outline
properties that work exactly as they worked before.
Closes #16279.
|
|
Add additional macos shortcuts for going to start/end of line
|
|
Support of CMD+Backspace and CMD+Delete on MacOS.
|
|
This solves #17931 and makes the script editor consistent with other text editors(Sublime, Gedit, Vim) in displaying the position rather than the raw number of characters.
|
|
This allows for more precise adjustments.
|
|
Adds support for CMD+Backspace, to delete all text
before the cursor in the line and CMD+Delete to delete
all text after the cursor in line following the typical
MacOS text editing workflow
Fixes: #18059
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fix bad autocomplete of partially written node paths when using syntactic sugar notation ($)
|