Hugo Locurcio
8d05f89bc1
Make the caret thicker in TextEdit and scale it with the editor scale
...
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%.
2018-07-26 23:43:43 +02:00
Paulb23
8f390da422
Center text drawing in LineEdit
2018-07-01 15:46:33 +01:00
Juan Linietsky
0a1c1c660f
-Added AnimationGraphPlayer (still missing features)
...
-Added ability to edit resources from built-in inspector (wip, needs testing and feedback)
2018-06-18 22:12:08 -03:00
Saracen
9d0bdf69c4
LineEdit IME position will now ignore placeholder text.
2018-06-13 16:42:36 +01:00
Saracen
c5bdb5b1d8
IME context detection.
2018-06-11 17:22:11 +01:00
Anish
5d3108acbb
Ensures CMD+left and CMD+right only valid for OSX.
...
Fix in #18370 is now only valid for OSX and is reverted for other OS.
Fixes #19042
2018-05-24 15:04:22 +05:30
Ibrahn Sahir
2abec59db9
fix for TextEdit::set_text firing signals it shouldn't.
...
Removing some _changed signals in set_ functions.
Includes revert of commit 384625aa31
2018-05-19 19:38:13 +01:00
Ruslan Mustakov
5cd12f6649
Perfect FreeType-based outlines for DynamicFonts
...
- 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 .
2018-05-08 13:45:24 +07:00
Rémi Verschelde
b774156729
Merge pull request #18514 from neikeq/api-hash-fixes
...
API hash fixes
2018-05-03 14:36:32 +02:00
robfram
c17de1f70f
Fix placeholders position in LineEdit
when editing inside the Editor
...
Editing the `Text` property through the editor causes a wrong
placement of the placeholder, as it calls `LineEdit::clear_internal`,
which was wrongly reseting the cached placeholder width.
Fix #18184 .
2018-05-02 21:15:46 +02:00
Max Hilbrunner
613a8bee41
Merge pull request #18370 from KidRigger/master
...
Adds support for CMD+Left and CMD+Right on MacOS
2018-04-30 19:02:20 +02:00
Max Hilbrunner
f1bbb59653
Merge pull request #18489 from Calinou/tweak-property-hint-ranges
...
Tweak the property hint ranges of caret blink and line length guideline
2018-04-30 18:19:09 +02:00
Hugo Locurcio
c118a0ee5e
Make the LineEdit "secret" character customizable
2018-04-30 02:25:17 +02:00
Ignacio Etcheverry
7034d48032
Fix binding some core API methods only in tools builds
2018-04-29 19:49:26 +02:00
Hugo Locurcio
0eb2f6c223
Tweak the property hint ranges of caret blink and line length guideline
...
This allows for more precise adjustments.
2018-04-28 19:13:30 +02:00
Anish
a126876cc8
Adds support for CMD+Left and CMD+Right on MacOS
...
CMD+Left and CMD+Right are hotkeys used on MacOS for
moving cursor to start and end of the text, respectively.
They are now supported, alongside ALT+key.
Fixes : #17631
2018-04-23 16:09:20 +05:30
sersoong
a1cfc89108
Fixed context menu TTR bugs
2018-04-19 15:31:38 +08:00
robfram
53b51f68bf
LineEdit placeholder alignment, content margins, and overflow bugs
...
LineEdit doesn't correctly uses style margins nor use placeholders
width correctly, causing multiple rendering bugs.
2018-04-09 23:57:23 +02:00
Fabio Alessandrelli
e15fe296bd
Line edit up/down focus pass through
...
When line edit receive a up/down and the cursor is at beginning/end it
will not set the input as handled
2018-02-23 13:01:28 +01:00
Federico Frenguelli
9cd3ed4ace
Fixed #15082 : line edit emits two "text_changed" signals when pasting while text is selected
2018-02-05 16:22:34 +01:00
Bojidar Marinov
9b8e8b2220
Bind many more properties to scripts
...
Notable potentially breaking changes:
- PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL
- Some properties were renamed, and sometimes even shadowed by new ones
- New getter methods (some virtual) were added
2018-01-12 00:58:14 +02:00
Rémi Verschelde
4b6bef6524
Fix signal arguments shadowing member variables
...
Fixes #10212 .
2018-01-09 16:51:19 +01:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Rémi Verschelde
fd5f193da5
Merge pull request #15103 from poke1024/lineedit-key-up-down
...
Support KEY_UP and KEY_DOWN in LineEdit
2018-01-03 11:32:31 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Bernhard Liebl
414c60aee7
Support KEY_UP and KEY_DOWN in LineEdit
2017-12-27 17:04:07 +01:00
Michael Alexsander Silva Dias
95f93e038a
Exposed LineEdit's "selection_clear" and renamed it to "deselect".
2017-12-17 15:40:44 -02:00
TheAspiringHacker
de03966a65
Check for icon in LineEdit::set_cursor_position
...
Fixes #14340
2017-12-06 19:13:34 -05:00
kbake
a5973f4071
change expand_to_len property to add on nonzero...also rename to
...
expand_to_text_length and shift window on expand to see all text
2017-11-18 18:57:48 -05:00
Ian
fc299b4f37
add context menu enable getters, setters, and properties in LineEdit and TextEdit
2017-11-11 03:30:59 -05:00
Rémi Verschelde
5bbc9a7e66
Merge pull request #12268 from AlexHolly/fix-lineedit-selection
...
Fix LineEdit drag selection to the left
2017-10-30 23:31:37 +01:00
Paulb23
9dddce75d0
Added multi level undo redo to line edit
2017-10-29 23:21:06 +00:00
AlexHolly
d46093b974
fix LineEdit drag selection to the left
2017-10-20 22:25:12 +02:00
balint magyar
b6b2ec7b77
Fixed center align in LineEdit
2017-10-01 20:11:46 +02:00
volzhs
c5f0717053
Fix crash when scene has LineEdit and run from editor
2017-09-26 16:19:02 +09:00
Paulb23
8b80e97338
Fixed caret blink and speed resetting in scenes, issue 10764
2017-09-24 17:22:47 +01:00
letheed
5ad9be4c24
Rename pos to position in user facing methods and variables
...
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:
* pos -> position
* rot -> rotation
* loc -> location
C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Daniel J. Ramirez
e298f931a6
Fixed some metrics (some issues caused by the new Noto Sans font).
...
plus other minor fixes
2017-09-03 01:49:31 -05:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Juan Linietsky
2cc8309249
Merge pull request #10351 from neikeq/enums-are-for-the-weak
...
ClassDB: Provide the enum name of integer constants
2017-08-21 19:56:08 -03:00
Ignacio Etcheverry
32dd9a9f66
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00
Juan Linietsky
541fdffc0a
Merge pull request #10319 from neikeq/pr-engine-editor-hint
...
Adds Engine::is_editor_hint() method
2017-08-20 12:55:46 -03:00
Ignacio Etcheverry
90b8a5b71e
Removes editor_hint from SceneTree
2017-08-19 01:29:45 +02:00
Rémi Verschelde
18a7315381
Rename localization method to tr
again
...
Partial revert of #10380 based on contributor ~~bullying~~ feedback.
2017-08-18 22:38:38 +02:00
Rémi Verschelde
c72529baf0
Rename XL_MESSAGE
aka tr
to localize
...
Also renames `set_message_translation` to `set_message_localization`
for consistency.
2017-08-17 18:10:22 +02:00
Rémi Verschelde
5cb09d31d8
Merge pull request #10142 from bruvzg/3.0-osx-ime
...
Add IME support (macOS)
2017-08-11 10:35:10 +02:00
Ignacio Etcheverry
2f290038d6
Removes type information from method binds
2017-08-10 07:17:50 +02:00
bruvzg
8aa86cb9bc
Implement NSTextInputClient protocol for IME
2017-08-09 19:09:33 +03:00
Bojidar Marinov
7b7c7c8dc0
Rename KEY_RETURN to KEY_ENTER and KEY_ENTER to KEY_KP_ENTER
...
Closes #7695
2017-08-06 16:26:07 +03:00
Daniel J. Ramirez
95f55c8f0d
Icons can now be added inside line edits (Search icon).
...
Fixed window title bar margins.
fixed compilation error
2017-07-19 13:23:16 -05:00