Commit graph

12765 commits

Author SHA1 Message Date
karroffel
0b2afa24b8 add initial NativeScript 1.1 extension
This commit adds new functionality to NativeScript, namely:

 - ability to set and get documentation for classes, methods,
   signals and properties

 - ability to set names and type information to method arguments

 - ability to set and get type tags for nativescripts

 - ability to register instance binding data management functions

 - ability to use instance binding data
2018-02-09 15:04:41 +01:00
karroffel
2fb66df669 generate proper API structs for GDNative extension extensions
The GDNative C API gets passed to libraries in a struct of function
pointers. To provide stable binary compatibility, each extension not
part of the core API is separated into its own sub-struct.

These structs aren't meant to be changed in order to keep binary
compatibility.

In case of an API extension, the structs include a `next` pointer
which can point to a new struct with additional function pointers.

Godot's build system generates the API structs automatically at
build time, but so far there has no support for the mentioned `next`
pointers.

This commit changes the API struct generation in such a way that code
that used previous headers will compile without problem with the new
headers.

The new extension-extensions (weird name, but that's what it is) get
generated recursively and include the version in the struct-name.
2018-02-09 11:44:54 +01:00
Rémi Verschelde
cbdd410a6f
Merge pull request #15899 from karroffel/stringbuffer-template-arg
add template argument for size in StringBuffer
2018-02-07 11:37:10 +01:00
Poommetee Ketson
776568fc9e
Merge pull request #16460 from ronroniv/patch-1
Update an outdated method name in error message
2018-02-07 11:04:21 +07:00
ronroniv
5e8f7c9782
Update an outdated method name in error message
set_enable_monitoring -> set_monitoring
2018-02-07 12:32:05 +09:00
Rémi Verschelde
b0a73077cb
Merge pull request #14888 from Faless/websocket
Websocket module
2018-02-07 01:05:04 +01:00
Fabio Alessandrelli
f3abd4a065 Travis builds use builtin_openssl for X11
1.0.2 is now the minimum version of openssl to build against
2018-02-06 14:10:13 +01:00
Fabio Alessandrelli
658d71c3b9 Relicense module to the wondeful Godot community! 2018-02-06 14:10:13 +01:00
Fabio Alessandrelli
6a644d3ee1 Add websocket module.
Webassembly is client-only for obvious reasons.
Other platforms support both client and server using libwebsockets.
2018-02-06 14:10:13 +01:00
Poommetee Ketson
3cb1b2227f
Merge pull request #16434 from Silvea12/kinematic-docs
Fixed KinematicBody move_and_slide documentation naming

[ci skip]
2018-02-06 13:54:19 +07:00
Andrew Silver
da81d9f843 Fixed KinematicBody move_and_slide documentation naming 2018-02-05 21:44:53 +01:00
Hein-Pieter van Braam
5c9ecc174b
Merge pull request #16419 from nical/issue-16395
Fix polygon triangulation failure.
2018-02-05 17:59:17 +01:00
Fabio Alessandrelli
fa33e0f62d Add libwebsockets as thirdparty library.
License is LGPLv2.1 + static linking exception, version is 2.4.1
2018-02-05 16:11:41 +01:00
Nicolas Silva
91215e1919 Fix polygon triangulation failure.
The ear clipping algorithm used to triangulate polygons has a slightly too conservative point-in-triangle test which can, in some configurations prevent it from finding a possible tessellation. Relaxing the test by considering that points exactly on edges don't belong the triangle fixes the issue. Changing the semantic of the test is safe because no other code makes use of it. A more detailed explanation can be found in issue #16395.

Fixes #16395.
2018-02-05 16:01:24 +01:00
Hein-Pieter van Braam
e836a7d88d Kill an old debugging message
When running the engine with -d we get a message on the command-line for
each control being clicked. After discussing with @reduz it seems that
this is old and should be removed. Commented out as requested.
2018-02-05 11:18:49 +01:00
George Marques
ea99b90a77
Merge pull request #16361 from philj56/master
Fix minor spelling mistake in texture import menu
2018-02-03 18:12:56 -02:00
George Marques
ba6a0a3e3d
Merge pull request #16362 from clktmr/master
Fix broken variant call of Vector3.snapped
2018-02-03 18:10:11 -02:00
Timur Celik
c16f61190c Fix broken variant call of Vector3.snapped 2018-02-03 19:57:12 +01:00
Phil Jones
d1a471f909 Fix texture import spelling 2018-02-03 18:38:39 +00:00
Poommetee Ketson
047cb97ff7
Merge pull request #16354 from Noshyaar/gradient
Gradient: fix wrong property type
2018-02-03 23:03:58 +07:00
Poommetee Ketson
4f9ef96b54 Gradient: fix wrong property type 2018-02-03 22:38:54 +07:00
Poommetee Ketson
4ab522799d
Merge pull request #16347 from Chaosus/gradientpreviewfix
Fix gradient texture preview
2018-02-03 16:55:52 +07:00
Poommetee Ketson
5f891eae6b
Merge pull request #16346 from binbitten/issue_16345
Fix wrong property type for fixed icon size in ItemList
2018-02-03 16:54:22 +07:00
Chaosus
3ba43ac975 Fix gradient texture preview 2018-02-03 12:10:44 +03:00
binbitten
331cfc1d18 Fix wrong property type for fixed icon size in ItemList 2018-02-03 10:02:27 +01:00
Juan Linietsky
82df614457 Add a proper error when safe save fails. 2018-02-02 23:50:41 -03:00
Andreas Haas
95cfa9bf74
GDScriptParser: Remove debug prints. 2018-02-02 20:37:59 +01:00
Rémi Verschelde
f13d034485 Update DONORS list
[ci skip]
2018-02-02 10:04:45 +01:00
Rémi Verschelde
abf82057f3
Merge pull request #16296 from YeldhamDev/control_doc
[DOCS] Small fixes for the Control description
2018-02-01 23:49:13 +01:00
Michael Alexsander Silva Dias
5e0821e867 Small fixes for the Control description in the docs. 2018-02-01 19:43:44 -02:00
Rémi Verschelde
0033e72a0f
Merge pull request #16276 from bcr3ative/issue_15668
Fix inconsistencies and typos in argument names
2018-02-01 17:26:13 +01:00
Rémi Verschelde
4cb64feae8
Merge pull request #15910 from robfram/fix-audio-signal-issue-15895
Fix issue #15895, audio streams don't signalling finished after the first one
2018-02-01 16:54:31 +01:00
Rémi Verschelde
51d3dee9c2
Merge pull request #15946 from MarianoGnu/issue_15870
Attemp to fix #15870
2018-02-01 16:49:35 +01:00
Paolo Perkovic
08d4bfacaf Fix inconsistencies and typos in argument names 2018-02-01 16:47:20 +01:00
Rémi Verschelde
2459eebc1d
Merge pull request #16258 from NathanWarden/fix_mono_decimals_method
[Mono] Fix an infinite recursion in the Mathf.Decimals method when using floats.
2018-02-01 15:39:51 +01:00
Rémi Verschelde
0d255df93a
Merge pull request #16252 from ProfesorTartelett/patch-1
Errata fix on Image get_format() description
2018-02-01 15:34:53 +01:00
Rémi Verschelde
9247f2de37
Merge pull request #16249 from binbitten/fix-highlight-ofs
Fix TextEdit current line highlight horizontal offset
2018-02-01 15:25:02 +01:00
Rémi Verschelde
c460e38bf3
Merge pull request #16205 from neikeq/issue-15053
Mono: Remove automatic script multilevel calls
2018-02-01 14:51:12 +01:00
Rémi Verschelde
906ac2fc9d
Merge pull request #16002 from bruvzg/mono_loading_form_res
[Mono] Allow loading assemblies (including mscorlib) from resources.
2018-02-01 14:36:05 +01:00
Rémi Verschelde
ff287d8341
Merge pull request #15254 from mrcdk/pitch_scale
Added pitch scale property to AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D
2018-02-01 14:26:27 +01:00
Rémi Verschelde
6449af9f74
Merge pull request #16175 from NathanWarden/add_async_and_await
Added async and await as C# keywords.
2018-02-01 14:19:48 +01:00
Rémi Verschelde
7fdde54586
Merge pull request #16266 from volzhs/expand-root-dir-on-start
Expand project root directory on editor start
2018-02-01 14:18:11 +01:00
Rémi Verschelde
7389ee92d3
Merge pull request #16255 from guilhermefelipecgs/fix_button_tree
Hide button tree when file system dock isn't in split mode
2018-02-01 14:15:13 +01:00
Rémi Verschelde
5585f011c5
Merge pull request #16251 from guilhermefelipecgs/fix_open_button_for_multiple_select
Fixes open button not appearing with multiple selection
2018-02-01 14:14:36 +01:00
volzhs
127d1241bd Expand project root directory on editor start
close #16232
Option for expanding all directories on start up is a bit tricky and buggy.
2018-02-01 11:24:40 +09:00
Guilherme Felipe
bb936b5503 Hide button tree when file system dock isn't in split mode 2018-01-31 17:47:23 -02:00
Nathan Warden
2109bd3f97 Fix an infinite recursion in the Mathf.Decimals method when using floats. 2018-01-31 14:02:17 -05:00
Profesor Tartelett
9d735ffacb
Errata fix on Image get_format() description
The description of this function seems to be duplicated from the preceding description.
2018-01-31 19:35:46 +01:00
Guilherme Felipe
09c277693e Fixes open button not appearing with multiple selection
Fix #16231
2018-01-31 16:25:42 -02:00
binbitten
ba8c5bff69 Fix TextEdit current line highlight horizontal offset 2018-01-31 19:04:50 +01:00