f013596760
Allow to define and load script templates per project
...
Previously it was only possible to create custom script templates per
editor instance which could lead to certain name collisions, but now one
can create such templates per project tailored for specific use cases.
The default path to search for custom script templates is defined in
project settings via `editor/script_templates_search_path` setting as
`res://script_templates` path, yet this can be configured per project.
Templates have at most two origins now:
1. Project-specific, defined in `ProjectSettings`, for instance:
- res://script_templates/
2. Editor script templates, for instance:
- %APPDATA%/Godot/script_templates/
As script templates can have the same name over different paths,
the override mechanism was also added, enabling project-specific
templates over the editor ones.
2019-08-22 20:51:30 +03:00
bd9852b982
Display language icons in script create dialog
2019-08-12 15:31:03 +03:00
1994111037
Allow dots for class name in popup dialog
...
Signed-off-by: Ev1lbl0w <ricasubtil@gmail.com >
2019-07-10 13:44:52 +01:00
acbd0fea97
Use CheckBoxes in the editor instead of CheckButtons when applicable
...
CheckButtons should only be used if toggling them has an
immediate effect. Otherwise, CheckBoxes should be used.
2019-07-04 17:32:59 +02:00
4961db8e88
ScriptCreateDialog should emit the script_changed signal first
2019-06-29 23:18:37 -04:00
2d28e393d6
Fix script create dialog
...
- Correctly validate parent/class names
- Trigger parent validation when selecting from buttons
- Fix enabling/disabling parent buttons
- Clear class name if not supported
- Minor cleanup
2019-06-11 16:05:24 -05:00
3eb5d1b525
Hide "Built-in Script" option in the script creation dialog when not possible
2019-05-02 13:42:21 -03:00
73d95f1006
Make small changes to the script dialog
2019-05-02 12:04:33 -03:00
6cb4ef1c55
Fix script dialog asking for correct inheritance when not needed
2019-05-02 12:04:05 -03:00
23fd2a9175
Fix script dialog path validation to handle spaces correctly
2019-04-30 16:06:43 +02:00
8a7cf6f0d1
Merge pull request #25708 from SeleckyErik/issue-25611-script_dialog_cursor
...
Moves cursor to and selects "new_script" in Create Script dialog
2019-04-30 13:57:14 +02:00
9591e587fe
Merge pull request #26022 from lupoDharkael/create-script
...
Add class tree selection to script inheritance selection
2019-04-30 13:43:53 +02:00
35a0162167
Improve wording of various messages and make casing more consistent
...
This also adds the number of selected projects to the confirmation
dialog that appears before removing projects.
2019-04-21 14:37:14 +02:00
8d51618949
Add -Wshadow=local to warnings and fix reported issues.
...
Fixes #25316 .
2019-02-20 19:44:12 +01:00
76560c8afa
Add class tree selection to script inheritance selection
2019-02-18 19:16:09 +01:00
a83877a8e8
Moves cursor to and selects "new_script" in Create Script dialog
...
When Create Script dialog pops up, the cursor in the Path LineEdit is
moved to the "new_script" name placeholder and it is selected.
2019-02-08 18:42:05 +01:00
b16c309f82
Update copyright statements to 2019
...
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
d072d5ed14
Create built-in script properly
2018-12-16 18:31:43 +09:00
6dc0120c60
Prevent built-in-scripts from being made from FileSystem dock
...
Prevent built-in-scripts from being made from FileSystem dock
2018-09-23 17:38:59 +02:00
75d5d81b8a
Remove unnecessary "OK"s text settings
2018-09-15 21:40:50 -03:00
fb77cdf2f2
Fix default script name in ScriptCreateDialog
...
It would default either to '.gd' when created from the script editor,
or to 'res:///NodeName.gd' (three '/') when created from the scene tree dock.
2018-09-12 12:29:50 +02:00
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
69c09ab2fd
Fix ScriptCreateDialog passing script w/ no filename
2018-09-08 15:04:55 -05:00
2a6c591957
Expose ScriptCreateDialog to EditorPlugin
2018-07-04 09:41:12 -05:00
99c1323a08
Merge pull request #17388 from Hinsbart/mono_class_name
...
Mono: Avoid invalid class names.
2018-03-15 19:47:39 +01:00
700d07cf7c
Mono: Avoid invalid class names.
...
Disallow reserved keywords as class names and prefix base class with the Godot
namespace if it's the same as the class name.
Fixes #12483
2018-03-15 19:25:06 +01:00
2de1dfa42f
Update icons when theme changed
2018-02-25 23:04:16 +07:00
1fdb8251d2
Godot now allows built-in irrespective of the filepath.
...
Since the file in the filepath is irrelevant when setting the file
as built-in, changes have been made to allow setting to built-in
even if the file in the path exists.
Fixes #16425
2018-02-21 14:47:23 +05:30
8fcbba9326
Merge pull request #15544 from YeldhamDev/script_dialog_label_fix
...
Fixed "Attach Script" dialog's file dialog labeling
2018-02-14 16:44:39 +01:00
2b45d721f9
Some small fixes for the "Attach Script" dialog.
2018-01-10 21:43:35 -02:00
4b8387dd92
Fixed "Attach Script" dialog's file dialog labeling.
2018-01-10 00:36:07 -02:00
29ae3e5f33
Revert "Fix "Attach Node Script" inherits popup type"
...
This reverts commit 227238b424 .
This dialog is used to both open and create scripts, so it needs to have
the features of the save dialog.
2018-01-09 16:15:22 +01:00
227238b424
Fix "Attach Node Script" inherits popup type
2018-01-08 21:33:51 +01:00
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
d65ac7378c
Fix crash in OS::execute on FreeBSD
...
As spotted by @robfram, closes #15288 .
Also reviewed other uses of `if (String.find(.*))` for potential similar mistakes, found a wrong (and useless) one in ScriptEditorDialog.
2018-01-04 01:20:20 +01:00
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
a5db25bd27
Merge pull request #14551 from volzhs/ok-alert-confirm
...
Pressing Enter key creates or loads script on Attach script window
2017-12-16 01:17:45 +01:00
ef1e2df86d
Merge pull request #14645 from volzhs/focus-after-select
...
Focus path field after seleting file browser on Attach script window
2017-12-16 00:47:15 +01:00
0de3cde6fc
ScriptCreateDialog: Fix loading scripts with named classes.
...
We only need to validate the class name when creating a new script, existing scripts already have one.
Fixes #14643
Supersedes/Closes #14684
2017-12-15 19:40:36 +01:00
ac411c9f48
Focus path field after seleting file browser on Attach script window
2017-12-14 11:25:00 +09:00
47182a01c3
Pressing Enter key creates or loads script on Attach script window
2017-12-11 23:20:25 +09:00
6e3f2f44af
Use new XDG folders to dehardcode paths
2017-11-19 20:54:26 +01:00
ad199c3964
EditorSettings: Rename settings_path to settings_dir
...
Also to prepare for upcoming refactoring for XDG support.
2017-11-17 20:55:09 +01:00
8cf0d6ceb4
Some fixes and improvements.
...
Changed FileDialogs for EditorFileDialogs in EditorNode.
Updated CheckButton.
2017-11-10 16:45:08 -06:00
e218a13a64
Add ScriptLanguage::supports_builtin_mode and improve ScriptCreateDialog
...
- Make ScriptCreateDialog disable the built-in script checked button if the language does not support it.
- ScriptLanguage's get_template and make_template now receive the script path as class name if the the script language does not have named classes.
2017-10-24 15:48:58 +02:00
d9d371fb53
File names for scripts can include '-'
...
Fixes #12261
Signed-off-by: Jakob Sinclair <sinclair.jakob@mailbox.org >
2017-10-21 17:28:53 +02:00
5f8df8bc11
Fix detectin of existing file being a dir in new script creation, closes #9958
2017-09-01 14:25:01 -03:00
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
1577f41653
Fixed several memory leaks
2017-08-25 08:47:05 -04:00
738d2ab969
Removed unnecessary assignments
2017-08-21 15:15:55 -04:00