Juan Linietsky
2cc8309249
Merge pull request #10351 from neikeq/enums-are-for-the-weak
...
ClassDB: Provide the enum name of integer constants
2017-08-21 19:56:08 -03:00
Rémi Verschelde
135027a2f6
Merge pull request #10225 from Noshyaar/map
...
GDScript Built-in: add inverse_lerp & range_lerp
2017-08-22 00:31:46 +02:00
Wilson E. Alvarez
738d2ab969
Removed unnecessary assignments
2017-08-21 15:15:55 -04:00
Ignacio Etcheverry
32dd9a9f66
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00
Daniel J. Ramirez
0c18009665
Added missing icon and svgs upscaling
2017-08-20 13:53:09 -05:00
Daniel J. Ramirez
da8fecf25e
Added support for SVG
2017-08-20 13:53:02 -05:00
Juan Linietsky
541fdffc0a
Merge pull request #10319 from neikeq/pr-engine-editor-hint
...
Adds Engine::is_editor_hint() method
2017-08-20 12:55:46 -03:00
Rémi Verschelde
5627047c32
Merge pull request #10455 from groud/control_margin_fixes
...
Some control fixes and removed other useless lines
2017-08-20 15:24:00 +02:00
Gilles Roudiere
06256cd778
Some control fixes and removed useless lines
2017-08-19 19:10:00 +02:00
Rémi Verschelde
ce85179e5d
Merge pull request #10446 from bojidar-bg/6583-fix-wait-node
...
Fix Condition + Wait nodes freezing the game
2017-08-19 18:00:20 +02:00
Emmanuel Leblond
00d552b1cd
[GDnative] Correct godot_string_chars_to_utf8_with_len function name
2017-08-19 17:08:33 +02:00
Bojidar Marinov
4a0b4417a3
Fix #6583 , Condition + Wait nodes freezing the game
...
Make sure that only the first node after VS resume gets resumed
2017-08-19 17:54:32 +03:00
Zher Huei Lee
e3e2f06324
Replacement of internal RegEx with PCRE2
...
The pattern and replacement matching behaviour has been changed purely
due to the nature of switching to a standards-compliant library.
One mistake in the previous behaviour was that named groups didn't have
a number. This has been corrected.
As names are actually just an alias of numbered groups,
RegExMatch::get_name_dict() is now get_names() and is a dict
referring to the group number it represents.
Duplicate names are enabled and the with the first matching instance
used.
Due the lack of a suitable equivalent in PCRE2, RegExMatch::expand() was
removed.
2017-08-19 19:29:14 +08:00
Ignacio Etcheverry
90b8a5b71e
Removes editor_hint from SceneTree
2017-08-19 01:29:45 +02:00
Juan Linietsky
cbcf40bd31
-Volume sliders, mute, solo and fx bypass are functional, closes #9021
...
-Fixed tree reselect, makes reselecting an audio bux FX work
2017-08-18 18:21:53 -03:00
Juan Linietsky
b20952ebff
Update script signals in real-time when script changes. Fixes #8980
2017-08-18 16:44:03 -03:00
Poommetee Ketson
d28da86f9f
GDScript Built-in: add inverse_lerp & range_lerp
2017-08-18 21:49:03 +07:00
Marcelo Fernandez
eab850524e
Add closest_power_of_2 func and implement mix_rate/latency on OS X
2017-08-17 19:51:13 -03:00
Rémi Verschelde
b1ecaaa22b
Merge pull request #10307 from Rubonnek/update-argument-names
...
Updated function argument names
2017-08-16 17:17:56 +02:00
Rémi Verschelde
c1a43a09be
Merge pull request #10356 from RandomShaper/fix-msvc-error
...
Add comment warning about include order
2017-08-16 17:11:59 +02:00
Pedro J. Estébanez
ae2d449047
Revive inspector property evaluation
...
GDScript was restricted to parse only scripts beginning with __res://__ or __user://__ to avoid templates from being parsed. I've made that a bit less inclusive by allowing scripts with an empty path to be parsed too, which doesn't conflict and is needed for this to work.
Also I've removed the `this` variable of the generated script and made the relevant object to be the one the script instance refers to, so you can use `self` instead.
Now, with the shorter 3.0-style syntax, you can write things like: `self.position.x + 10`
Closes #9500 .
2017-08-16 03:01:41 +02:00
Pedro J. Estébanez
2a26c5ce62
Comment include order to avoid errors
...
So as to not revive #10071 , as suggested by @akien-mga.
2017-08-15 22:12:57 +02:00
Gilles Roudiere
0d35d4d53b
Replace GUI anchor type by a float between 0 and 1
2017-08-13 21:20:13 +02:00
Wilson E. Alvarez
428f03cf06
Updated function argument names
2017-08-12 15:12:49 -04:00
Rémi Verschelde
dbece391a8
Merge pull request #10179 from marcelofg55/master
...
Fix crash when running a game with the profiler enabled
2017-08-11 10:38:16 +02:00
Rémi Verschelde
8e6768c963
Merge pull request #10202 from neikeq/how-do-you-turn-this-on
...
Improves method bind's detecting of signarute types
2017-08-11 10:29:41 +02:00
Ignacio Etcheverry
78619a5866
Fixes method definitions with extra number of arguments
2017-08-10 07:17:51 +02:00
Ignacio Etcheverry
2f290038d6
Removes type information from method binds
2017-08-10 07:17:50 +02:00
Ignacio Etcheverry
1e74f27f8f
Adds missing type information to virtual method binds
2017-08-10 07:17:50 +02:00
Thomas Herzog
e93ce339dc
Merge pull request #10206 from endragor/show-base-nativescript-props
...
Allow to edit base type NativeScript properties
2017-08-09 23:07:42 +02:00
Ruslan Mustakov
9c1afce38e
Allow to edit base type NativeScript properties
2017-08-09 20:51:38 +07:00
Ruslan Mustakov
9d4887e74b
Fix getting default values for NativeScript base type properties
2017-08-09 20:37:37 +07:00
Thomas Herzog
1536cc4381
Merge pull request #9633 from ducdetronquito/gdnative_string_api
...
[GDNative] Implement String API.
2017-08-09 04:44:22 +02:00
ducdetronquito
0b55363a82
Implemented String C API.
2017-08-08 23:42:54 +02:00
Marcelo Fernandez
077ed98c92
Fix crash when running a game with the profiler enabled
2017-08-08 18:02:45 -03:00
Juan Linietsky
8a4bce6ebd
Ability to set a function as sequenced, so when called you can choose not to use sequence ports. Fixes #6346
2017-08-08 13:14:36 -03:00
Juan Linietsky
95f10c620d
push variable later when created, to avoid self-referencing as a valid case, closes #6111
2017-08-08 11:44:49 -03:00
Juan Linietsky
fab75bce3f
Properly rename visual script functions, fixed #6076
2017-08-08 11:32:09 -03:00
Juan Linietsky
c6120e77a8
Implement len() gdscript built-in function for python users, closes #1960
2017-08-07 18:38:47 -03:00
Indah Sylvia
5ae78fdf6a
Makes all Godot API's methods Lower Case
2017-08-07 18:24:35 +07:00
Juan Linietsky
37adf936ab
few bugs fixed thanks to explicit bool constructor and clang.
...
explicit bool constructor has thus now been removed, as it served it's mission!
2017-08-05 21:43:10 -03:00
Karroffel
76ce18c290
[GDNative] fixed double variant call
...
This bug got discovered thanks to clang!
2017-08-06 02:04:06 +02:00
Juan Linietsky
cfe4b30941
renamed node path, closes #5691
2017-08-05 09:13:59 -03:00
Ruslan Mustakov
d71171026f
Dont call nativescript callbacks if lib is not initialized
2017-08-04 21:17:33 +07:00
Thomas Herzog
211dfa6602
Merge pull request #10072 from karroffel/gdnative-header-include-paths
...
[GDNative] fixed a bug with ambiguous include paths
2017-08-04 04:06:54 +02:00
Karroffel
ab3b1e67c7
[GDNative] fixed a bug with ambiguous include paths
...
fixes #10071 . The problem is that the json.h file includes the
local variant.h instead of the "absolute" core/variant.h
2017-08-04 03:26:32 +02:00
Thomas Herzog
056b5f9e56
Merge pull request #10060 from endragor/nativescript-frame
...
Forward frame call to GDNative libraries
2017-08-03 13:52:44 +02:00
Ruslan Mustakov
aaf84129db
Forward frame call to GDNative libraries
2017-08-03 14:04:04 +07:00
Karroffel
c143f86968
[GDNative/NativeScript] fix -rdynamic and removed _init call
...
The _init call was buggy anyway and in the end shouldn't be a
thing that's called via ClassDB, it should be something that's
language specific, so we leave this out for the bindings.
In the commit 66a7763
the SCsub file for GDNative was changed to
use a cloned environment, that bricked -rdynamic which needs to be
passed down to the linker, which didn't happen with the new env.
2017-08-02 14:21:12 +02:00
Karroffel
880048377d
[GDNative] better header include paths
...
The old include paths caused some problems on some compilers, for
example including "string.h" was ambiguous.
2017-08-02 03:50:33 +02:00
Rémi Verschelde
93c226f7a3
Merge pull request #9964 from supagu/audio_fix
...
Fixed AudioStreamPlaybackOGGVorbis::_mix_internal getting stuck in in…
2017-07-30 20:59:45 +02:00
Karroffel
fc9f5d59b5
[NativeScript] fix signals from base class not being accessible
...
https://github.com/GodotNativeTools/cpp_bindings/issues/26
2017-07-30 15:04:00 +02:00
Fabian Mathews
207f596e69
Fixed AudioStreamPlaybackOGGVorbis::_mix_internal getting stuck in infinite loop causing audio to freeze
2017-07-29 18:59:51 +09:30
Ruslan Mustakov
3193460c4a
Pass GDNativeLibrary pointer to library init
2017-07-28 22:43:23 +07:00
Rémi Verschelde
204ec5459b
Merge pull request #9932 from djrm/vs_fixes
...
Do not allow multiple data connections to the same data input slot, f…
2017-07-28 11:15:56 +02:00
Daniel J. Ramirez
707bb96fa8
Do not allow multiple data connections to the same data input slot, fixes #6357.Improved curve rendering when nodes are close.
2017-07-27 16:39:53 -05:00
Karroffel
3185c9c374
[NativeScript] fixed optional _init call
...
In 3c53b35
a call to an "_init" function was introduced,
that however was only executed in the `_new` function,
also it *required* that such a function exists.
With this patch the "_init" function will be optionally called on
every instance creation.
2017-07-27 15:30:39 +02:00
Karroffel
aae8accadd
[NativeScript] fix mutex double lock
...
In 3c53b35
a bug got introduced where a mutex gets locked twice
instead of locked and then unlocked.
This path fixes that.
2017-07-27 14:56:47 +02:00
Karroffel
135c2112ad
added an optional parameter to OS symbol lookup
...
When looking up a symbol from a library, previously an error was
shown when the symbol did not exist. That caused confusion when the
lookup was completely optional.
This adds a new parameter to that method so that those errors can
be handled manually if needed.
2017-07-27 11:13:21 +02:00
Karroffel
a2795e9531
[NativeScript] call _init on instance creation
...
This also adds basic locking for the set of owners
to avoid threading problems
2017-07-27 11:12:49 +02:00
Thomas Herzog
18e23ad4dc
Merge pull request #9882 from endragor/nativescript-refcount
...
Forward refcount changes to NativeScriptInstance
2017-07-26 21:29:26 +02:00
Rémi Verschelde
88bd18244b
Merge pull request #9883 from bojidar-bg/8217-fixup-get_node-shortcut
...
Fix $a/b being parsed as division
2017-07-26 18:17:51 +02:00
Bojidar Marinov
a5fb82c28c
Fix $a/b being parsed as division
2017-07-26 18:51:03 +03:00
Ruslan Mustakov
db9dcbddbc
Forward refcount changes to NativeScriptInstance
...
This also changes Reference::unreference() to always invoke
refcount_decremented. Previously it was not invoked until the count
reached zero due to short-circuit evalution of boolean expressions.
2017-07-26 22:36:57 +07:00
Thomas Herzog
2b99bd492b
Merge pull request #9867 from endragor/nativescript-threading
...
Support multithreading for NativeScriptLanguage
2017-07-26 16:01:43 +02:00
Thomas Herzog
9caf9fa76f
Merge pull request #9720 from endragor/stack-bottom
...
Add a way to retrieve stack bottom of the main thread
2017-07-26 15:30:04 +02:00
Ruslan Mustakov
7f32023a1a
Support multithreading for NativeScriptLanguage
...
Godot may call property setters from non-main thread when an object is
loaded in the edtior. This means NativeScriptLanguage could be accessed
from different threads, but it was not designed for thread-safety.
Besides, previous behaviour made it so that godot_nativescript_init and
godot_gdnative_init could be invoked from non-main thread, while
godot_gdnative_thread is always invoked on the main thread. This may
not be expected by the binding library.
This commit defers native library initialization to the main thread and
adds godot_nativescript_thread_enter and godot_nativescript_thread_exit
callbacks to make a binding library aware of foreign threads.
2017-07-26 19:39:10 +07:00
sheepandshepherd
bdf2e8c615
Fix typo in NativeScript property getter
2017-07-25 23:03:39 +02:00
Rémi Verschelde
a931052c79
Merge pull request #9731 from Xrayez/gdscript-completion
...
Update GDScript completion names for Pool*Arrays
2017-07-25 21:05:42 +02:00
Karroffel
5319098aef
fix a regression (GDScript) from e00630b
...
This removes `not` from the variable safe list of
keywords.
Before that this was a valid expression:
self.!(some_arg)
The other fix is just a forgotten boolean negation.
2017-07-25 20:01:19 +02:00
Thomas Herzog
497411aa12
Merge pull request #9844 from karroffel/nativescript-double-init-fix
...
[NativeScript] fix double initialization in editor
2017-07-25 18:42:18 +02:00
Karroffel
cdf1212bee
[NativeScript] fix double initialization in editor
2017-07-25 18:18:36 +02:00
Andrii Doroshenko (Xrayez)
72436956dd
Update GDScript completion names for Pool*Arrays
...
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!
2017-07-25 12:14:40 +03:00
Rémi Verschelde
e00630bfca
Merge pull request #8217 from bojidar-bg/gdscript-fix-keyword-call
...
Make GDScript allow some keywords as identifiers
2017-07-25 08:18:10 +02:00
Ruslan Mustakov
3b88476130
Add a way to retrieve stack bottom of the main thread
...
I'm working on Nim bindings and Nim GC needs to know the stack
boundaries to check whether certain pointers are located on the stack
or in the heap. This commit adds godot_get_stack_bottom procedure
to gdnative module which returns pointer to the stack bottom of the
main thread. Later on this may be improved to return stack bottom of
the current thread.
2017-07-25 10:53:31 +07:00
Karroffel
3f1e75e89c
[NativeScript] bound new
to ClassDB
2017-07-25 00:26:37 +02:00
Karroffel
5e1abaf348
[GDNative] basic OS detection
2017-07-24 22:43:32 +02:00
Ramesh Ravone
75b66146ae
GDNative register_property
2017-07-24 22:30:07 +05:30
Thomas Herzog
008b20bd8f
Merge pull request #9814 from karroffel/nativescript-doublefree
...
[NativeScript] forgot to uncomment userdata return
2017-07-24 17:25:57 +02:00
Karroffel
41eb8a0279
[NativeScript] forgot to uncomment userdata return
2017-07-24 16:36:26 +02:00
Thomas Herzog
d0f1940534
Merge pull request #9809 from karroffel/nativescript-doublefree
...
[NativeScript] fix double free but on exit
2017-07-24 14:37:39 +02:00
Karroffel
a1a76bbde4
[NativeScript] fix double free but on exit
2017-07-24 14:07:39 +02:00
Rémi Verschelde
374cffaa11
Merge pull request #9764 from Noshyaar/pr-fix2
...
Add object type hint for docs
2017-07-24 08:07:32 +02:00
Karroffel
534d62d2f4
[GDNative] new GDNative API
...
This adds GDNative as a separate class type.
It can be used to interface with native libraries by
using "native calls", which can be registered by modules
(and in future other GDNative libraries?).
It also reworks the currently called "GDNativeScript" into a
"NativeScript" that just makes use of the new GDNative instead
of it being the component that implements that functionality.
2017-07-24 04:23:37 +02:00
Bojidar Marinov
1936e1d2be
Make GDScript allow some keywords as identifiers
...
Fixes #8085
Added some comments around the use of is_token_literal, as discussed.
2017-07-23 23:34:31 +03:00
Poommetee Ketson
2777f81d29
Add object type hint for docs
2017-07-23 18:57:03 +07:00
Rémi Verschelde
38c471bef6
Merge pull request #9765 from Noshyaar/pr-clang
...
Clang-formatting *.cpp and *.h (some files excluded)
2017-07-23 13:16:48 +02:00
Rémi Verschelde
5fbe4c130d
Merge pull request #9758 from vnen/fix-vs-return
...
VS: Fix return value for user-defined functions
2017-07-23 13:09:12 +02:00
Rémi Verschelde
c669107626
Merge pull request #9741 from vnen/fix-vs-customnode
...
Fix issues with custom nodes in visual script
2017-07-23 13:06:03 +02:00
Rémi Verschelde
e3aa9b5191
Merge pull request #9706 from djrm/theme_fixes
...
Icons can now be added inside line edits (Search icon).
2017-07-23 13:03:53 +02:00
Poommetee Ketson
c7c65ca6ba
Clang-formatting *.cpp and *.h (some files excluded)
2017-07-22 18:14:08 +07:00
George Marques
effceee6ea
VS: Fix return value for user-defined functions
2017-07-22 01:15:55 -03:00
George Marques
19ca9e7810
Update a VS custom node when its script changes
2017-07-21 23:45:57 -03:00
Ramesh Ravone
af8a40e554
gdnative bug fix in get (return null check)
2017-07-22 06:39:03 +05:30
George Marques
3fdf8663f7
Fix issues with custom nodes in visual script
...
- Doesn't crash anymore.
- Inputs are properly transferred.
2017-07-21 00:05:56 -03: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
Daniel J. Ramirez
95f55c8f0d
Icons can now be added inside line edits (Search icon).
...
Fixed window title bar margins.
fixed compilation error
2017-07-19 13:23:16 -05:00
Thomas Herzog
45b498c4e0
Merge pull request #9699 from RameshRavone/master
...
[gdnative] `Object::_get` return type and dynamic property
2017-07-19 13:07:06 +02:00
Ramesh Ravone
535290d2e7
[GDNative] dynamic properties
2017-07-19 05:41:56 +05:30
Poommetee Ketson
49c7620326
Add object type hint for docs
2017-07-19 02:03:34 +07:00
Ramesh Ravone
826c51c70e
_get return type fix
2017-07-18 21:09:46 +05:30
Juan Linietsky
bbada82f80
-Reorganized all properties of project settings (Sorry, Again).
...
(Lot's of bloat accumulated, so it was time for clean up.)
-Made EditorSettings and ProjectSettings search more useful (search in sections too)
2017-07-17 22:18:58 -03:00
Rémi Verschelde
2b8342e308
Merge pull request #9652 from djrm/theme_fixes
...
Improvements and fixes for the default theme.
2017-07-17 22:36:00 +02:00
Daniel J. Ramirez
a3c2d9a6bd
Improvements and fixes for the default theme.
...
Added customizable border size and window highlight.
2017-07-16 13:23:59 -05:00
Juan Linietsky
3da3a36034
Many fixes to improve GI Probe quality
2017-07-15 23:24:37 -03:00
sheepandshepherd
914a68723f
Expose Dictionary::next to GDNative
2017-07-15 23:02:19 +02:00
Rémi Verschelde
e64b82ebfc
Some more typo fixes for "threshold"
...
Looks like @reduz really does not like that word.
2017-07-15 12:01:46 +02:00
ducdetronquito
074801e7a9
[ #7212 ] Fixed missing 'Variant' return values in documentation.
2017-07-11 13:25:51 +02:00
Rémi Verschelde
a5d500f023
Merge pull request #8573 from neikeq/gdfs-completed
...
Adds "completed" signal to GDFunctionState
2017-07-11 11:14:22 +02:00
Juan Linietsky
12a8fedfe6
Some changes to dual paraboloid envmap generation, fixes somme bleeding
2017-07-05 19:39:45 -03:00
Rémi Verschelde
e54c7d5715
Merge pull request #9457 from TwistedTwigleg/Fixed_Vector3_snap
...
Fixed syntax inconsistency in Vector3.snap and Vector3.snapped
2017-07-03 23:43:33 +02:00
TwistedTwigleg
44ecfb028d
Fixed syntax inconsistency in Vector3.snap and Vector3.snapped
2017-07-03 16:29:03 -04:00
Juan Linietsky
2a3e00c8c7
-Many fixes to VisualScript, fixed property names, etc.
...
-Added ability to set/get a field in GetSet, as well as assignment ops
-Added a Select node
-Fixed update bugs related to variable list and exported properties, closes #9458
2017-06-30 21:35:05 -03:00
Rémi Verschelde
cb59236ce9
Disable etc2comp and tinyexr modules on non-tools build
...
They are not necessary in such configuration, and require C++11
and (on Android) the STL.
Fixes #9273 .
2017-06-30 18:16:38 +02:00
Rémi Verschelde
72bf46649e
Merge pull request #9360 from GodotExplorer/pr-external-editor-language-check
...
Better user experience with external text editors.
2017-06-27 08:15:54 +02:00
geequlim
6687484958
Better user expirence with external text editors.
...
Implements open_in_external_editor for subclasses of ScriptLanguage.
Add option 'Debug with external editor' to debug menu to control the behavoir of script opened by editor.
2017-06-27 12:55:16 +08:00
Juan Linietsky
3ce046ee0c
-Fixed SCREEN_TEXTURE and other related 2D shader parameters.
...
-Fixded BackBuffercopy object
2017-06-26 22:58:46 -03:00
Rémi Verschelde
a50fb2f729
Revert "Revert "Fixed RegEx::search missing return type hint""
2017-06-26 22:38:11 +02:00
Juan Linietsky
340c0ba0a0
Revert "Fixed RegEx::search missing return type hint"
2017-06-26 17:36:42 -03:00
Rémi Verschelde
0db10b9992
Merge pull request #9379 from leezh/regex_bind_fix
...
Fixed RegEx::search missing return type hint
2017-06-26 22:33:16 +02:00
Zher Huei Lee
f01ce3276e
Fixed inverted group thrown off by quantifiers
2017-06-26 15:25:10 +08:00
Zher Huei Lee
382db0898e
Fixes RegEx capture grabbing too much #9382
...
Incorrect behaviour was caused when next->test was throwing off the
results.
2017-06-26 15:16:33 +08:00
Zher Huei Lee
1e1b2d22ad
Fixed RegEx::search missing return type hint
2017-06-26 05:52:56 +08:00
Rémi Verschelde
87fd71244b
Merge pull request #9334 from Noshyaar/pr-genh
...
BuildSystem: generated files have .gen.extension
2017-06-25 11:08:36 +02:00
Rémi Verschelde
41bbf106e6
Merge pull request #9349 from volzhs/freetype-2.8
...
Update freetype to 2.8
2017-06-25 10:42:04 +02:00
volzhs
0f8cc0fa5b
Update freetype to 2.8
2017-06-25 10:41:12 +09:00
Poommetee Ketson
e3998528e0
BuildSystem: generated files have .gen.extension
2017-06-25 07:55:01 +07:00
Rémi Verschelde
9c186a754f
Merge pull request #8783 from bojidar-bg/fix-range-loop-type
...
Fix for..in range() resulting in floats instead of ints
2017-06-24 23:39:55 +02:00
Juan Linietsky
00e5ba3143
Remove methods from code completion which are already exposed by properties, makes completion cleaner and more close to the documentation.
2017-06-23 15:10:46 -03:00
Mariano Suligoy
7fe750583e
GdScript: Add signal autocompletion to emit_signal function
2017-06-23 07:51:49 -03:00
Ignacio Etcheverry
07fe7d99ea
Adds completed signal to GDFunctionState
2017-06-23 02:29:23 +02:00
Bojidar Marinov
26a51c3c0b
Reimplement for..in range() so that it always results in ints
...
Fixes #8278 , fixup of bfef8de1bc
2017-06-22 20:41:52 +03:00
Karroffel
de18b8ee96
[GDNative] added GDN_EXPORT macro for libraries
...
Up until now there only was GDAPI which was used
for the procedures Godot exposes.
2017-06-18 01:16:10 +02:00
Rémi Verschelde
c210de581e
etc: Do not overestimate number of CPU threads
...
The *2 factor between cores and threads of most modern CPUs
is already taken into account in get_processor_count().
2017-06-17 10:51:50 +02:00
Juan Linietsky
b19225bfce
-Fix freezes caused by etccomp2, closes #9183
...
-Normalmaps are now detected and imported as RGTC, both in S3TC and ETC2, this improves their quality.
2017-06-16 21:49:37 -03:00
George Marques
7966ebe6fa
Complete changing of resource extensions
...
Some places were missing in e42d59f
.
2017-06-16 15:42:18 -03:00
Karroffel
f0cf946063
[GDNative] corrected typo for Mac library ext.
...
Seems like the extension is .dylib and not .dynlib.
This should make it easier to select files from the editor.
2017-06-16 15:48:05 +02:00
George Marques
e42d59f01e
Rename Godot-specific resource extensions
2017-06-15 21:35:20 -03:00
Rémi Verschelde
19017a760c
Merge pull request #9158 from Hinsbart/script_templates
...
Add ability to use custom script templates.
2017-06-14 23:11:41 +02:00
Juan Linietsky
a8e845a474
Merge pull request #8548 from tagcup/etc2comp
...
Add ETC1/ETC2 compression support though etc2comp.
2017-06-13 19:17:13 -03: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
Juan Linietsky
12b2652ecb
Merge pull request #9104 from tagcup/zstd
...
Add zstd compression support.
2017-06-11 18:41:56 -03:00
alexholly
935f730170
renamed all Rect3.pos to Rect3.position
2017-06-09 15:54:02 +02:00
Ferenc Arn
f177c15347
Add zstd compression support.
...
zstd has much better compression speed and ratio, and better decompression speed than currently available methods.
Also set zstd as the default compression method for Compression as well as FileAccessCompressed functions.
2017-06-08 23:48:14 -05:00
Juan Linietsky
612ab8fcdb
-Restored multithread capability to VisualServer
...
-Restored resource previews!
2017-06-09 00:24:18 -03:00
Rémi Verschelde
01ed55987c
Merge pull request #9058 from touilleMan/gdnative-clean-and-add-properties
...
Continue improving GDNative
2017-06-08 10:31:13 +02:00
Emmanuel Leblond
8ecdbfc417
[GDnative] API consistency + missing properties
2017-06-08 07:21:53 +02:00
Juan Linietsky
871ceeb0fe
TGA support based on SaracenOne's work.
2017-06-07 19:46:36 -03:00
Rémi Verschelde
f8d7670e82
Merge pull request #9038 from AlexHolly/rect2-rename-pos
...
renamed all Rect2.pos to Rect2.position
2017-06-05 15:52:05 +02:00
Rémi Verschelde
075c7d8133
Merge pull request #8990 from zer0problem/master
...
Fixed .hdr support to compile on windows
2017-06-05 15:45:53 +02:00
Rémi Verschelde
d3afecf681
Merge pull request #8974 from Paulb23/script_overview
...
Added script overview
2017-06-05 15:42:12 +02:00
alexholly
a3c90b0293
renamed all Rect2.pos to Rect2.position
2017-06-04 02:09:17 +02:00
Andreas Haas
9bc5348961
InputEvent: Renamed "pos" property to "position"
...
Make the naming consistent with other classes.
2017-06-03 11:26:39 +02:00
Juan Linietsky
8a1097a224
many fixes to image loader, voxel cone tracing, etc.
2017-06-02 22:08:41 -03:00
Ferenc Arn
6a9c990da7
Add ETC1/ETC2 compression support though etc2comp.
...
Remove rg-etc1 code. Also updated travis to use ubuntu 14.04.
Fixes #8457 .
2017-05-31 18:59:00 -05:00
Juan Linietsky
a134f58fb3
rewritten PBR implementation to make it friendlier with Blender
2017-05-31 20:29:56 -03:00
sheepandshepherd
4844013827
Fix GDNative PoolVector typos
2017-05-31 23:44:20 +02:00
zer0problem
cc05a90bf7
Fixed compiling on windows after .hdr support
...
Changed type to avoid casting.
2017-05-31 13:11:11 +02:00
sheepandshepherd
9f34bb4ebe
Wrap copy constructor for some GDNative types
2017-05-31 00:03:50 +02:00
Juan Linietsky
5567e898d1
Several fixes related to PBR and Environment
2017-05-30 08:56:19 -03:00
Paulb23
a4e222ae71
Added members overview
2017-05-29 12:56:33 +01:00
Juan Linietsky
bb20f230ad
-Added .hdr format support
...
-Added default environment editor setting
-Added environment created by default in new projects
-Removed default light and ambient from spatial editor, to make the editor more PBR compliant
2017-05-28 21:48:05 -03:00
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