summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup unused engine code v2kobewi2023-01-191-6/+0
|
* Merge pull request #71628 from reduz/fixup-editor-file-system-script-parsingRémi Verschelde2023-01-191-1/+2
|\ | | | | | | Clean up EditorFileSystem script parsing
| * Clean up EditorFileSystem script parsingJuan Linietsky2023-01-181-1/+2
| | | | | | | | | | * Optimize only update modified/added/removed files. * Clean up documentation parsing.
* | Merge pull request #71379 from KoBeWi/destruction_of_compatibility_functionRémi Verschelde2023-01-181-5/+1
|\ \ | |/ |/| Remove set_drag_forwarding_compat()
| * Remove set_drag_forwarding_compat()kobewi2023-01-141-5/+1
| |
* | Checking path variable if empty before opening external editor to fix #71528Christoh Prenissl2023-01-171-4/+7
| |
* | Save history when goto script line in the text editor.Adam Scott2023-01-151-0/+2
| |
* | Globalise path for New TextFile in FileSystemDockPaulb232023-01-141-2/+2
|/
* 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
* Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky2023-01-091-17/+14
| | | | | | | | | | | | | | | | * Remove unused `EditorPropertyMember` and related hints, previouly used by VisualScript. Such logic should be implemented in the VS module itself. * As the above broke compatibility with the VS module, clean up the other hacks that were still in core in support of VisualScript. * `PROPERTY_USAGE_INTERNATIONALIZED` was only used in Object's `get_translatable_strings()`, which is a legacy function not used anywhere. So both are removed. * Reordered some usage flags after the above removal to minimize the diff. * General clean up. Fixes #30203. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Merge pull request #70580 from timothyqiu/drop-externRémi Verschelde2023-01-091-4/+7
|\ | | | | | | Fix error when dropping script into script editor
| * Fix error when dropping script into script editorHaoyu Qiu2022-12-261-4/+7
| |
* | 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 Editor Shortcut keys are inserting in Script EditorstmSi2022-12-241-0/+4
|/
* Use forward-declarations in big editor classestrollodel2022-11-291-0/+2
|
* Fix reload scripts error after saving in external editor.Zae2022-11-031-1/+1
|
* Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde2022-10-311-31/+31
|\ | | | | | | Unify usage of GLOBAL/EDITOR_GET
| * Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-31/+31
| |
* | Merge pull request #67588 from KoBeWi/if(!GDVIRTUAL_CALL)don'tRémi Verschelde2022-10-311-9/+5
|\ \ | | | | | | | | | Simplify GDVIRTUAL_CALL calls
| * | Simplify GDVIRTUAL_CALL callskobewi2022-10-191-9/+5
| |/
* / Set the shortcut context for the edit/search/goto menus to the ScriptEditor ↵Eric M2022-10-251-4/+4
|/ | | | so that shortcuts continue to work when FindReplaceBar is focused.
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-109/+109
| | | | change warnings=all to use /W4.
* Merge pull request #66300 from KoBeWi/📝🧭Rémi Verschelde2022-10-051-7/+8
|\ | | | | | | Split script navigation state and edit state
| * Split script navigation state and edit statekobewi2022-09-251-7/+8
| |
* | Implement `GDScriptTextDocument::willSaveWaitUntil` to clean up outdated ↵Rindbee2022-10-041-45/+35
| | | | | | | | | | | | | | documents before saving Implement `GDScriptTextDocument::willSaveWaitUntil` to clean up outdated documents before saving, then update the document in `GDScriptTextDocument::didSave`.
* | Merge pull request #66815 from Rindbee/fix-blinking-line-gutter-iconRémi Verschelde2022-10-031-12/+0
|\ \ | | | | | | | | | Fix the flickering of the line gutter icon when saving
| * | Fix the flickering of the line gutter icon when savingRindbee2022-10-031-12/+0
| | |
* | | Fix the file newer dialog that keeps popping upRindbee2022-10-031-1/+1
|/ / | | | | | | | | | | | | The focus is switching back and forth between the popup dialog and the editor window, causing an infinite loop. Fix #65824.
* | Merge pull request #65276 from aaronfranke/shaderRémi Verschelde2022-10-031-0/+1
|\ \ | | | | | | | | | Separate TextShaderEditor and ShaderEditorPlugin into different files
| * | Separate TextShaderEditor and ShaderEditorPlugin into different filesAaron Franke2022-10-021-0/+1
| | |
* | | Remember scripts panel's visibility stateMichael Alexsander2022-10-011-0/+2
|/ /
* | Merge pull request #66382 from MewPurPur/replace-in-files-foreverRémi Verschelde2022-09-261-0/+2
|\ \ | | | | | | | | | Make Replace in Files always visible in Search
| * | Make Replace in Files always visible in SearchVolTer2022-09-251-0/+2
| | |
* | | Merge pull request #66405 from Rindbee/fix-gd-not-sync-via-lspRémi Verschelde2022-09-261-21/+24
|\ \ \ | |_|/ |/| | | | | Fix out of sync when the script is edited externally via lsp
| * | Fix out of sync when the script is edited externally via lspRindbee2022-09-251-21/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, external editing via lsp would modify the modified time of the script, which caused the internal display of the script to not be refreshed when refocusing the engine. Now saving the script externally via lsp will automatically refresh the internal display.
* | | Merge pull request #65535 from RedMser/script-editor-inheritance-iconRémi Verschelde2022-09-251-0/+2
|\ \ \ | |/ / |/| | | | | Show override icon in script editor gutter
| * | Show method override icon in script editor gutterRedMser2022-09-211-0/+2
| |/ | | | | | | | | | | Combines with the connection slot icon when both apply. Can be clicked to jump to the method declaration (or documentation for built-in classes).
* | Merge pull request #63576 from KoBeWi/list_clickerRémi Verschelde2022-09-211-20/+9
|\ \ | |/ |/| | | Simplify script list click logic
| * Simplify script list click logickobewi2022-08-301-20/+9
| |
* | Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-14/+14
| | | | | | | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* | Merge pull request #65449 from ↵Rémi Verschelde2022-09-071-1/+1
|\ \ | | | | | | | | | | | | | | | YuriSizov/editor-main-control-screen-container-node Rename `EditorInterface.get_editor_main_control` to `get_editor_main_screen`
| * | Rename EditorInterface.get_editor_main_control to get_editor_main_screenYuri Sizov2022-09-071-1/+1
| | |
* | | Rename CONNECT_ONESHOT TO CONNECT_ONE_SHOTMicky2022-09-061-1/+1
|/ / | | | | | | For consistency. Every other exposed `one_shot` is spaced out like this.
* / VCS: Port Godot 3.5's VCS features to GDExtensionTwarit Waikar2022-08-311-46/+46
|/
* Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-5/+5
|
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()`).
* Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde2022-08-281-5/+5
|\ | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter
| * Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-5/+5
| | | | | | | | | | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* | Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-5/+5
|/
* Remove VisualScript module for 4.0Rémi Verschelde2022-08-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | As announced in https://godotengine.org/article/godot-4-will-discontinue-visual-scripting, Godot maintainers have agreed to discontinue the current implementation of our VisualScript language. The way it had been designed was not user-friendly enough and we did not succeed in improving its usability to actually make it a good low-code solution for users who need one. So we prefer to remove it for Godot 4.0 and leave the door open for new, innovative ideas around visual scripting, to be developed as plugins or extensions now that Godot provides sufficient functionality for this (notably via GDExtension and the godot-cpp C++ bindings). The current module has been moved to a dedicated repository (with full Git history extracted with `git filter-branch`): https://github.com/godotengine/godot-visual-script It can still be compiled as a C++ module (for now, but will likely require work to be kept in sync with the engine repository), but our hope is that contributors will port it to GDExtension (which is quite compatibile with the existing C++ module code when using the godot-cpp C++ bindings).