summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* GDScript: Allow constant expressions in annotationsDanil Alexeev2023-01-251-2/+4
|
* Fix script editor drag and dropkobewi2023-01-221-1/+1
|
* Remove set_drag_forwarding_compat()kobewi2023-01-141-9/+1
|
* Change set_drag_forwarding() to use callables.Juan Linietsky2023-01-101-1/+1
| | | | | | | | * This solution is much cleaner than the one in 3.x thanks to the use of callables. * Works without issues in any language (no need to worry about camel or snake case). * Editor code uses a compatibility function (too much work to redo). Fixes #59899
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Fix various fringe issues with multi-carets and selectionsVolTer2022-12-071-60/+41
|
* Use forward-declarations in big editor classestrollodel2022-11-291-0/+1
|
* Double precision of `String.split_floats`Micky2022-11-201-1/+1
|
* Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde2022-10-311-4/+4
|\ | | | | | | Unify usage of GLOBAL/EDITOR_GET
| * Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-4/+4
| |
* | Set the shortcut context for the edit/search/goto menus to the ScriptEditor ↵Eric M2022-10-251-1/+10
| | | | | | | | so that shortcuts continue to work when FindReplaceBar is focused.
* | Merge pull request #67314 from anvilfolk/quote-fixMax Hilbrunner2022-10-211-7/+24
|\ \ | |/ |/| Fix single-quotes incorrectly escaped when dragging into script editor
| * Fix single-quotes incorrectly escaped when dragging into script editorJoão Martins2022-10-171-7/+24
| |
* | Reorganize script editor menukobewi2022-10-141-38/+57
|/
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-13/+13
| | | | change warnings=all to use /W4.
* Merge pull request #61902 from Paulb23/multi-caretRémi Verschelde2022-10-061-9/+18
|\ | | | | | | Add Multi-caret support to TextEdit
| * Add multi caret support to EditorPaulb232022-10-051-9/+18
| |
* | Merge pull request #66300 from KoBeWi/📝🧭Rémi Verschelde2022-10-051-0/+4
|\ \ | |/ |/| | | Split script navigation state and edit state
| * Split script navigation state and edit statekobewi2022-09-251-0/+4
| |
* | Fix the flickering of the line gutter icon when savingRindbee2022-10-031-0/+1
| |
* | Merge pull request #66632 from RedMser/script-override-gutter-docs-fixRémi Verschelde2022-09-301-6/+14
|\ \ | | | | | | | | | Fix wrong docs opening in script override gutter
| * | Fix wrong docs opening in script override gutterRedMser2022-09-301-6/+14
| | |
* | | Rename Indent Left/Right to Indent/DedentVolTer2022-09-291-12/+10
|/ /
* | Merge pull request #66382 from MewPurPur/replace-in-files-foreverRémi Verschelde2022-09-261-1/+1
|\ \ | |/ |/| | | Make Replace in Files always visible in Search
| * Make Replace in Files always visible in SearchVolTer2022-09-251-1/+1
| |
* | Merge pull request #65535 from RedMser/script-editor-inheritance-iconRémi Verschelde2022-09-251-11/+86
|\ \ | | | | | | | | | Show override icon in script editor gutter
| * | Show method override icon in script editor gutterRedMser2022-09-211-11/+86
| |/ | | | | | | | | | | Combines with the connection slot icon when both apply. Can be clicked to jump to the method declaration (or documentation for built-in classes).
* | Fix checking if script is attached to any node belonging to scenekleonc2022-09-211-8/+9
| |
* | Fix crash with drag and dropping nodesVolTer2022-09-211-1/+6
|/
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-26/+26
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Disable logic that triggers automatic focus gain as the Godot Editor is loadedFredia Huya-Kouadio2022-09-051-0/+2
| | | | For the Godot Android Editor, this is an inconvenience as it causes the soft keyboard to show and block half of the view
* Merge pull request #64377 from Mickeon/rename-canvas-redrawRémi Verschelde2022-08-301-4/+4
|\ | | | | Rename `CanvasItem.update()` to `queue_redraw()`
| * Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-4/+4
| | | | | | | | | | | | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* | Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev2022-08-301-1/+1
| |
* | Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-1/+1
|/
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-4/+5
|
* Replace Array return types with TypedArraykobewi2022-08-221-6/+6
|
* Remove Signal connect bindsJuan Linietsky2022-07-291-2/+2
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Color Pickers Respect SettingsGuh-Feng2022-07-211-7/+1
| | | | Updated editor_node with function that sets up color pickers throughout Godot to respect editor's settings.
* Merge pull request #63195 from Rindbee/fix-wrong-clear-edit-menuRémi Verschelde2022-07-191-1/+3
|\
| * Fix incorrectly clearing edit menuRindbee2022-07-191-1/+3
| | | | | | | | Delete only if `editor_enabled` is true, otherwise destructor may delete it repeatedly.
* | Rename Control PRESET_WIDE to PRESET_FULL_RECTFireForge2022-07-181-2/+2
|/
* Merge pull request #62075 from Vitika9/gsoc-colorpickerRémi Verschelde2022-07-081-5/+1
|\
| * ColorPicker RefactorVitika92022-07-061-5/+1
| |
* | Add support for documenting built-in annotationsYuri Sizov2022-07-041-0/+3
| |
* | Add a const call mode to Object, Variant and Script.K. S. Ernest (iFire) Lee2022-06-271-1/+1
|/ | | | | | | For this to work safely (user not call queue_free or something in the expression), a const call mode was added to Object and Variant (and optionally Script). This mode ensures only const functions can be called, making it safe to use from the editor. Co-Authored-By: reduz <reduzio@gmail.com>
* Merge pull request #61440 from vnen/gdscript-scene-unique-nodesRémi Verschelde2022-05-311-5/+10
|\ | | | | GDScript: Support `%` in shorthand for `get_node`
| * GDScript: Support `%` in shorthand for `get_node`George Marques2022-05-271-5/+10
| | | | | | | | | | | | The `%` is used in scene unique nodes. Now `%` can also be used instead of `$` for the shorthand, besides being allowed generally anywhere in the path as the prefix for a node name.
* | Ensure focus when dropping to script editorArne Stenkrona2022-05-281-0/+4
|/ | | | | | | | | | This improves usability by making sure actions subsequent to drop are performed within the script editor. For example, dropping a node from the scene tree to the script editor and attempting undo will now undo the drop instead of performing an undo in the scene tree. Fixes issue #61465