summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #52479 from KoBeWi/the_close_of_all_tabsRémi Verschelde2021-09-201-23/+19
|\ | | | | Don't stop closing on unsaved script
| * Don't stop closing on unsaved scriptkobewi2021-09-071-23/+19
| |
* | Added status bar and toggle scripts panel button to EditorHelp/VScriptsYuri Roubinsky2021-09-151-6/+8
|/
* Merge pull request #51639 from Ev1lbl0w/gsoc21-dapFabio Alessandrelli2021-09-011-0/+26
|\ | | | | Implement more advanced features for DAP
| * Implemented advanced features of DAPEv1lbl0w2021-08-311-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Respect client "supportsVariableType" capability Implement "breakpointLocations" request Implement "restart" request Implement "evaluate" request Fix error messages not being shown, and improved wrong path message Removed thread option and behavior Implemented detailed inspection of complex variables Fix "const"ness of functions Added a configurable timeout for requests Implement Godot custom data request/event Implement syncing of breakpoints Added support for debugging native platforms
* | Use OrderedHashMap for autoloads to preserve orderLyuma2021-08-261-3/+3
| |
* | Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-3/+3
| | | | | | | | | | | | | | | | * `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
* | Replace BIND_VMETHOD by new GDVIRTUAL syntaxreduz2021-08-221-11/+8
| | | | | | | | | | | | | | | | | | | | | | * New syntax is type safe. * New syntax allows for type safe virtuals in native extensions. * New syntax permits extremely fast calling. Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`. These will require API rework on a separate PR as they work different than the rest of the functions. Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
* | Merge pull request #51627 from mhilbrunner/todo-for-neikeqRémi Verschelde2021-08-181-5/+1
|\ \
| * | Remove underscore hacksMax Hilbrunner2021-08-171-5/+1
| | | | | | | | | | | | | | | | | | Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
* | | Auto-reload scripts with external editorJihyun Yu2021-08-171-0/+3
|/ /
* | Reorganise text editor settingsPaulb232021-08-161-30/+30
| |
* | Improve naming of a couple shortcutsfox2021-08-101-2/+2
|/
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-8/+8
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-19/+17
|
* Optimize StringName usagereduz2021-07-181-28/+28
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* Merge pull request #49650 from KoBeWi/FindReplaceCrashRémi Verschelde2021-06-241-3/+13
|\ | | | | Fix crash with FindReplaceBar
| * Fix crash with FindReplaceBarkobewi2021-06-241-3/+13
| |
* | Use mouse and joypad enums instead of plain integersAaron Franke2021-06-201-1/+3
| | | | | | | | Also MIDIMessage
* | Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-3/+3
|/
* Consistently prefix bound virtual methods with _kobewi2021-06-121-4/+4
|
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-111-1/+1
| | | | | File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
* Merge pull request #49265 from KoBeWi/keepfreplace_2_keepers_of_replaceRémi Verschelde2021-06-091-1/+12
|\ | | | | Move FindReplaceBar out of CodeTextEditor
| * Move FindReplaceBar out of CodeTextEditorkobewi2021-06-081-1/+12
| |
* | Don't save built-in script when adding methodkobewi2021-06-061-1/+3
| |
* | Merge pull request #47336 from Calinou/rename-shader-file-extensionRémi Verschelde2021-06-041-1/+1
|\ \ | |/ |/| Rename the `.shader` file extension to `.gdshader`
| * Rename the `.shader` file extension to `.gdshader`Hugo Locurcio2021-03-241-1/+1
| | | | | | | | | | This lets third-party software recognize Godot shaders more easily, without relying on guesswork since the `.shader` extension is generic.
* | Fixed console error spam (about invalid edited scene index)Yuri Roubinsky2021-05-261-2/+4
| |
* | Updates script list colors after theme is changedYuri Roubinsky2021-05-201-0/+3
| |
* | Fix crash when trying to save with no scenes and scripts openHugo Locurcio2021-05-181-2/+1
| | | | | | | | | | This could occur when attempting to save project settings when no scenes or scripts are open (which is common in a brand new project).
* | Merge pull request #37796 from Gogsi/masterRémi Verschelde2021-05-181-1/+1
|\ \ | | | | | | Improve consistency in file order
| * | Change EditorFileSystem and ScriptEditor file sorting order to improve ↵Georgi Genkov2021-05-181-1/+1
| | | | | | | | | | | | | | | | | | consistency. Fixes #37721.
* | | Improve TreeItem API and allow to move nodestrollodel2021-05-171-2/+2
|/ /
* | Add get_base_editor to ScriptEditorBasesent442021-05-151-0/+2
| |
* | Save the current script when pressing Ctrl + S if no scene is openHugo Locurcio2021-05-091-56/+56
| | | | | | | | | | | | - Tweak the dialog messages to be more informative. - The "Saved N modified resources" dialog is not a warning per se, so make it more explicit.
* | Merge pull request #33577 from Calinou/highlight-control-flow-keywordsRémi Verschelde2021-05-071-1/+6
|\ \ | | | | | | Highlight control flow keywords with a different color
| * | Highlight control flow keywords with a different colorHugo Locurcio2021-05-051-1/+6
| | | | | | | | | | | | This makes them easier to distinguish from other keywords.
* | | Merge pull request #45607 from Calinou/improve-editor-themeRémi Verschelde2021-05-061-8/+1
|\ \ \ | | | | | | | | Improve the editor theme
| * | | Improve the editor themeHugo Locurcio2021-04-271-8/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | The editor theme now makes use of rounded corners and less borders to follow modern visual trends. The default theme's colors were also tweaked to make the blue hue more subtle (similar to the Arc theme, which was removed as a consequence). The Alien theme was replaced by a Breeze Dark theme, which should blend in well with the KDE theme.
* / / Save the current script when adding a new method via signal connectionHugo Locurcio2021-05-051-50/+58
|/ / | | | | | | | | | | | | | | | | This makes it possible for external editors to pick up the changes. Most modern editors should reload the file automatically, but some older/lightweight editors may ask the user instead (or only warn after trying to save in the external editor). This closes #41283.
* / Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+2
|/
* Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-2/+2
|
* Don't save unchanged script upon closingkobewi2021-03-061-6/+6
|
* Improve resource load cachereduz2021-02-111-1/+1
| | | | | | -Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
* Merge pull request #44514 from madmiraal/split-os-executeRémi Verschelde2021-01-121-1/+1
|\ | | | | Split OS::execute into two methods
| * Split OS::execute into two methodsMarcel Admiraal2021-01-091-1/+1
| | | | | | | | | | 1. execute(): Executes a command and returns the results. 2. create_process(): Creates a new process and returns the new process' id.
* | Fix script list only showing their names regardless of display optionMichael Alexsander2021-01-111-1/+14
|/
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Editor: Fix invalid use of Node::get_viewport() after rename of ↵Rémi Verschelde2020-12-281-1/+1
| | | | | | | | | | | EditorNode::get_viewport() Fixes #44761, was a regression from #44524. The PR passed CI because EditorNode::get_viewport() used to shadow Node::get_viewport() (which was a bug in itself, fixed by #44524), so once it was renamed the existing code relying on it fell back to the now available Node::get_viewport(). This might bite some thirdparty modules too.
* Rename empty() to is_empty()Marcel Admiraal2020-12-281-10/+10
|