Rikhardur Bjarni Einarsson
9bfa63496a
Added a marker in text_edit that tells which row is executing.
2019-04-23 21:51:01 +01:00
hilfazer
17166f5640
autocomplete for $" and $'
2019-04-22 12:53:24 +02:00
Rémi Verschelde
22457b907e
Merge pull request #28234 from Paulb23/connection_info_on_script
...
Display connection information in the script editor
2019-04-22 11:52:13 +02:00
Zach Young
516b80cd65
Fix completely #14835 -proper selection reset on undo
2019-04-21 17:20:58 -04:00
Paulb23
a6562cd004
Display connection information in the script editor
2019-04-20 13:13:54 +01:00
griant
eb5807984c
fix improper uncommenting behavior in TextEditor
2019-04-19 15:39:57 +08:00
Paulb23
6ea253aa77
Restore script editor state between sessions
2019-04-13 13:07:12 +01:00
Juan Linietsky
9f4b5a91c0
Reorganized connection dialog for much improved ease of use.
...
-Removed dest path field
-Added a "Source" signal
-Added an "Advanced" button to hide complexity
-Fix bug on Tree to make sure "ensure visible" works on hidden trees
-Fix bug on TextEdit to ensure signals created with script not open sill focus the right line
2019-04-11 23:23:24 -03:00
Rémi Verschelde
fc370b3feb
Fix -Wimplicit-fallthrough warnings from GCC 8
...
Adds `FALLTHROUGH` macro to specify when a fallthrough is intentional.
Can be replaced by `[[fallthrough]]` if/when we switch to C++17.
The warning is now enabled by default for GCC on `extra` warnings level
(part of GCC's `-Wextra`). It's not enabled in Clang's `-Wextra` yet,
but we could enable it manually once we switch to C++11. There's no
equivalent feature in MSVC for now.
Fixes #26135 .
2019-04-05 15:14:53 +02:00
Michael Alexsander Silva Dias
24137f423a
Make brackets only be inserted when necessary when autocompleting methods
2019-04-04 23:06:44 -03:00
Paul Trojahn
8851e16f75
Support UTF-8 in TextEdit and LineEdit navigation
...
This allows jumps over whole non ASCII words with Ctrl+Left/Right in
a LineEdit or TextEdit.
Fixes #25681
2019-03-09 20:08:40 +01:00
Vasiliy Makarov
a3d9b7d916
Check cursor line and column
...
Added a trivial check if cursor.line and cursor.column are valid.
Fix #26245
2019-03-05 18:27:37 +03:00
marxin
8d51618949
Add -Wshadow=local to warnings and fix reported issues.
...
Fixes #25316 .
2019-02-20 19:44:12 +01:00
ianb96
39f537e481
Fix word wrap cutoff and tab wrapping issue
2019-02-20 08:52:33 -05:00
qarmin
7a254b303b
Fix copy text when TextEdit is readonly
2019-02-16 07:56:24 +01:00
Paulb23
69374cd378
Fixed selection being activated when using scroll lines
2019-02-04 10:55:45 +00:00
Connall Lindsay
11f4b5efc5
Brace completion for quotation marks was introducing another quotation mark at the end of the
...
string, I think because it wasn't checking that the quotation mark didn't exist at the current
cursors position. Simple change, that fixed the issue and stood up to testing. Issue #25084
2019-01-26 17:03:11 +00:00
Michael Alexsander Silva Dias
9c69d7f339
Appease some CppCheck warns for files in the "scene" directory
2019-01-16 12:59:18 -02:00
bruvzg
55bc004a73
Update IME text only for focused input controls.
2019-01-08 22:52:56 +02:00
Timo Schwarzer
3b2e03cf0b
Fix jumping when scrolling down fast with smooth scroll enabled
...
Fixes #24773
2019-01-06 10:22:38 +01:00
Paulb23
411df08711
Fix text edit wrapping beyond control size, issue 23896
2019-01-05 16:58:54 +00:00
Rémi Verschelde
65a86ae17c
Merge pull request #24683 from SoIAS/autocompletion_menu_position_24674
...
Fixed autocompletion menu vertical position
2019-01-03 21:33:12 +01:00
Dawid Wdowiak
615ca1d59e
Fixed autocompletion menu vertical position
2019-01-03 07:11:40 +01:00
Rémi Verschelde
b16c309f82
Update copyright statements to 2019
...
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
Rémi Verschelde
e86418f7a9
Merge pull request #24566 from thomasruiz/fix/completion-box-center-text-vertically
...
Center lines vertically in completion box
2018-12-27 08:55:17 +01:00
Thomas Ruiz
d2fa0658a2
Fix caret size with font smaller than row height
2018-12-23 14:29:33 +01:00
Thomas Ruiz
7fb0853c68
Center lines vertically in completion box
2018-12-23 12:19:27 +01:00
Paulb23
f1c6947702
Fix Word wrap cache desync causing crash
2018-12-18 13:12:46 +00:00
Rémi Verschelde
2f31d31c23
Revert "Use more subtle indentation guides in the script editor"
2018-12-13 19:57:34 +01:00
Rémi Verschelde
4c41e29c8e
Merge pull request #23923 from bruvzg/ime_gdscript
...
Changes IME to make it possible to use it from gdscript/gdnative
2018-12-11 18:00:48 +01:00
Rémi Verschelde
3a312dbd32
Merge pull request #20725 from Calinou/textedit-subtle-indent-guides
...
Use more subtle indentation guides in the script editor
2018-12-09 23:10:32 +01:00
allkhor
7831cd76ab
TextEdit: added redo option to the context menu
2018-11-29 23:21:43 +06:00
Kanabenki
99ffd748f1
Add suggestions ignoring case at the end of the code autocomplete
2018-11-26 16:36:46 +01:00
allkhor
594e0261f3
TextEdit: remove selection when clear happens.
2018-11-25 23:24:49 +06:00
bruvzg
4554c682e6
Changes IME input to use notification instead of callback, exposes IME methods to gdscript/gdnative.
2018-11-23 14:07:48 +02:00
Juan Linietsky
f2e54057ae
-Moved EditorDefaultValue to ClassDB, made it core
...
-Removed one and zero hints for properties, replaced by default value
2018-11-08 11:30:59 -03:00
zhagsenkk
67ba4dc8cd
Remove no longer necessary "raise_from_completion" in TextEdit
...
This is no longer needed to fix #1257 because the code-autocomplete hint stops
at the script editor’s edge now.
And #6690 will not arise because it is just caused by "raise_from_completion".
Fixes #22504 and fixes #16064 .
2018-10-26 19:29:51 +02:00
Rémi Verschelde
1169196f04
Merge pull request #22779 from Superwaitsum/LimitSettings
...
Limit several project settings
2018-10-25 11:38:06 +02:00
Superwaitsum
e5041ad0f5
Add some limits on the Editor Settings
2018-10-24 19:46:33 -05:00
OsamaElHariri
317f7c91a2
A colon ending a comment line no longer indents the next line
2018-10-10 00:36:12 +03:00
Rémi Verschelde
dda6d80598
Merge pull request #22742 from YeldhamDev/textedit_margin_scroll
...
Fix TextEdit margin start spacing with two scrollbars
2018-10-06 13:32:08 +02:00
Kellam Spencer
f51ce0f7b1
Fix to scrolling, rounding error on max_v_scroll
2018-10-05 16:50:49 -04:00
Michael Alexsander Silva Dias
8a64a44e0e
Fix TextEdit margin start spacing with two scrollbars
2018-10-04 19:38:08 -03:00
Hugo Locurcio
9c1d4f9da2
Use more subtle indentation guides in the script editor
2018-10-03 00:00:25 +02:00
Rémi Verschelde
01e1c6e8b6
Merge pull request #22560 from lupoDharkael/clipboard
...
TextEdit: prevent the copy of an empty string
2018-09-30 22:49:45 +02:00
lupoDharkael
f5f948210c
TextEdit: prevent the copy of an empty string
2018-09-30 17:17:29 +02:00
Paulb23
f08eead3a2
Fix code folding taking into account empty lines, issue 15689
2018-09-29 18:08:56 +01:00
elasota
9cf689183d
Fix some wchar_t truncations
2018-09-28 00:31:15 -04:00
Rémi Verschelde
d95bbb8922
Fix warnings about set but unused variables [-Wunused-but-set-variable]
...
Fixes the following GCC 5 warnings:
```
drivers/gles2/rasterizer_canvas_gles2.cpp:814:8: warning: variable 'rt_size' set but not used [-Wunused-but-set-variable]
drivers/gles2/rasterizer_scene_gles2.cpp:2270:11: warning: variable 'vp_height' set but not used [-Wunused-but-set-variable]
drivers/gles2/rasterizer_scene_gles2.cpp:2673:22: warning: variable 'e' set but not used [-Wunused-but-set-variable]
drivers/gles2/rasterizer_scene_gles2.cpp:715:7: warning: variable 'no_cull' set but not used [-Wunused-but-set-variable]
drivers/gles2/shader_gles2.cpp:693:14: warning: variable 'cc' set but not used [-Wunused-but-set-variable]
drivers/gles3/rasterizer_canvas_gles3.cpp:1226:8: warning: variable 'rt_size' set but not used [-Wunused-but-set-variable]
drivers/gles3/rasterizer_scene_gles3.cpp:3039:10: warning: variable 'contrib' set but not used [-Wunused-but-set-variable]
drivers/gles3/rasterizer_scene_gles3.cpp:4504:32: warning: variable 'vp_height' set but not used [-Wunused-but-set-variable]
editor/editor_inspector.cpp:272:9: warning: variable 'guide_color' set but not used [-Wunused-but-set-variable]
editor/editor_themes.cpp:1067:14: warning: variable 'alpha3' set but not used [-Wunused-but-set-variable]
editor/editor_themes.cpp:263:8: warning: variable 'script_bg_color' set but not used [-Wunused-but-set-variable]
editor/plugins/collision_shape_2d_editor_plugin.cpp:326:11: warning: variable 'cpoint' set but not used [-Wunused-but-set-variable]
editor/plugins/mesh_editor_plugin.cpp:72:9: warning: variable 'size' set but not used [-Wunused-but-set-variable]
editor/plugins/shader_editor_plugin.cpp:471:12: warning: variable 'mpos' set but not used [-Wunused-but-set-variable]
editor/plugins/shader_editor_plugin.cpp:89:8: warning: variable 'basetype_color' set but not used [-Wunused-but-set-variable]
editor/plugins/shader_editor_plugin.cpp:90:8: warning: variable 'type_color' set but not used [-Wunused-but-set-variable]
editor/plugins/shader_editor_plugin.cpp:92:8: warning: variable 'string_color' set but not used [-Wunused-but-set-variable]
modules/visual_script/visual_script_editor.cpp:2521:7: warning: variable 'seq_connect' set but not used [-Wunused-but-set-variable]
platform/android/export/export.cpp:580:12: warning: variable 'styles_count' set but not used [-Wunused-but-set-variable]
platform/android/export/export.cpp:584:12: warning: variable 'styles_offset' set but not used [-Wunused-but-set-variable]
platform/osx/export/export.cpp:464:9: warning: variable 'zerr' set but not used [-Wunused-but-set-variable]
scene/2d/tile_map.cpp:260:10: warning: variable 'tcenter' set but not used [-Wunused-but-set-variable]
scene/3d/light.cpp:166:7: warning: variable 'editor_ok' set but not used [-Wunused-but-set-variable]
scene/3d/navigation.cpp:566:11: warning: variable 'closest_navmesh' set but not used [-Wunused-but-set-variable]
scene/gui/rich_text_label.cpp:869:8: warning: variable 'size' set but not used [-Wunused-but-set-variable]
scene/main/viewport.cpp:705:14: warning: variable 'xform' set but not used [-Wunused-but-set-variable]
scene/main/viewport.cpp:706:8: warning: variable 'ss' set but not used [-Wunused-but-set-variable]
scene/main/viewport.cpp:726:14: warning: variable 'xform' set but not used [-Wunused-but-set-variable]
scene/main/viewport.cpp:727:8: warning: variable 'ss' set but not used [-Wunused-but-set-variable]
scene/resources/material.cpp:430:7: warning: variable 'using_world' set but not used [-Wunused-but-set-variable]
servers/visual/shader_language.cpp:2026:7: warning: variable 'all_const' set but not used [-Wunused-but-set-variable]
servers/visual/visual_server_scene.cpp:1383:28: warning: variable 'z_max_cam' set but not used [-Wunused-but-set-variable]
```
Also fixes two [-Wunused-value] warnings:
```
scene/gui/text_edit.cpp:4405:20: warning: statement has no effect [-Wunused-value]
servers/visual/visual_server_scene.cpp:905:48: warning: value computed is not used [-Wunused-value]
```
Some of those are bugs and need further work, they are identified with
`// FIXME` comments.
2018-09-27 16:25:24 +02:00
Rémi Verschelde
cda5b0bfe1
Fix warnings about unused variables [-Wunused-variable]
...
Fixes the following GCC 5 warnings:
```
drivers/gles2/rasterizer_scene_gles2.cpp:1139:15: warning: unused variable 'offset' [-Wunused-variable]
drivers/gles2/rasterizer_scene_gles2.cpp:1205:39: warning: unused variable 'multi_mesh' [-Wunused-variable]
drivers/gles2/rasterizer_storage_gles2.cpp:359:7: warning: unused variable 'srgb' [-Wunused-variable]
drivers/gles2/shader_gles2.cpp:1016:45: warning: unused variable 'texture_hints' [-Wunused-variable]
editor/animation_track_editor.cpp:776:9: warning: unused variable 'keys_to' [-Wunused-variable]
editor/editor_inspector.cpp:273:7: warning: unused variable 'vs_height' [-Wunused-variable]
editor/editor_themes.cpp:202:10: warning: unused variable 'begin_time' [-Wunused-variable]
editor/editor_themes.cpp:239:10: warning: unused variable 'end_time' [-Wunused-variable]
editor/plugins/animation_blend_tree_editor_plugin.cpp:726:17: warning: unused variable 'an' [-Wunused-variable]
editor/plugins/script_text_editor.cpp:1278:8: warning: unused variable 'fold_state' [-Wunused-variable]
main/main.cpp:132:13: warning: 'use_vsync' defined but not used [-Wunused-variable]
modules/cvtt/image_compress_cvtt.cpp:231:8: warning: unused variable 'y_end' [-Wunused-variable]
modules/cvtt/image_compress_cvtt.cpp:311:6: warning: unused variable 'shift' [-Wunused-variable]
modules/gdscript/gdscript_editor.cpp:58:7: warning: unused variable 'th' [-Wunused-variable]
modules/gridmap/grid_map.cpp:1084:6: warning: unused variable 'ofs' [-Wunused-variable]
modules/theora/video_stream_theora.cpp:442:9: warning: unused variable 'tr' [-Wunused-variable]
modules/visual_script/visual_script_editor.cpp:2606:6: warning: unused variable 'count' [-Wunused-variable]
modules/visual_script/visual_script_editor.cpp:2829:6: warning: unused variable 'seq_count' [-Wunused-variable]
modules/visual_script/visual_script_editor.cpp:2844:24: warning: unused variable 'vnode_function' [-Wunused-variable]
modules/websocket/lws_peer.cpp:122:12: warning: unused variable 'peer_data' [-Wunused-variable]
modules/websocket/lws_peer.cpp:135:12: warning: unused variable 'peer_data' [-Wunused-variable]
modules/websocket/lws_peer.cpp:63:12: warning: unused variable 'peer_data' [-Wunused-variable]
modules/websocket/lws_peer.cpp:91:12: warning: unused variable 'peer_data' [-Wunused-variable]
platform/android/export/export.cpp:763:16: warning: unused variable 'node_size' [-Wunused-variable]
scene/gui/rich_text_label.cpp:850:10: warning: unused variable 'x_ofs' [-Wunused-variable]
scene/gui/text_edit.cpp:653:8: warning: unused variable 'tab_w' [-Wunused-variable]
scene/resources/bit_mask.cpp:186:6: warning: unused variable 'i' [-Wunused-variable]
scene/resources/mesh.cpp:549:20: warning: '_array_name' defined but not used [-Wunused-variable]
servers/audio/audio_rb_resampler.cpp:107:10: warning: unused variable 'v2' [-Wunused-variable]
servers/audio/audio_rb_resampler.cpp:108:10: warning: unused variable 'v3' [-Wunused-variable]
servers/audio/audio_rb_resampler.cpp:109:10: warning: unused variable 'v4' [-Wunused-variable]
servers/audio/audio_rb_resampler.cpp:110:10: warning: unused variable 'v5' [-Wunused-variable]
servers/audio/audio_rb_resampler.cpp:111:10: warning: unused variable 'v0n' [-Wunused-variable]
servers/audio/audio_rb_resampler.cpp:112:10: warning: unused variable 'v1n' [-Wunused-variable]
servers/audio/audio_rb_resampler.cpp:113:10: warning: unused variable 'v2n' [-Wunused-variable]
servers/audio/audio_rb_resampler.cpp:114:10: warning: unused variable 'v3n' [-Wunused-variable]
servers/audio/audio_rb_resampler.cpp:115:10: warning: unused variable 'v4n' [-Wunused-variable]
servers/audio/audio_rb_resampler.cpp:116:10: warning: unused variable 'v5n' [-Wunused-variable]
servers/visual/default_mouse_cursor.xpm:2:21: warning: 'default_mouse_cursor_xpm' defined but not used [-Wunused-variable]
```
2018-09-27 16:25:24 +02:00
Rémi Verschelde
1a16dabfb5
Merge pull request #21982 from luzpaz/misc-typos
...
Misc. typos
2018-09-13 10:59:00 +02:00
luz.paz
08bde5b2de
Misc. typos
...
Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
2018-09-12 21:39:17 -04:00
Guilherme Felipe
51e854846e
Fix default_cursor_shape for TextEdit
2018-09-12 13:26:51 -03:00
Rémi Verschelde
06667b2fcf
Merge pull request #21219 from AlexHolly/fix-textedit-shows-nothing
...
TextEdit update cache.size on ENTER_TREE
2018-09-12 17:41:12 +02:00
Rémi Verschelde
277b24dfb7
Make core/ includes absolute, remove subfolders from include path
...
This allows more consistency in the manner we include core headers,
where previously there would be a mix of absolute, relative and
include path-dependent includes.
2018-09-12 09:52:22 +02:00
Rémi Verschelde
e883edfac9
Merge pull request #21872 from Paulb23/fix_backwards_search
...
Fix backwards search in TextEdit selecting non-whole words, issue 15677
2018-09-10 18:52:35 +02:00
Rémi Verschelde
87e0563116
Merge pull request #21491 from AlexHolly/fix-textedit-uncomment-spamm
...
Uncommenting a selection was not updating the selection.
2018-09-10 18:48:41 +02:00
Paulb23
e474b4a444
Fix backwards search in TextEdit selecting non-whole words, issue 15677
2018-09-08 14:54:41 +01:00
Paulb23
f051f5110e
Fixed scientific notaion not highlighting correctly, issue 21435
2018-09-08 13:42:11 +01:00
Alexander Holland
5cb66b2776
Uncommenting a selection was not updating the selection.
...
Also adds uncomment lines(ctrl+u) where # is not in first place
2018-09-08 14:21:15 +02:00
Alexander Holland
f2da51620d
TextEdit replaced cache.size with get_size()
2018-08-25 16:21:47 +02:00
Rémi Verschelde
6ce4078c5f
Merge pull request #20586 from AlexHolly/text-edit-auto-completion
...
text_edit auto_completion
2018-08-24 20:48:01 +02:00
Rémi Verschelde
52466d57e9
Make some debug prints verbose-only, remove others
2018-08-24 14:59:01 +02:00
Alexander Holland
6d684aae8a
text_edit auto_completion
...
replaced "similarity filter" with "sequential checks" this give more control over the desired filtering.
2018-08-14 22:45:10 +02:00
Rémi Verschelde
a3d0b89892
Merge pull request #20876 from ttencate/cursor_blink
...
Reset caret blink when Ctrl+moving the cursor
2018-08-14 15:42:19 +02:00
James
109028f52b
Editor autocomplete: prefer same case candidates
2018-08-13 20:45:33 +02:00
Rémi Verschelde
9ce33978db
Merge pull request #20666 from Calinou/script-editor-underline-hidpi
...
Scale underlines in the script editor with the editor scale
2018-08-13 12:21:23 +02:00
Juan Linietsky
0fc1c4eda8
Merge pull request #20149 from Overblob/shader_float_typing
...
Shader language - Add optional float typings
2018-08-10 18:21:28 -03:00
Thomas ten Cate
44d761e55c
Reset caret blink when Ctrl+moving the cursor
...
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
2018-08-10 11:23:13 +02:00
Hugo Locurcio
501fc98c63
Scale underlines in the script editor with the editor scale
2018-08-02 09:38:56 +02:00
Rémi Verschelde
7056dc6011
Merge pull request #20498 from Calinou/caret-width-hidpi
...
Make the caret thicker in TextEdit and scale it with the editor scale
2018-07-27 09:01:58 +02:00
Hugo Locurcio
f8a2cb3e15
Multiply TextEdit line spacing by the editor scale
...
This makes sure the default line spacing in the script editor
is consistent with the editor scale in use.
2018-07-26 23:50:16 +02:00
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
Hein-Pieter van Braam
0e29f7974b
Reduce unnecessary COW on Vector by make writing explicit
...
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.
2018-07-26 00:54:16 +02:00
Wilson E. Alvarez
a22e746bc3
Removed unnecessary assignments
2018-07-24 09:51:03 +02:00
George Marques
03746da73f
Add editor highlight for type-safe lines
...
The line number is hightlighted to indicate that the line contains only
type-safe code.
2018-07-20 21:55:18 -03:00
Overblob
e6ad5e23b4
* Small hex/float/integer parsing refactoring
...
* 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"
2018-07-15 14:58:23 +02:00
Max Hilbrunner
16f1a77319
Merge pull request #19735 from Paulb23/text_offset_issue_15688
...
Fixed text drawing too high in TextEdit, issue 15688
2018-07-05 04:04:39 +02:00
Max Hilbrunner
e3c8ac43c6
Merge pull request #19187 from Zirak/editor-autocomplete-quote
...
Editor autocomplete won't insert unnecessary quotes
2018-07-05 02:33:33 +02:00
Max Hilbrunner
edc63a2f60
Merge pull request #18028 from gabrii/18026
...
Fix #18026 . Expose TextEdit::set_draw_breakpoint_gutter.
2018-07-05 02:30:18 +02:00
Max Hilbrunner
fbff1804d2
Merge pull request #17438 from Deluvi/get-word-pos-quote-fix
...
get_word_at_pos considers simple and double quotes
2018-07-03 18:28:47 +02:00
Paulb23
8a168637fe
Fixed text drawing too high in TextEdit, issue 15688
2018-06-24 10:38:53 +01:00
robojumper
4ba6755324
Re-enable scrolling via selecting code beyond edges in text_edit.cpp
2018-06-14 21:29:39 +02:00
Saracen
c5bdb5b1d8
IME context detection.
2018-06-11 17:22:11 +01:00
Max Hilbrunner
e949230837
Merge pull request #18298 from gabrii/TextEditScaledSelection
...
TextEdit scaled selection
2018-06-09 19:35:48 +02:00
Gabriel Gavilan
b7b63fe034
Improve breakpoints and breakpoint gutter API in TextEdit
...
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 .
2018-05-30 14:39:44 +02:00
Zirak
c329780ea7
Editor autocomplete won't insert unnecessary quotes
...
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')
2018-05-26 21:13:42 +00:00
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
Rémi Verschelde
d6c15bd96a
Merge pull request #19017 from toger5/fix_no_a_input_script_editor_osx
...
fixed capital A osx
2018-05-18 20:04:31 +02:00
toger5
6476b708d9
fixed capital A osx
2018-05-18 19:46:40 +02:00
Rémi Verschelde
69cafb6044
Merge pull request #18910 from PJB3005/18-05-15-fix-textedit-param
...
Fix missing registration for new param of TextEdit::cursor_set_line.
2018-05-16 02:38:21 +02:00
Pieter-Jan Briers
0f303c9f43
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)
2018-05-15 21:53:42 +02:00
ianb96
ce434bca82
fix get_char_width for non-latin characters
2018-05-15 15:32:09 -04:00
Ian
e1fff4bc09
TextEdit word wrap
2018-05-14 16:17:48 -04:00
Rémi Verschelde
dd2aba021c
Merge pull request #18853 from YeldhamDev/gui_cppcheck_fixes
...
Fixed some warnings found with Cppcheck
2018-05-14 07:39:54 +02:00
Michael Alexsander Silva Dias
7f72d6476b
Fixed some warnings found with Cppcheck.
2018-05-14 02:14:56 -03:00
toger5
d927e972d1
fixed a input not registered in osx script editor
2018-05-11 04:30:05 +02:00
Gabriel Gavilan
b0069bb118
Apply viewport scale to selection update methods. Changed to propper fix sugested by reduz
2018-05-09 20:37:50 +02:00
Charly Mourglia
b09e0454bb
Consider TextEdit paste operation complex.
...
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
2018-05-09 14:07:06 +02:00
Deluvi
215150cfbf
get_word_at_pos considers simple and double quotes
...
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
2018-05-09 08:33:57 +02: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
Juan Linietsky
dff3a2f378
Merge pull request #18003 from sherjilozair/patch_macosx_shortcuts
...
Add additional macos shortcuts for going to start/end of line
2018-05-07 15:59:22 -03:00
Max Hilbrunner
f9733b5cee
Merge pull request #18397 from KidRigger/working_te
...
Support of CMD+Backspace and CMD+Delete on MacOS.
2018-05-04 11:19:09 +02:00
Unknown
4e26e5e268
Script Editor now displays positional column
...
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.
2018-05-03 18:03:20 +01: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
515f2200fb
Support of CMD+Backspace and CMD+Delete on MacOS.
...
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
2018-04-24 18:53:04 +05:30
Hugo Locurcio
1c419531a0
Change ".." punctuation for "..." in editor strings ( #16507 )
2018-04-22 19:36:01 +02:00
sersoong
a1cfc89108
Fixed context menu TTR bugs
2018-04-19 15:31:38 +08:00
Rémi Verschelde
fbc61374ca
Use internal physics processing for Nodes' internal logic
2018-04-11 09:28:14 +02:00
Paulb23
aba4247910
Fixed color region calculation for the first line
2018-04-10 20:42:28 +01:00
Paulb23
b571a29df5
Fixed color regions and added local color region cache
2018-04-07 14:14:19 +01:00
Sherjil Ozair
166c7fdc9d
Add additional macos shortcuts for going to start/end of line
2018-04-05 15:44:25 -04:00
Paulb23
f7c727e6c3
Abstracted the syntax highlighter from text edit
2018-04-02 12:41:44 +01:00
Rémi Verschelde
88c1430613
Merge pull request #17314 from robfram/complete-path-15813
...
Fix bad autocomplete of partially written node paths when using syntactic sugar notation ($)
2018-03-13 12:16:51 +01:00
Alexander Holland
e36dd4282b
auto-completion edge jump
...
arrow up/down jumps to end/start on edges
2018-03-09 17:31:07 +01:00
robfram
95f186b621
Fix bad autocomplete of partially written node paths when using syntactic sugar notation ($)
...
If you had a tree like Node2D->Sprite->Camera2D and you write a
code like $Node2D/Spr and chose the autocompletion sugested
Node2D/Sprite, the resulting string was $Node2D/Node2D/Sprite
instead $Node2D/Sprite. If you chose Node2D/Sprite/Camera2D, then
you ended with $Node2D/Node2D/Sprite/Camera2D.
Fix #15813 .
2018-03-06 19:25:14 +01:00
luz.paz
612ab4bbc6
Fix typos with codespell
...
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt`
Whitelist consists of:
```
ang
doubleclick
lod
nd
que
te
unselect
```
2018-02-21 19:46:06 +01:00
Rémi Verschelde
6ee4298ee3
Merge pull request #16652 from aragar/FixQuotationInString
...
Fix quotation in string
2018-02-19 22:12:53 +01:00
Rémi Verschelde
2551db44e1
Merge pull request #15618 from ianb96/fold_comment
...
TextEdit folding over unindented comments
2018-02-14 16:36:42 +01:00
Rado'sPC\aRaGaR
f38e819fc1
Fix quotation in string
...
fix for #16404
2018-02-12 23:01:36 +02:00
binbitten
ba8c5bff69
Fix TextEdit current line highlight horizontal offset
2018-01-31 19:04:50 +01:00
Rémi Verschelde
9f479f096c
Fix typos in code and docs with codespell
...
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-18 22:01:42 +01:00
Ian
1b837125ce
TextEdit fix get_mouse after many folds
2018-01-18 12:18:06 -05:00
Paulb23
386c57cfad
Fixed current line highligting with horizontal clipping, issue 15427
2018-01-14 16:06:27 +00:00
Paul Joannon
8ae0624c80
Deselect on undo/redo in TextEdit
2018-01-13 11:46:53 +01:00
Juan Linietsky
419705db6e
Add special coloring to members, to make shadowing more obvious.
2018-01-12 11:01:09 -03:00
Ian
d327f75392
TextEdit folding over unindented comments
2018-01-12 00:25:04 -05: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
poke1024
c1db81b9ed
Fixes empty line selection when scrolling
2018-01-11 06:51:20 +01:00
Bernhard Liebl
3af5dfbbf3
Fix whole word search missing occurences
2018-01-08 22:50:33 +01:00
Ian
b3ad2538d0
fix center viewport out of size error, #15411
2018-01-06 18:06:09 -05: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
32bb236f24
Merge pull request #15334 from poke1024/textedit-mousepos
...
Fix TextEdit::_get_mouse_pos rounding errors
2018-01-04 19:53:43 +01:00
Bernhard Liebl
cc64679a20
Fix TextEdit::_get_mouse_pos rounding errors
2018-01-04 18:30:15 +01:00
Rémi Verschelde
023c04689e
Merge pull request #15308 from ianb96/horizontal_scrolling
...
TextEdit horizontal scrolling with shift
2018-01-04 01:35:38 +01:00
Rémi Verschelde
f9f6f250e6
Merge pull request #15191 from Jerome67000/z_renaming
...
renames "z" Node2D property to "z_index"
2018-01-04 00:41:45 +01:00
Ian
ae6b7c0b41
TextEdit horizontal scrolling with shift
2018-01-03 17:21:54 -05:00
Jerome67000
42ae3525a3
#15078 renamed "z" -> "z_index" property in Node2D
2018-01-03 13:02:26 +01:00
Rémi Verschelde
e3c744f9f1
Merge pull request #15127 from poke1024/smooth-scroll-play
...
Remove some lagginess from TextEdit's smooth scrolling
2018-01-03 11:34:42 +01:00
Rémi Verschelde
592b0fc068
Merge pull request #15063 from poke1024/textedit-select-last-line
...
Fix key down on last line in TextEdit
2018-01-03 10:30:51 +01:00
Rémi Verschelde
d7d8fc6c20
Merge pull request #14983 from Paulb23/keyboard_selection_issue_14675
...
Fixed keyboard word selection when at the start/end of line, issue 14675
2018-01-02 11:19:34 +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
Noshyaar
97d7f689e1
Merge pull request #14972 from poke1024/fix-unindent-col-0
...
Fix unindent (shift-tab) on column 0
2018-01-01 18:52:06 +07:00
Noshyaar
a6328011d8
Merge pull request #14973 from poke1024/docs-word-selection
...
Double-click word selection for RichTextLabel (i.e. docs)
2018-01-01 18:51:35 +07:00
Bernhard Liebl
2897523d12
Fix unindent (shift-tab) on column 0 and more
2017-12-28 17:48:40 +01:00
Bernhard Liebl
b80bc553dd
Double-click word selection for RichTextLabel (i.e. docs)
2017-12-28 17:44:22 +01:00
Bernhard Liebl
d640542f6d
Remove some lagginess from TextEdit's smooth scrolling
2017-12-28 15:49:37 +01:00
Ian
19c3f4c4c1
fix indent selection crash
2017-12-26 12:13:17 -08:00
Bernhard Liebl
076a5f35fc
Fix shift-key down on last line in TextEdit
2017-12-26 08:32:30 +01:00
Poommetee Ketson
6c897707ca
Add missing parameter names
2017-12-25 21:19:56 +07:00
Paulb23
a11a691b17
Fixed keyboard word selection when at the start/end of line, issue 14675
2017-12-23 14:47:04 +00:00
MattUV
a55870cd81
Adds an option to move cursor with right click in TextEdit
...
Fixes #14832
- Added an option in the editor settings/cursor to make the cursor move with right click.
- If the option is activated (true by default), a right click will move the cursor before displaying context menu.
- If there is a selection, a right click on it will keep it selected, a right click outside it will unselect it.
- The option is available in textEdit via an inspector property (or via GDScript): caret_moving_by_right_click
- The option is available in the script editor and the shader editor via the editor settings
- The documentation has been updated with the new property, and a few other entries in TextEdit.xml.
2017-12-20 09:01:09 +01:00
Bernhard Liebl
abfcce0067
Fix cut-copy-line breaking paste (issue 14539)
2017-12-17 16:24:23 +01:00
Rémi Verschelde
d03f35f1bc
Bind TextEdit.deselect and update documentation
2017-12-16 21:08:31 +01:00
MattUV
db020f3cea
Modifies indentation behaviours
...
Partially fixes #14559 (see the issue for details);
Removes some code redondancy ;
Adds the possibility to indent left and right without selecting text ;
Adds the entries to the context menu when text is not selected ;
Renames indent_selection_left() and indent_selection_right() to indent_left() and indent_right() ;
Unifies context menus of shader text editor and script text editor.
2017-12-15 10:04:56 +01:00
MattUV
e669ca2576
Modify shortcuts and menus to fold/unfold code
...
Fix #13180
As the same shortcut cannot be assigned to two actions, I removed the ability to fold (fold_line()) or unfold (unfold_line()) via menu (still possible by code), and there is a single fold/unfold action (toggle_fold_line()).
The new default shortcut is now Alt+F
2017-12-08 19:21:48 +01:00
Paulb23
48ad133cf9
Changed current line draw order and added code folding color
2017-12-07 19:17:43 +00:00
Rémi Verschelde
8a07cb0b69
Merge pull request #14352 from ianb96/get_hidden_width
...
Fixes horizontal scrolling over hidden lines
2017-12-07 07:52:01 +01:00
Rémi Verschelde
46ac939a74
Merge pull request #13362 from groud/fix_folding
...
Fixes folding of blank lines
2017-12-07 07:20:41 +01:00
Ian
1c1a6723d0
fixes horizontal scrolling over hidden lines
2017-12-06 19:04:47 -05:00
Rémi Verschelde
7b557a4e1f
Merge pull request #13409 from YeldhamDev/textedit_disabled
...
Add disabled theme to TextEdit
2017-12-06 23:42:54 +01:00
Michael Alexsander Silva Dias
2773c12156
Add disabled theme to TextEdit.
2017-12-01 01:32:26 -02:00
Ian
d1c7ed4117
last line scroll fix when scroll_past_last_line is disabled
2017-11-28 16:52:52 -05:00
Gilles Roudiere
e13ff74c09
Fixes folding of blank lines
2017-11-28 20:03:46 +09:00
Paulb23
565809e736
Fixes adjust viewport to cursor when line is to long, issue 13190
2017-11-26 19:10:05 +00:00
Paulb23
f6f475e6ba
Fixed not be able to unfold the last line
2017-11-23 20:37:08 +00:00
ianb96
19c92c69c3
code folding scrolling fixes
2017-11-21 17:09:04 -05:00
Rémi Verschelde
fee2f367af
Merge pull request #13134 from Chaosus/fixinvalidscroll
...
Fix invalid scroll
2017-11-21 14:25:15 +01:00
Chaosus
9240b7f2d1
Fix invalid scroll
2017-11-21 12:52:46 +03:00
Bernhard Liebl
80ad8afc85
Native pan and zoom for macOS
2017-11-21 09:11:39 +01:00
Daniel J. Ramirez
e5de5b4908
Visual fixes
...
Added some icons (Including the onion one)
Fixed text editor ellipsis style and editor tabs
2017-11-20 13:03:22 -06:00
Rémi Verschelde
414b388499
Fix TextEdit::cursor_set_line bindings
...
As spotted by @neikeq - fixes #13068 .
2017-11-20 08:11:31 +01:00
Ian
1e59169d2d
scrolling fixes
2017-11-18 20:07:53 -05:00
Ian
d350f506a0
TextEdit code folding
2017-11-17 21:49:43 -05:00
Rémi Verschelde
139a957802
Merge pull request #12763 from remorse107/Code-Complete
...
Modified code completion for better tabbing with immediate hints.
2017-11-17 00:33:27 +01:00
Bojidar Marinov
443ce6fef2
Allow underscores in GDScript numeric literals
...
Closes #12928
2017-11-15 22:53:08 +02:00
Rémi Verschelde
4685674389
Merge pull request #12842 from ianb96/shader_editor_fix
...
Shader Editor context menu and line operations and style fix
2017-11-14 07:33:04 +01:00
Robert Morse
3372413037
Modified code completion for better tabbing, and removal of need to backspace and re-enter '(' to get code completion hints.
2017-11-13 18:19:11 -06:00
Michael Alexsander Silva Dias
2a26931246
Made text in TextEdit a property.
2017-11-12 13:10:26 -02:00
Michael Alexsander Silva Dias
920f3f6546
Added "is_readonly()" to TextEdit and made it a property.
2017-11-11 22:14:14 -02:00
Ian
94b3e786cd
shader editor context menu and line operations and style fix
2017-11-11 14:46:59 -05:00
Ian
fc299b4f37
add context menu enable getters, setters, and properties in LineEdit and TextEdit
2017-11-11 03:30:59 -05:00
Paulb23
6f6afde0c5
Changed line and word mouse selection
2017-11-05 15:54:00 +00:00
Paulb23
e03a054714
Remove text on enter, issue 12494
2017-10-31 20:42:53 +00:00
Unknown
7683ff3e42
Fix get_node() and $ autocompletion when using single quotes
2017-10-30 21:58:32 +01:00
Paulb23
45670df354
Added setting to toggle current line highlighting
2017-10-22 13:42:08 +01:00
Paulb23
c594c8001b
Fixed current line highlighting and visual indication of empty selected lines
2017-10-21 21:35:50 +01:00
Rémi Verschelde
0c9d201044
Merge pull request #11407 from toger5/selection_override_color
...
added option to keep font color on selection + use consistent selection color in help (fixes : #11501 )
2017-10-15 20:49:38 +02:00
Paulb23
b07dfd75ea
Consistant scroll when using members overview, issue 11648
2017-10-08 14:29:27 +01:00
Andreas Haas
5303efb2fa
Merge pull request #11659 from AndreaCatania/prephysics
...
Renamed fixed_process to physics_process
2017-10-02 23:10:36 +02:00
AndreaCatania
4537977d6d
Renamed fixed_process to physics_process
2017-09-30 16:19:07 +02:00
toger5
8c087e046d
fixed coustom bg weired offset for code editor
2017-09-29 17:00:17 +02:00
toger5
e49ac08c24
do not overlap current line with selection color
2017-09-28 16:12:12 +02:00
toger5
d58a159e38
keep font color on selection as default
2017-09-28 14:17:14 +02: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
Rémi Verschelde
cc161dcd6f
Merge pull request #11021 from tuga3d/autocomplete-logic-attempt2
...
autocomplete logic attempt 2, fixes #10695
2017-09-18 08:58:18 +02:00
Marcelo Fernandez
31ba932e3b
Fix crash when using key+u on a line with only a #
2017-09-17 17:07:42 -03:00
Rémi Verschelde
0953c8fd55
Merge pull request #11314 from marcelofg55/master
...
Fix possible crash with ctrl-u on script editor
2017-09-17 12:56:13 +02:00
Daniel J. Ramirez
d84c79d349
Fixed compilation with tools=no
2017-09-16 23:33:44 -05:00
Marcelo Fernandez
a2837360d0
Fix possible crash with ctrl-u on script editor
2017-09-16 04:20:20 -03:00
Daniel J. Ramirez
ba11dc3f48
Added adaptive text editor theme, this includes the shader editor
2017-09-15 16:08:22 -05:00
Paulo Gomes
9b72f08042
second take at autocomplete logic, using a TextOperation check.
2017-09-06 19:23:09 +01:00
Paulb23
cfa5f37ee7
Added support for brace auto indent and fixed indent above
2017-09-02 15:59:30 +01:00
Paulb23
93f6fbd7b2
Fixed jitter when scrolling up
2017-09-02 13:45:21 +01:00
Hein-Pieter van Braam
9c63ab99f0
Fix use of unitialized variables
...
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-02 01:59:26 +02:00
Paulo Gomes
2eb46801cb
second attempt on fixing the indent glitch.
...
I've reverted the first attempt (https://github.com/godotengine/godot/pull/10653 ).
I was very naive and didn't consider that the glitch happens also if you're not in the first column, ex. if you have 2 tabs and press return in between them.
Hope this will solve the problem without messing anything else.
2017-08-30 19:35:38 +01:00
Rémi Verschelde
213887f209
Merge pull request #10693 from Paulb23/offset_view_when_removing_issue_10529
...
Fixed offset view when removing text, issue 10529
2017-08-28 00:07:02 +02:00
Rémi Verschelde
7ad14e7a3e
Dead code tells no tales
2017-08-27 22:13:45 +02:00
Paulb23
ae26f8e015
Fixed offset view when removing text, issue 10529
2017-08-27 18:29:15 +01:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Rémi Verschelde
a6e37ae2bf
Merge pull request #10600 from MasonAsh/fix-10596
...
Script editor: fixed no key repeat for CTRL+Y
2017-08-27 02:11:58 +02:00
Rémi Verschelde
612099e377
Merge pull request #10591 from Rubonnek/possible-null-ptr-dereference
...
Added/Fixed null pointer checks
2017-08-27 02:10:56 +02:00
Wilson E. Alvarez
7a07895920
Added/Fixed null pointer checks
2017-08-26 16:58:47 -04:00
Paulo Gomes
056b0976bc
Added a cursor column check.
...
Fixes glich, when cursor is on column 0 of and indented line and you
press return an extra indent is added.
2017-08-26 19:22:05 +01:00
Mason Ashbridge
9def31120c
Script editor: fixed no key repeat for CTRL+Y
2017-08-24 01:28:08 -04:00
Juan Linietsky
36e0a72c77
-Code completion for enumerations
...
-Disabled GDNative and GDNativeScript so build compiles again
2017-08-24 00:06:56 -03:00
Rémi Verschelde
916fd47343
Merge pull request #10561 from Paulb23/smooth_scroll_input_override
...
Stops scrolling when the user issues another command
2017-08-23 08:09:13 +02:00
Paulb23
24c6c097f3
Stops scrolling when the user issues another command
2017-08-22 20:04:19 +01:00
Andreas Haas
5d25f6397f
TextEdit: Copy whole line if not having selection.
...
The functionality was already there but hidden behind a bogus return statement.
Fixes #10485
2017-08-22 20:05:52 +02:00
Rémi Verschelde
df590fc2d3
Merge pull request #10340 from Rubonnek/remove-unnecessary-assignments
...
Removed unnecessary assignments
2017-08-22 00:58:12 +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
Rémi Verschelde
9dd8d73482
Merge pull request #10427 from Hinsbart/fix_padding
...
TextEdit: Fix line padding triggering too early.
2017-08-22 00:04:11 +02:00
Wilson E. Alvarez
738d2ab969
Removed unnecessary assignments
2017-08-21 15:15:55 -04:00
Paulb23
d6599fde0a
Increased smooth scroll speed and added user setting
2017-08-21 19:20:11 +01:00
Ignacio Etcheverry
32dd9a9f66
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00
Paulb23
a0457341fc
Fixed not being able to scroll to eof
2017-08-20 14:07:54 +01:00
Paulb23
a142c9a2f0
Added smooth scrolling to TextEdit
2017-08-19 15:23:45 +01:00
Rémi Verschelde
43d91faa2e
Merge pull request #10439 from Paulb23/blinking_text_issue_10432
...
Fixed blinking text, issue 10432
2017-08-19 12:32:13 +02:00
Paulb23
fb0e7f8f1c
Fixed blinking text, issue 10432
2017-08-19 09:55:42 +01:00
Andreas Haas
58b2f441a7
TextEdit: Fix line padding.
...
off-by-one error in the line count calculation.
Fixes #10411
2017-08-18 22:12:07 +02:00
Andreas Haas
3f2d806b02
TextEdit: Moving between words now works across lines.
...
Fixes #10403
2017-08-18 20:53:27 +02:00
TwistedTwigleg
00f6c85928
Synchronize parameter names in definition and declaration
...
Fixes #10244 .
2017-08-16 17:22:23 +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
78619a5866
Fixes method definitions with extra number of arguments
2017-08-10 07:17:51 +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
Andreas Haas
708ddb05af
ScriptEditor: ctrl+click can open scenes/resources.
...
Closes #9654
2017-08-02 19:23:57 +02:00
Paulb23
0018894456
made delete next and prev consistent to other editors,issue 6546
2017-08-01 18:40:43 +01:00
Poommetee Ketson
2777f81d29
Add object type hint for docs
2017-07-23 18:57:03 +07:00
Juan Linietsky
25678b1876
-Renamed GlobalConfig to ProjectSettings, makes more sense.
...
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
geequlim
7358766ff6
IME window follow the input cursor.
...
Abstruct set_ime_position to OS class.
Update ime position for LineEdit and TextEdit.
2017-07-11 18:36:20 +08:00
alexholly
a3c90b0293
renamed all Rect2.pos to Rect2.position
2017-06-04 02:09:17 +02:00
Andreas Haas
9bc5348961
InputEvent: Renamed "pos" property to "position"
...
Make the naming consistent with other classes.
2017-06-03 11:26:39 +02:00
Juan Linietsky
5b3709d309
Removal of InputEvent as built-in Variant type..
...
this might cause bugs I haven't found yet..
2017-05-20 17:05:38 -03:00
toger5
304a1f5b5a
Implemented scrolling factor for smooth trackpad scrolling
...
Working platforms platform: OSX, Windows.
Support for almost all ui elements, including project list.
2017-05-07 14:23:56 +02:00
Rémi Verschelde
22b9c0207b
Merge pull request #8417 from neikeq/hello-there
...
External editor improvements and fixes
2017-04-20 02:20:04 +02:00
Paulb23
84bca4e72f
Added support for space indentation
2017-04-18 12:30:46 +01:00
Ignacio Etcheverry
4b8568006d
External editor improvements and fixes
...
Notable changes:
- Now ScriptLanguages have the option to override the global external editor setting.
If `ScriptLanguage::open_in_external_editor()` returns `ERR_UNAVAILABLE` (which it does by default), then the global external editor option will be used.
- Added formatting to the external editor execution arguments. Now it's possible to write something like this: `{project} -g {file}:{line}:{col}`.
- `VisualScript::get_member_line()` now can return the line of functions (well, it returns the id of the _Function_ node of the function). I guess there is nothing else we can get a "line" from.
Fixes:
- Fixes a bug where `ScriptEditor::script_goto_method()` would not work if the script is not already open in the built-in editor.
- Fixes wrong DEFVAL for `cursor_set_column` and `cursor_set_line` in TextEdit.
- `Script::get_member_line()` now returns -1 ("found nothing") by default.
2017-04-17 01:51:30 +02:00
Sergey Pusnei
8589ca3903
Rename [gs]et_pos to [gs]et_position for Controls
...
Control set_pos -> set_position
Control set_global_pos -> set_global_position
[gs]et_mouse_pos -> [gs]et_mouse_position
[gs]et_global_mouse_pos -> [gs]et_global_mouse_position
fixes #8005
2017-04-10 08:27:34 +02:00
Rémi Verschelde
df61dc4b2b
Add "Godot Engine contributors" copyright line
2017-04-08 00:11:42 +02:00
supaiku
d51fe99a8b
Fix highlight typo
2017-04-06 17:35:08 +02:00
Rémi Verschelde
5dbf1809c6
A Whole New World (clang-format edition)
...
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
2017-03-05 16:44:50 +01:00
Thaer Razeq
f50488a361
Various fixes detected using PVS-Studio static analyzer.
...
- Add FIXME tags comments to some unfixed potential bugs
- Remove some checks (always false: unsigned never < 0)
- Fix some if statements based on reviews.
- Bunch of missing `else` statements
2017-02-28 07:52:02 -06:00
Juan Linietsky
de0045cf1b
-renamed globals.h to global_config.cpp (this seems to have caused a few modified files)
...
-.pck and .zip exporting redone, seems to be working..
2017-02-21 00:06:30 -03:00
Hein-Pieter van Braam
411ee71b4d
Rename the _MD macro to D_METHOD
...
This new name also makes its purpose a little clearer
This is a step towards fixing #56
2017-02-13 12:50:02 +01:00
Hein-Pieter van Braam
0f687f0ccb
Remove use of _SCS from ADD_METHOD
...
This saves typing and is a step towards fixing #56
2017-02-13 10:37:47 +01:00
kbake
1169f4e040
Selected text is now deselected on ctrl+home/end
...
This fixes Issue #7694 and also the error mentioned in the comments of that issue.
2017-02-03 02:01:41 -05:00
Paulb23
6b42cd5fe6
Fixed line lenght guideline drawing with color option
2017-01-28 14:36:57 +00:00
Rémi Verschelde
f44ee891be
Style: Fix statements ending with ';;'
2017-01-16 08:49:52 +01:00
Rémi Verschelde
93ab45b6b5
Style: Fix whole-line commented code
...
They do not play well with clang-format which aligns the `//` part
with the rest of the code block, thus producing badly indented commented code.
2017-01-14 14:52:23 +01:00
Juan Linietsky
04c749a1f0
New API for visibility in both CanvasItem and Spatial
...
visible (property) - access set_visible(bool) is_visible()
is_visible_in_tree() - true when visible and parents visible
show() hide() - for convenience
2017-01-13 10:45:50 -03:00
Juan Linietsky
fa170cbc58
PopupMenu now emits both index_pressed and id_pressed instead of item_pressed, closes #3188
2017-01-08 18:18:54 -03:00
Juan Linietsky
920947f297
renamed _input_event for GUI events to _gui_input, so it's more differentiated than generalized _input
2017-01-08 16:28:12 -03:00
Juan Linietsky
8963ca3d17
Fix code completion for new getnode syntax
2017-01-08 03:01:52 -03:00
Juan Linietsky
2ab83e1abb
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
2017-01-07 18:26:38 -03:00
Juan Linietsky
0f7af4ea51
-Changed most project settings in the engine, so they have major and minor categories.
...
-Changed SectionedPropertyEditor to support this
-Renamed Globals singleton to GlobalConfig, makes more sense.
-Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available
2017-01-05 09:16:00 -03:00
Juan Linietsky
b085c40edf
-Conversion of most properties to a simpler syntax, easier to use by script
...
-Modified help to display properties
GDScript can still not make use of them, though.
2017-01-04 01:16:14 -03:00
Juan Linietsky
118eed485e
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
...
All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
2017-01-02 23:03:46 -03:00
Rémi Verschelde
c7bc44d5ad
Welcome in 2017, dear changelog reader!
...
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer
with state-of-the-art rendering techniques tuned to work as low as middle
end handheld devices - without compromising with the possibilities given
for higher end desktop games of course. Great times ahead for the Godot
community and the gamers that will play our games!
2017-01-01 22:03:33 +01:00
Johnson Earls
d1cf29fe99
Fix search to find "whole" words at end of line
...
Fix `_get_column_pos_of_word` so that the `SEARCH_WHOLE_WORDS` flag will properly find words that are at the end of a line.
Fixes #7326 .
2016-12-18 06:19:22 -08:00
volzhs
384625aa31
Emit "*_changed" signal in set_*
2016-11-14 04:21:29 +09:00
Rémi Verschelde
7d1230a266
Merge pull request #7052 from Paulb23/text_edit_color_uniformation
...
Made background and symbol color follow the color API
2016-11-09 15:47:15 +01:00
Paulb23
7b036a94bf
Caret blink will no longer cause redraw without focus, issue 6167
2016-11-06 14:15:59 +00:00
Paulb23
0e2c15e91a
Made background and symbol color follow the color API
2016-11-06 13:50:23 +00:00
Pedro J. Estébanez
00b3af246b
Allow turing off zero-padding for line numbers
2016-10-13 11:43:42 +02:00
Rémi Verschelde
0f587c460e
Merge pull request #6778 from Hinsbart/completion_z
...
Fix Script Editor drawing over Dialogs.
2016-10-11 09:10:39 +02:00
Andreas Haas
f73b501d6f
Fix Script Editor drawing over Dialogs.
...
Resets the z-index when focus is lost and the completion is shown.
Fixes #6769
2016-10-10 13:24:46 +02:00
Pedro J. Estébanez
d9c1729a8f
Add line length guideline to code editors
2016-10-10 10:39:58 +02:00
Andreas Haas
6dfa405eac
Fix code completion drawing under other gui elements.
...
Raises the z-index of the Script editor when the completion is shown.
fixes #1257
fixes #6690
2016-10-05 10:19:52 +02:00
Andreas Haas
f81d009525
Add inline ColorPicker to Script text editor.
...
Adds an option to the script editor context menu that lets you open
a ColorPicker in order to easily edit `Color()` constructors.
To do this, right click on the word `Color` and select `Pick Color`.
A side effect of this change is that the script editor now has its own
context menu instead of re-using the one from TextEdit.
It's now possible to indent left/right and to toggle comments via this menu.
I also felt free to make it more context-sensitive than before:
Now "Cut" and "Copy" will only be shown if text has actually been selected.
I also added default shortcuts for indent left/right. (alt + left/right)
Closes #6232
2016-09-29 09:12:45 +02:00
Andreas Haas
9c71e5a9df
Fix ability to cut/paste text in LineEdit/TextEdit in readonly mode.
...
Fixes #6466
2016-09-19 14:17:48 +02:00
Juan Linietsky
37f1e86108
Do ctrl-click on any code identifier to go to definiton or help page.
2016-09-12 10:53:31 -03:00
Juan Linietsky
95eb7466df
-Added a ColorFrame control, kind of like Texture but for color.
...
-Added dropping nodes to text editor for them to become a path
-Fixed issues with font not properly being set in code editor
2016-09-11 11:28:01 -03:00
Ignacio Etcheverry
e9f9e00bd9
Confirm code completion with numpad key ENTER
2016-08-12 13:37:10 +02:00
Paulb23
740dea7de7
Exposed enable syntax highlighting to properties
2016-07-28 15:47:47 +01:00
Rémi Verschelde
ebefdaa598
Merge pull request #5737 from neikeq/pr-issue-5269
...
TextEdit: Scroll search results to the center
2016-07-23 22:54:32 +02:00
Ignacio Etcheverry
fc16954fa2
TextEdit: Center search results
2016-07-21 03:40:08 +02:00
Paulb23
5505f0c776
Fixed caret width on tabs
2016-07-18 15:15:40 +01:00
Rémi Verschelde
62eae7cbe2
Merge pull request #5723 from Paulb23/toggle_breakpoint_gutter_issue_5712
...
Fixed toggle breakpoint gutter not updating when the game is running, issue 5712
2016-07-18 00:52:36 +02:00
Paulb23
b550471a14
Fixed breakpoint gutter toggle not updating when game is running, issue 5712
2016-07-15 15:02:55 +01:00
Paulb23
54f720ac06
Added block caret to TextEdit
2016-07-12 16:07:17 +01:00
Paulb23
28356a7d63
Expose highlight all occurrences
2016-07-11 15:20:01 +01:00
Paulb23
21385d9ecb
Expose show line numbers
2016-07-11 15:11:35 +01:00
Paulb23
a9956be63d
Added completion font colors
2016-07-11 14:25:56 +01:00
Paulb23
d43adcbb1e
Fixed highlight all occurrences highlighing highlighted section
2016-07-10 16:10:54 +01:00
Rémi Verschelde
454b210242
Remove unused variables (third pass) + dead code
...
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
2016-07-07 23:16:21 +02:00
George Marques
55b8a353f5
Fix completion string check when column = 0
2016-07-03 18:49:58 -03:00
George Marques
ec18b97f5c
Stop completion when the match is perfect
...
to avoid the completion insisting showing up after a completion.
2016-07-03 11:34:23 -03:00
George Marques
805b668d7f
Fix code completion sorting
2016-07-03 11:32:30 -03:00
Rémi Verschelde
da2f7e3c38
Merge pull request #5419 from djrm/shortcuts
...
Shortcuts for script switching in script Mode
2016-06-30 08:04:26 +02:00
Rémi Verschelde
fcf6977610
Merge pull request #5487 from Paulb23/function_highlighting_issue_5454
...
Fixed function highlighting with spaces
2016-06-30 07:57:31 +02:00
Paulb23
484f4d8dec
Fixed function highlighting with spaces
2016-06-29 15:29:22 +01:00
Paulb23
7f98f37f13
Fixed selected text turning black, issue 5199
2016-06-26 16:38:16 +01:00
Daniel J. Ramirez
8f259ff5ca
Shortcuts for script switching in script Mode
2016-06-26 10:21:02 -05:00
Ignacio Etcheverry
f1e7552722
Fix weird deselection behaviour with text field
...
- TextEdit will now deselect if Ctrl+Left/Right is pressed
- TextEdit and LineEdit no longer deselect text when Alt is pressed (except with Apple style keys)
2016-06-24 14:26:40 +02:00
Rémi Verschelde
87cb3629f2
Merge pull request #5344 from Paulb23/code_completion_colors
...
Code completion box colors
2016-06-22 07:51:33 +02:00
Paulb23
45f0dec55c
Added code completion existing color setting
2016-06-21 17:34:38 +01:00
Paulb23
706895a922
Added code completion selected color setting
2016-06-21 17:21:55 +01:00
Paulb23
a40cb680ca
Added code completion background color setting
2016-06-21 16:50:31 +01:00
Paulb23
8f6b56cfda
Fixed caret not drawing on focus regain
2016-06-20 20:29:58 +01:00
Rémi Verschelde
3668768463
Merge pull request #5196 from vnen/similarity-code-completion
...
Improve code completion search
2016-06-20 13:37:24 +02:00
Paulb23
8cbd0b9ae3
Text Edit no longer draws caret on focus loss
2016-06-19 16:11:16 +01:00
George Marques
66e7ddb55b
Improve code completion search
...
- List completion by subsequence match.
- Case insensitive.
- Sort completion list by similarity.
2016-06-19 11:43:47 -03:00
George Marques
831ae2d510
Fix TextEdit cursor position after undo remove text
...
It was going to where the text started, now it goes to where the text
ends.
2016-06-19 11:43:47 -03:00
Ignacio Etcheverry
bc9f9b1c6a
TextEdit: Change font size with Ctrl+Mouse Wheel Up/Down
2016-06-18 18:47:11 +02:00
Juan Linietsky
333de40180
does not fix the bug reported in #4326 and #4818 ,
...
but at least make sure it throws and error and does not crash
2016-06-14 08:57:00 -03:00
marcelofg55
3787856563
Fixed overloaded virtual functions with const vs none warning
2016-06-12 13:31:22 -03:00
Paulb23
e260e3872c
Caret blink no longer updates when hidden, issue 5100
2016-06-08 14:02:39 +01:00
Paulb23
d66b034bd1
Improved breakpoint marker position, and scales with font size
2016-06-07 16:59:16 +01:00
Rémi Verschelde
9418b81c74
Merge pull request #4916 from Paulb23/current_line_highlighting
...
Current line highlighting draws behind line numbers and breakpont gutter
2016-05-31 07:35:27 +02:00
Ignacio Etcheverry
7e4c58c563
Fixed and improved search bar
...
- Search no longer selects the results
- Return focus to the text editor when hiding the bar
- Fix connecting to invalid signal
- Update/redraw the text editor after searching
2016-05-30 18:15:41 +02:00
Paulb23
6ae126ef9b
Current line draws behind line numbers and breakpont gutter
2016-05-30 16:28:31 +01:00
Rémi Verschelde
e8d5ff5169
Merge pull request #4823 from Paulb23/fix_backspace_selection_redo_crash
...
Fix crash when redoing backspace to clear selection
2016-05-29 18:34:31 +02:00
Rémi Verschelde
d3b46b6bf2
Merge pull request #4822 from Paulb23/breakpoint_marker_issue_4750
...
Added breakpoint markers, issue 4750
2016-05-29 18:34:13 +02:00
Rémi Verschelde
6a7530c718
Merge pull request #4812 from neikeq/pr-search-bar
...
ScriptEditor/ShaderEditor: Replace find/replace dialog with a bar
2016-05-29 18:32:06 +02:00
Juan Linietsky
3e8eb396d7
Finalized DynamicFont implementation
...
-DynamicFont uses Freetype by default
-Editor fonts are now scalable thanks to this
-Cleaned up documentation browser and added fonts for this
2016-05-29 11:37:52 -03:00
Ignacio Etcheverry
51be9beec9
ScriptEditor/ShaderEditor: Replace find/replace dialog with a bar
2016-05-29 14:26:19 +02:00
Ignacio Etcheverry
aba972238e
TextEdit: Improve search method to avoid overlapping results
2016-05-28 18:23:49 +02:00
Ignacio Etcheverry
65fa8f91ca
TextEdit: Avoid capturing KEY_ESCAPE when there is no completion hint
2016-05-28 18:22:54 +02:00
Paulb23
4a5997ec1c
Fix crash when redoing backspace to clear selection
2016-05-26 14:45:11 +01:00
Paulb23
72fda444d1
Added breakpoint markers, issue 4750
2016-05-26 14:17:14 +01:00
Rémi Verschelde
02f3e7e766
Merge pull request #4659 from Paulb23/hex_notation_highlighting
...
Fixed hex notation highlighting
2016-05-17 09:33:44 +02:00
Juan Linietsky
f93aaa9b78
Default editing popup for LineEdit and TextEdit
2016-05-16 20:25:17 -03:00
Paulb23
b2bf266ddc
Fixed hex notation highlighting
2016-05-15 01:32:43 +01:00
Paulb23
dc90cba42e
Bind caret blink to gdscript and properties
2016-05-11 17:41:57 +01:00
Paulb23
e03e7deb1b
Added caret blink in text editor
2016-05-09 19:22:11 +01:00
Paulb23
9e6234201b
Fixed autocomlete strings not appearing for function arguments
2016-05-08 13:18:50 +01:00
Rémi Verschelde
59e68ae6d0
Merge pull request #4557 from Paulb23/autocomplete_truncate_issue_4554
...
Fixed autocomplete truncate, issue 4554
2016-05-07 20:19:40 +02:00
Paulb23
0a2b341d0a
Fixed code completion after opening bracket, issue 3977
2016-05-07 12:01:56 +01:00
Paulb23
accc2a195b
Fixed autocomplete truncate, issue 4554
2016-05-05 16:27:05 +01:00
Paulb23
084d0bef96
Autocomplete no longer shows duplicates, issue 1824
2016-05-03 19:48:35 +01:00
Paulb23
54244e0e1d
Added scroll lines, issue 4243
2016-04-27 18:32:14 +01:00
Paulb23
8c328474f2
Setting to change line number color
2016-04-08 20:11:16 +01:00
Rémi Verschelde
3e3f16fefc
Merge pull request #4251 from Paulb23/block_indent_issue_3803
...
Fixed block indent inconsistency, issue #3803
2016-04-06 19:39:07 +02:00
Paulb23
93700676b5
Fixed block indent inconsistency, fixes issue 3803
2016-04-06 17:46:10 +01:00
Rémi Verschelde
44446cf58b
Merge pull request #4238 from Paulb23/caret_color
...
Ability to change the caret color
2016-04-06 18:42:32 +02:00
Rémi Verschelde
d6871ee847
Merge pull request #4234 from Paulb23/member_variable_syntax_highlighting
...
Member variable syntax highlighting
2016-04-06 18:42:13 +02:00
Paul Batty
646e089782
Fixed text edit undo and redo operation interaction
2016-04-06 08:36:29 +02:00
Paulb23
c7519f091d
Ability to change the caret color
2016-04-05 17:06:56 +01:00
Paulb23
fc9f9adcb2
Member variable syntax highlighting
2016-04-05 15:50:54 +01:00
Paulb23
971c3be52d
Fixed 'complex' typo in method name
2016-04-05 14:30:00 +01:00
Paulb23
15f43149e1
Fixed undoing twice when removing selection
2016-04-05 13:52:18 +01:00
Paulb23
a984adb5a6
Fixed insert mode interaction with auto complete
2016-04-03 15:21:16 +01:00
Paulb23
fe779d4386
Fixed insert mode removing first unselected character
2016-04-03 14:54:54 +01:00
Paul Batty
50aa78210c
Function syntax highlighting
2016-04-02 21:46:42 +02:00
Paulb23
2b57cb94da
Added insert mode to text editor
2016-04-01 13:48:38 +01:00
Paulb23
cd07badee3
Fixed numbers not highlighting after space
2016-03-26 22:03:27 +00:00
Paulb23
c844c2d604
Syntax highlighting for numbers
2016-03-21 15:45:38 +00:00
Ignacio Etcheverry
abb720438f
TextEdit: Fix Shift+Delete shortcut not calling cut()
2016-03-19 13:22:44 +01:00
Paulb23
9c0e1524e5
Fixed highlighting when word occurs as substring first
2016-03-17 20:35:04 +00:00
Paulb23
4cc3fbeaff
Fixed highliting with shift and mouse
2016-03-17 19:37:19 +00:00
Paulb23
b0488cacf2
Highlight all occurrences of selected word
2016-03-16 21:20:42 +00:00
Ignacio Etcheverry
fac027cb14
LineEdit/TextEdit: Add Shift+Delete shortcut for cut
2016-03-15 13:03:38 +01:00
Ignacio Etcheverry
4dfd0c1863
TextEdit: Fix inconsistent copy, cut and paste behaviour
2016-03-15 13:02:38 +01:00
Rémi Verschelde
c30bebd1d3
Merge pull request #4017 from Paulb23/set_tab_size
...
Added configurable tab size in the text editor.
2016-03-14 17:12:15 +01:00
Paulb23
9234bd3ff9
Added configuable tab size
2016-03-14 15:13:45 +00:00
Saracen
b2e471fd7c
Undo and redo commands on text editor now affect internal version which fixes inconsistent file saving validation.
2016-03-13 20:08:12 +00:00
Hubert Jarosz
4a4f247914
remove trailing whitespace
2016-03-09 00:00:52 +01:00
Juan Linietsky
9157a13aef
Merge pull request #3969 from Paulb23/scroll_past_end_of_file
...
Enabled scrolling past end of file in text editor.
2016-03-08 15:34:21 -03:00
Paulb23
f19eea2f2d
Enabled scrolling past end of file
2016-03-07 02:32:51 +00:00
Martin Chuckeles
bd7f2590f1
Add special new line opening
2016-03-04 20:10:31 +01:00
Martin Chuckeles
47206b409d
Add editor settings for call hint placement
...
Added settings: text_editor/put_callhint_tooltip_below_current_line
and text_editor/callhint_tooltip_offset
2016-03-04 12:10:15 +01:00
Martin Chuckeles
26cc14e839
Hide hint if completion is active
2016-03-03 20:31:25 +01:00
Martin Chuckeles
03025f60b6
Move the call hint under the current line
2016-03-03 20:26:50 +01:00
hondres
df4faf8f33
support horizontal mouse wheel, use in text editor
2016-02-04 17:16:22 +01:00
Rémi Verschelde
3ad263eafe
Merge pull request #3279 from neikeq/issue_3259
...
Fix TextEdit caret being drawn when outside the visible region
2016-01-08 17:42:02 +01:00
Ignacio Etcheverry
02d1ef8ca6
Fix TextEdit caret drawn when outside the visible region
2016-01-08 17:33:42 +01:00
Ignacio Etcheverry
6541f6418e
TextEdit/LineEdit: Handle numpad PageUp, PageDown, Home and End
2016-01-07 22:59:23 +01:00
Ignacio Etcheverry
a825cfd932
TextEdit/LineEdit: Handle numpad arrows if NumLock is disabled
2016-01-07 21:51:47 +01:00
George Marques
5be9ff7b67
Update copyright to 2016 in headers
2016-01-01 11:50:53 -02:00
Rémi Verschelde
d4993b74fc
Add missing argument names in GDScript bindings
...
All classes were reviewed apart from VisualServer for which no argument name is documented at all.
While doing this review, I found quite a few bugs that were fixed either in earlier commits or this one (mostly documentation bugs though, i.e. some arguments were listed at the wrong place).
2015-12-28 02:13:05 +01:00
neikeq
5f739a2660
TextEdit: Scroll while selecting with mouse idle
2015-12-09 19:56:47 +01:00
koalefant
c93a005fb6
Script Editor: automatic indentation after a colon
2015-11-29 17:13:29 +01:00
Juan Linietsky
b6084a8a62
Merge pull request #2364 from neikeq/textedit_select
...
Some TextEdit selection improvements
2015-11-19 00:30:39 -03:00
Franklin Sobrinho
222d112f49
Implement Ctrl + backspace/delete to delete words
2015-11-12 13:35:48 -03:00
neikeq
b70e2b754d
TextEdit: Properly scroll vertically when selecting text with mouse drag
2015-11-07 16:04:32 +01:00
Juan Linietsky
63033aa646
Merge branch 'master' of https://github.com/okamstudio/godot
2015-10-17 10:30:08 -03:00
Juan Linietsky
ab22203791
misc cleanup
2015-10-17 10:29:54 -03:00
firefly2442
692216b86a
ran cppcheck, fixed cases where array index is used before limits check
2015-10-12 09:45:44 -05:00
Franklin Sobrinho
26a715298e
Fix HScrollBar of TextEdit, closes #2355
2015-09-09 13:44:31 -03:00
neikeq
51fa997cb5
textedit selection improvements
...
allows using shift and pointer selection together, and selecting text while scrolling.
tried to make it as similar as possible to most editors.
2015-08-13 00:34:07 +02:00
Juan Linietsky
2b64f73b04
more code completion improvements
...
-calltip dissapears with more types of keypresses or when pressing ')'
-properly looks into autoloaded scripts or nodes with another script for
script functions/variables/etc.
2015-06-27 15:52:39 -03:00
Juan Linietsky
a67486a39e
improved get_node(), connect(), etc code completion.
...
-properly completes text arguments
-includes the "/root" autoloads
2015-06-26 01:14:49 -03:00
Juan Linietsky
b524b40fdc
-fixed many memory initialization issues
...
-fixed deadlock on previews thread
-fixed compilation errors on unix
2015-06-06 22:06:58 -03:00
Juan Linietsky
fec6aaffd8
more fixes
...
fix ctrl-a for some cases, mentioned in #1704
fix toggling visibility not updating, fixes #1923
2015-05-19 23:07:11 -03:00
ehriche
897a1aade5
optional formal changes
2015-05-06 01:22:31 +02:00
Juan Linietsky
74b0e0c296
fix crash in editor when using alt+arrows to indent, thanks adolson and romulox_x
2015-05-05 00:17:22 -03:00
Juan Linietsky
dce8a6c251
Merge pull request #1804 from ricpelo/ricpelo-patch-2
...
Wrong use of | instead of ||
2015-05-04 21:49:12 -03:00
Ricardo Pérez
f3542ff838
Wrong use of | instead of ||
2015-05-04 19:54:17 +02:00
Biliogadafr
8e7973d660
Triple click doesn't select line if click was done on different lines. Fix #1727
2015-05-02 00:03:49 +03:00
Juan Linietsky
4804462ee0
-Fixes from source code analyzizer, closes #1768
2015-05-01 10:44:08 -03:00
Juan Linietsky
70752f3e4b
-oops, duplicated text issue fix..
2015-04-20 20:51:52 -03:00
Juan Linietsky
389d6ca0c7
disable undo properly after ctrl-i, fixes #1688
2015-04-18 16:57:01 -03:00
Juan Linietsky
4661a6e126
-try to avoid errors when path using ".." is present in script include, fixes #1703
2015-04-18 16:17:33 -03:00
Juan Linietsky
fdaa2920eb
Updated copyright year in all headers
2015-04-18 14:38:54 -03:00
Juan Linietsky
ffa556aeea
Merge pull request #1402 from ElectricSolstice/editor_match_fix
...
Fixed issue #1377 about script editor parenthesis matching.
2015-03-22 15:02:15 -03:00
Juan Linietsky
53e1694e1e
New option to send canvas to render buffer
...
allows to use 3D environment effects for post processing such as Glow,
Bloom, HDR, etc. in 2D.
2015-03-16 01:14:59 -03:00
ElectricSolstice
11a5949ec4
Fixed issue 1377 about script editor parenthesis matching.
2015-02-19 16:34:04 -08:00
marynate
3a0f665c90
Total rows of text edit was calculated wrong, fixed issue #842
2015-01-13 17:16:56 +08:00
Juan Linietsky
1ff0d5c4e5
-attempt to be friendlier on non english keyboards
2015-01-04 22:39:21 -03:00
Juan Linietsky
a8bcb96ad4
-Fix shortcuts for OSX code completion, fixes #1111
...
-Fixed how translation fallbacks works, fixes #1011
2015-01-04 11:03:31 -03:00
Juan Linietsky
6b5b95bb4e
-added new code completion guess locations, closes #1032
...
-moved commandline fix to mingw-only, should fix #1064
2015-01-03 13:03:13 -03:00
Juan Linietsky
8a28af024e
-fix TextEdit shift-click functionality past begin and end of selection ( #1004 )
2015-01-02 15:08:40 -03:00
Juan Linietsky
d88e192ae4
-fix readonly issues ( #1018 )
2015-01-02 14:27:21 -03:00
Juan Linietsky
9783f6fc96
Merge branch 'master' of https://github.com/okamstudio/godot
2014-12-20 12:32:32 -03:00
Juan Linietsky
9f5bbfc322
-improved completion options for InputEvent, shows all event types now
2014-12-18 00:56:33 -03:00
Dana Olson
1a6628f5a3
change shortcut for toggle-comment to Ctrl+K
2014-12-17 15:57:39 -05:00
Juan Linietsky
c8b2a5f64a
-added brace matching to go with the new code completion
2014-12-17 01:53:34 -03:00
Juan Linietsky
bcf27feb98
New Code Completion
...
-=-=-=-=-=-=-=-=-=-
-Massive improvement to code completion
-Argument hinting for functions
If you manage to out-smart the code-completion in a situation where completion
should be possible to guess, let me know.
Please enter the commit message for your changes. Lines starting
2014-12-16 22:31:57 -03:00
Juan Linietsky
10b371516b
More Fixes
...
-=-=-=-=-=
-Bug in saving multinline text in xml fixed. #925
-typo in android export fixed. #930
2014-12-07 11:33:57 -03:00
Dana Olson
380f12def2
now undo/redo supported
2014-12-07 02:21:49 -05:00
Dana Olson
05801b9265
apply patch #882 from dcubix
2014-12-07 01:07:00 -05:00
Dana Olson
7d8e34c284
allow Alt+arrow keys to pass through editor
2014-11-13 00:38:26 -05:00
Diego Lopes
e2ba6ecf57
Editor goodies update
2014-11-12 11:39:21 -03:00
Juan Linietsky
0dbedd18fc
SceneMainLoop -> SceneTree
...
-=-=-=-=-=-=-=-=-=-=-=-=-=-
*YOUR SOURCE MIGHT NOT WORK*
For mor information on fix:
https://github.com/okamstudio/godot/wiki/devel_scene_tree
Other stuff:
-Shower of bullets demo
-Fixes all around
2014-11-05 21:20:42 -03:00
Juan Linietsky
048fdc8aea
-variables with export in script are now IMMEDIATELY AND ALWAYS visible in properties ( #718 )
...
-WorldEnvironment cleanup issues fixed (#563 )
-Text Editor improvement to shift-mouse selection (#648 )
-(Hopefully) fixed rare (but horrible) indexing bug in GDScript compiler (#652 )
-Some changes to PhysicsBody API, renamed property "active" to "sleeping", which makes more sense
-Added add_collision_exception() API in PhysicsBody (more accessible)
-ability to select and copy in the output messages panel
2014-09-22 00:50:48 -03:00
Juan Linietsky
11a5ed508b
Fixed too many little issues, check the issues closed today.
2014-09-21 01:43:42 -03:00
Juan Linietsky
549d344f0f
Fixing Issues...
...
- #672 (default user:// in $HOME/.godot/app_userdata (linux/osx) and $APPDATA/Godot/app_userdata (Windows)
- #676 (draw both tiles and octants in order from top to bottom, left to right )
- #686 (unicode escape sequences work now)
- #702 (was not a bug, but a test was added to see if bodies went too far away)
2014-09-19 18:39:50 -03:00
Juan Linietsky
678948068b
Small Issues & Maintenance
...
-=-=-=-=-=-=-=-=-=-=-=-=-=
-Begin work on Navigation Meshes (simple pathfinding for now, will improve soon)
-More doc on theme overriding
-Upgraded OpenSSL to version without bugs
-Misc bugfixes
2014-08-01 22:10:38 -03:00
marynate
3164784ca3
Fix script editor scrollbar disappear issue
2014-05-21 01:07:47 +08:00
jonyrock
6c9203fdaf
remove degud output
2014-05-07 15:42:55 +04:00
jonyrock
0121d96288
call during autocompletion
2014-05-07 15:38:07 +04:00
marynate
0771020c83
Add auto code completion (without press Ctrl+Space manually)
...
Disalbe auto code completion even there's only one option
Hide auto-completion if only one completion option and it's been typed
Support use tab key to accept code completion option
2014-05-06 21:06:03 +08:00
marynate
212b8b2a03
Add get_word_under_cursor() method to TextEdit
2014-05-06 19:21:21 +08:00
jonyrock
bb853d121e
EDITOR_DEF in the right place
2014-04-30 20:21:58 +04:00
jonyrock
2c683b0f99
#331 settings menu option title fix oops
2014-04-28 13:31:58 +04:00
jonyrock
a93ad6e321
#331 settings menu option title fix
2014-04-28 13:16:49 +04:00
jonyrock
a5384bc07b
pair symbols tool basic imp
2014-04-27 14:34:37 +04:00
jonyrock
a5e331c66f
#298 imp
2014-04-26 16:42:19 +04:00
jonyrock
a49527540f
text cursor in text editor & const in Rect2i
2014-04-17 15:30:40 +04:00
jonyrock
89568b9017
home button like & whitespace
2014-04-10 19:57:20 +04:00
sanikoyes
51429bd8d6
fix android can't input unicode characters
...
fix hide soft keyboard by press 'back' button,
then click current focus text edit/line edit control,
soft keyboard won't show again
add features:
press enter key with line edit control will hide soft keyboard
2014-03-13 16:58:03 +08:00
Juan Linietsky
0b806ee0fc
GODOT IS OPEN SOURCE
2014-02-09 22:10:30 -03:00