Age | Commit message (Collapse) | Author |
|
Spaces in filenames are evil.
|
|
function.
|
|
Add support for TAU constant.
|
|
|
|
|
|
Fixes #10972
|
|
|
|
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.
|
|
|
|
|
|
In an effort to make GDScript a little faster replace the double
switch() with a computed goto on compilers that set __GNUC__. For
compilers that don't support computed goto it will fall back to regular
switch/case statements.
In addition disable using boolean values in a mathematical context. Now
boolean values can only be compared with other booleans. Booleans will
also no longer be coerced to integers.
This PR replaces #11308 and fixes #11291
|
|
Fix various warnings that don't have enough instances to merit
individual commits. Also fixes a potential bug in audio_server.cpp.
|
|
DocData and virtual method type hints fixes
|
|
- Removes hardcoded parameters from built-in vararg methods and adds METHOD_FLAG_VARARG to them.
- Makes EditorHelp display built-in vararg methods correctly.
|
|
- Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types
- Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string.
- PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void.
- Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
|
|
-Fix getter in code completion being displayed when it shouldn't
-Clean up preview generation for editors and exposed it as editor plugin
|
|
-fixed to code completion
-fix shader crash bug reported by tagcup
|
|
|
|
|
|
These Null checks were removed in #10581 but actually changed the
logic of the functions in this case.
This fixes #10654
|
|
Make cast_to a static member of Object.
|
|
|
|
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.
This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.
It is explained in this article: https://www.viva64.com/en/b/0226/
|
|
|
|
-Disabled GDNative and GDNativeScript so build compiles again
|
|
now.
Also changed PropertyInfo to include informatino about class names.
|
|
|
|
|
|
Notice: GDScript tokenizer used the old PoolFloatArray name.
Renamed PoolFloatArray to PoolRealArray.
Moved "project_settings.h" down one line to comply with the clang-format rules.
Fixes #9638
Closed pull request #9714 because I messed up with commits, sorry!
|
|
|
|
-Added system for feature overrides, it's pretty cool :)
|
|
makes completion cleaner and more close to the documentation.
|
|
|
|
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
|
|
this might cause bugs I haven't found yet..
|
|
|
|
|
|
|
|
|
|
Script editor now automatically completes file paths in GDScript
|
|
|
|
|
|
|
|
From https://github.com/lucasdemarchi/codespell
|
|
There was a missing '!' sign, but autocompletion shows parent script members too.
|
|
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
|
|
|
|
Get rid of some compilation warnings.
|
|
Redone the commit based on the input in
https://github.com/godotengine/godot/pull/7851 . Not all warnings were
fixed but it's a start.
|