Andreas Haas
015d36d18b
GDScript: Use "is" keyword for type checking.
...
Replaces the `extends` keyword with `is` in the context of testing for type compatibility.
`extends` is still used for declaring class inheritance.
Example:
```gdscript
extends Node2D
func _input(ev):
if ev is InputEventKey:
print("yay, key event")
```
2017-05-27 10:59:59 +02:00
Juan Linietsky
f89641907f
-Added EXR supprot for HDR (no BC6 compression yet though)
...
-Improvements to texture importer
-Proper detection of S3TC compression modes, and added all modes to Image
-Fixes to non-power of 2 compressed textures, which should all be supported by GLES3
2017-05-26 22:31:32 -03:00
Juan Linietsky
7c89e00d46
Merge pull request #8590 from tagcup/s3tc_stuff
...
Use libsquish to decompress DXT textures.
2017-05-25 16:29:04 -03:00
Karroffel
f23b56e3ec
[GDNative] fixed some functions that returned references
...
Those errors were introduced with #8821 (6fd217d
). These functions need to return reference types, otherwise setting values on those containers does not work.
2017-05-23 22:57:02 +02:00
Juan Linietsky
5b3709d309
Removal of InputEvent as built-in Variant type..
...
this might cause bugs I haven't found yet..
2017-05-20 17:05:38 -03:00
Rémi Verschelde
231511b2a6
Merge pull request #8631 from volzhs/editor-theme-custom
...
New customizable editor theme
2017-05-20 07:16:11 +02:00
Emmanuel Leblond
abcb044bf3
Finish implementation of GDnative builtins bindings
2017-05-19 23:28:15 +02:00
Ferenc Arn
3c175115eb
Use libsquish to decompress DXT textures.
2017-05-18 16:57:53 -05:00
Rémi Verschelde
dcc44f05b7
Merge pull request #8798 from RandomShaper/gdfs-ext-check
...
Add extended check option to GDFunctionState::is_valid()
2017-05-18 12:51:29 +02:00
Rémi Verschelde
c3baf5eb3c
Fix two typos from previous commit
...
Also cleanup comments on variant types.
2017-05-17 18:45:56 +02:00
Pedro J. Estébanez
b69d4ebff4
Add extended check option to GDFunctionState::is_valid()
2017-05-17 14:55:59 +02:00
Juan Linietsky
98a3296702
Removal of Image from Variant, converted to a Resource.
2017-05-17 07:37:45 -03:00
Karroffel
11e496d99a
[GDNative] fixed a reload bug
...
When there was no terminate function defined in the library the exported variables would not update.
This fixes that.
2017-05-13 14:37:57 +02:00
Rémi Verschelde
88d5c943e7
Merge pull request #8696 from bojidar-bg/fix-path-autocomplete
...
Fix gdscript autocomplete showing only paths
2017-05-12 18:17:20 +02:00
Thomas Herzog
0f8a17b0cb
Merge pull request #8720 from karroffel/gdnative-methodbind-varcall
...
[GDNative] added varcall and print
2017-05-11 23:53:46 +02:00
Karroffel
d137e83c60
[GDNative] added varcall and print
2017-05-11 23:06:11 +02:00
Karroffel
15bce7f75f
removed multiscript
...
removes MultiScript which was re-added in #8502 (aka 4c14700
).
This feature didn't turn out to be as useful as most expected. It causes more troubles than it does good.
2017-05-11 21:23:19 +02:00
sheepandshepherd
99e07448d1
Add error printing functions to GDNative
2017-05-10 00:19:38 +02:00
Rémi Verschelde
32afcbc482
Put brave old bb10 platform to a well-deserved rest
...
Add some 🔥 to appease @reduz. Fixes #8692 .
2017-05-08 22:22:20 +02:00
Bojidar Marinov
837a667225
Fix #8674 , and rename a few things for clarity
2017-05-08 22:39:27 +03:00
toger5
304a1f5b5a
Implemented scrolling factor for smooth trackpad scrolling
...
Working platforms platform: OSX, Windows.
Support for almost all ui elements, including project list.
2017-05-07 14:23:56 +02:00
volzhs
17e8e343fb
Revert "Add new editor and default theme (WIP)"
...
This reverts commit f045efe007
.
2017-05-03 06:19:15 +09:00
Rémi Verschelde
9a40b92b8a
Merge pull request #8571 from tagcup/squish_sse
...
Detect SSE/SSE2 for libsquish.
2017-05-02 11:29:16 +02:00
Rémi Verschelde
d4029aa51a
Move other lone thirdparty files to thirdparty/misc
...
Also move Box2D ConvexDecomposition contrib code to
thirdparty/b2d_convexdecomp.
2017-04-28 21:19:25 +02:00
Ferenc Arn
b6259661ce
Detect SSE/SSE2 for libsquish.
2017-04-28 12:47:35 -05:00
Daniel J. Ramirez
f045efe007
Add new editor and default theme (WIP)
2017-04-27 08:04:57 +02:00
Paulb23
c4ffe89204
Changed indent type settings
2017-04-26 12:14:03 +01:00
Rémi Verschelde
cdf0fbd8e8
Merge pull request #8522 from NNesh/mus
...
Fix AudioPlayer bugs with OGG
2017-04-26 08:13:30 +02:00
NNesh
6cf0c62221
Fix AudioPlayer.get_pos() always returns 0
2017-04-25 17:02:45 +05:00
Ramesh Ravone
924bccdbd1
Honoring the Indent setting for gdscript
2017-04-25 06:57:49 +05:30
NNesh
0edc3d7208
Fix AudioPlayer.play() bug when music always starts from 0 pos
2017-04-25 01:57:05 +05:00
Karroffel
67886bab1e
fixed a bug where saving a GDScript file crashed the editor
...
I changed the loop in #8502 , turns out it fixed the error I was facing but introduced a new one. This fixes both
2017-04-24 19:26:32 +02:00
Rémi Verschelde
9acfb0782c
Merge pull request #8444 from magyar123/pr-complete-paths
...
Script editor now automatically completes file paths in GDScript
2017-04-24 11:37:57 +02:00
Rémi Verschelde
68870af214
Merge pull request #8420 from magyar123/pr-script-files-as-base
...
Added the ability to select files as base when creating scripts
2017-04-24 11:28:36 +02:00
Rémi Verschelde
d7578792ca
Merge pull request #8496 from akien-mga/stdout-cleanup
...
Fix property warnings and hide some debug prints
2017-04-24 11:04:16 +02:00
Karroffel
885239fb09
re-added MultiScript
...
The very first Godot version (when it was open sourced) had "MultiScript" which lets you use multiple scripts on one object.
With the addition of mulitple new scripting languages (VisualScript, soon C# and GDNative) it can be of use to combine scripts rather than delegating (with huge maintainance cost) or creating child nodes
which could impact performance.
I used the code from 0b806ee
as the base and made it work with the current master.
2017-04-24 01:49:40 +02:00
Rémi Verschelde
515f92d03b
Fix property warnings and hide some debug prints
...
"ALL IS GOOD" was a lie.
In particular, removes verbose "path not recognized" false positive.
The actual logic is to (somewhat naively) check all ResourceFormatLoaders
and to pick the first good match, so no need to warn about the formats
that do not match the type hint.
2017-04-23 11:17:32 +02:00
Karroffel
a6e75c9437
[GDNative] fixed msvc build
2017-04-20 13:15:45 +02:00
Rémi Verschelde
22b9c0207b
Merge pull request #8417 from neikeq/hello-there
...
External editor improvements and fixes
2017-04-20 02:20:04 +02:00
Karroffel
d4f4f14c68
[GDNative] explicit calling convention
2017-04-19 15:51:33 +02:00
mbalint12
71978685f9
Added autocomplete for file paths in the script editor
2017-04-18 17:22:01 +02:00
Rémi Verschelde
5237bc952d
Merge pull request #8424 from Paulb23/convert_indent
...
Support for space indentation
2017-04-18 14:16:58 +02:00
Paulb23
c59bd79e02
Convert indent on save
2017-04-18 12:30:52 +01:00
Paulb23
84bca4e72f
Added support for space indentation
2017-04-18 12:30:46 +01:00
Thomas Herzog
68d79b21c3
Merge pull request #8440 from karroffel/gdnative-new-method
...
[GDNative] added "new" method and fixed headers
2017-04-17 20:41:32 +02:00
Thomas Herzog
a88c20f0ca
Merge pull request #8439 from touilleMan/correct_gdnative_signatures
...
Correct gdnative signatures
2017-04-17 19:55:42 +02:00
Karroffel
f4261c8868
[GDNative] added "new" method and fixed headers
2017-04-17 19:52:18 +02:00
Emmanuel Leblond
e7134ce283
gdnative: Implement missing function for godot_basis.
2017-04-17 19:05:00 +02:00
Emmanuel Leblond
707eedfa85
gdnative: modify vector2&vector3 functions signature to use value passing instead of ptr.
2017-04-17 16:43:43 +02:00
Emmanuel Leblond
8400de76a7
Add godot_string_unicode_str to GDnative
2017-04-17 15:48:26 +02:00