DrNochi
23fd2a9175
Fix script dialog path validation to handle spaces correctly
2019-04-30 16:06:43 +02:00
Rémi Verschelde
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
Rémi Verschelde
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
Hugo Locurcio
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
marxin
8d51618949
Add -Wshadow=local to warnings and fix reported issues.
...
Fixes #25316 .
2019-02-20 19:44:12 +01:00
lupoDharkael
76560c8afa
Add class tree selection to script inheritance selection
2019-02-18 19:16:09 +01:00
Erik
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
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
volzhs
d072d5ed14
Create built-in script properly
2018-12-16 18:31:43 +09:00
DualMatrix
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
Michael Alexsander Silva Dias
75d5d81b8a
Remove unnecessary "OK"s text settings
2018-09-15 21:40:50 -03:00
Rémi Verschelde
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
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
willnationsdev
69c09ab2fd
Fix ScriptCreateDialog passing script w/ no filename
2018-09-08 15:04:55 -05:00
willnationsdev
2a6c591957
Expose ScriptCreateDialog to EditorPlugin
2018-07-04 09:41:12 -05:00
Rémi Verschelde
99c1323a08
Merge pull request #17388 from Hinsbart/mono_class_name
...
Mono: Avoid invalid class names.
2018-03-15 19:47:39 +01:00
Andreas Haas
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
Poommetee Ketson
2de1dfa42f
Update icons when theme changed
2018-02-25 23:04:16 +07:00
Anish
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
Rémi Verschelde
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
Michael Alexsander Silva Dias
2b45d721f9
Some small fixes for the "Attach Script" dialog.
2018-01-10 21:43:35 -02:00
Michael Alexsander Silva Dias
4b8387dd92
Fixed "Attach Script" dialog's file dialog labeling.
2018-01-10 00:36:07 -02:00
Rémi Verschelde
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
Jerome67000
227238b424
Fix "Attach Node Script" inherits popup type
2018-01-08 21:33:51 +01: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
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
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
Rémi Verschelde
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
Rémi Verschelde
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
Andreas Haas
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
volzhs
ac411c9f48
Focus path field after seleting file browser on Attach script window
2017-12-14 11:25:00 +09:00
volzhs
47182a01c3
Pressing Enter key creates or loads script on Attach script window
2017-12-11 23:20:25 +09:00
Rémi Verschelde
6e3f2f44af
Use new XDG folders to dehardcode paths
2017-11-19 20:54:26 +01:00
Rémi Verschelde
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
Daniel J. Ramirez
8cf0d6ceb4
Some fixes and improvements.
...
Changed FileDialogs for EditorFileDialogs in EditorNode.
Updated CheckButton.
2017-11-10 16:45:08 -06:00
Ignacio Etcheverry
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
Jakob Sinclair
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
Juan Linietsky
5f8df8bc11
Fix detectin of existing file being a dir in new script creation, closes #9958
2017-09-01 14:25:01 -03:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Wilson E. Alvarez
1577f41653
Fixed several memory leaks
2017-08-25 08:47:05 -04:00
Wilson E. Alvarez
738d2ab969
Removed unnecessary assignments
2017-08-21 15:15:55 -04:00
Daniel J. Ramirez
cd8feed0df
Some theme and usability improvements
...
Fixed create script editor dialog not changing extension
Options menu for inspector element is bigger
2017-07-31 13:19:45 -05: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
Poommetee Ketson
9ef0d0f96e
ScriptCreateDialog: Fix regressions from #9536
2017-07-09 13:36:57 +07:00
Poommetee Ketson
a94ea0b9fe
ScriptCreateDialog: fix open error crash, remember template
2017-07-07 20:42:39 +07:00
Andreas Haas
8e8e4b30e5
Script create diag: Show extensions for currently selected language only.
2017-07-01 15:19:34 +02:00
Andreas Haas
cc2cd20870
Capitalize template names in script dialog.
2017-06-24 15:37:27 +02:00
Andreas Haas
8361b1ce07
Add ability to use custom script templates.
...
Templates will be loaded from .godot/script_templates
For now they're disabled for GDNative.
Ideas for further improvements:
- Add a "Save as Template" option to the script editor, as it can normally only save to res://
- Support more placeholders / custom placeholders
2017-06-13 20:03:08 +00:00
Andreas Haas
4d8e45de17
Fix errors on engine startup.
...
Fixes a bunch of the most spammy console errors introduced by recent refactorings:
- `AudioServerState` does not exist, this was the reference to it in the source. The surrounding code made it clear that `AudioServerLayout` was meant to be used instead.
- `StreamCSVTranslation` same here, it's the only reference. I went with `Translation` here, but I'm not 100% sure on this one.
- Some methods have been moved from `Texture` to `Image`, but the old bindings were still there.
- A few `name == ""` errors related to duplicating nodes.
2017-05-22 20:50:59 +02:00
Przemysław Gołąb (n-pigeon)
2dc4b035a8
Reworked look and feel of Add Script Dialog.
...
Untangled a lot of Controls logic code and placed it in one place.
Which squashed few bugs and made code easier to maintain.
2017-05-06 15:52:39 +02:00
mbalint12
a3afec588c
Added the ability to select files as base when creating scripts
2017-04-15 23:29:09 +02:00
Rémi Verschelde
df61dc4b2b
Add "Godot Engine contributors" copyright line
2017-04-08 00:11:42 +02:00
Andreas Haas
df7ca7864b
Editor: Use GDScript as the default language in ScriptCreateDialog.
2017-04-06 14:26:36 +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
Rémi Verschelde
49c065d29c
Refactoring: rename tools/editor/ to editor/
...
The other subfolders of tools/ had already been moved to either
editor/, misc/ or thirdparty/, so the hiding the editor code that
deep was no longer meaningful.
2017-03-05 14:21:25 +01:00