Poommetee Ketson
8b4853593f
VisualScript: add inverse_lerp & range_lerp
2017-10-13 19:47:07 +07:00
Ruslan Mustakov
6e61649d03
Add NIL_IS_VARIANT usage to few definitions
...
The missing usage flag led to GDNative API descriptions containting
arguments with "void" type.
2017-10-05 18:51:22 +07:00
Andreas Haas
e027e649c0
Merge pull request #11789 from djrm/pr_visual_improvements
...
Added correct initialization for script editor theme.
2017-10-03 19:56:14 +02:00
Nathan Lovato
5db7f6a869
Merge pull request #11653 from bojidar-bg/doc-vscript-1
...
[DOCS] Document some of the VisualScript classes
2017-10-03 11:58:06 +02:00
Bojidar Marinov
f533561a1c
Document some of the VisualScript classes.
2017-10-03 12:01:53 +03:00
Daniel J. Ramirez
e96dbe7f16
VS now supports white themes.
2017-10-02 21:31:32 -05:00
Daniel J. Ramirez
26df4393c1
Added correct initialization for script editor theme.
...
Some style fixes for VS interface.
2017-10-02 18:33:42 -05:00
Andreas Haas
ff221abf5e
Merge pull request #11659 from AndreaCatania/prephysics
...
Renamed fixed_process to physics_process
2017-10-02 23:10:36 +02:00
AndreaCatania
1155f74008
Renamed fixed_process to physics_process
2017-09-30 16:19:07 +02:00
Marcelo Fernandez
ce7c87e435
VisualScript crashfix when returns are too few
2017-09-30 11:18:50 -03:00
Gilles Roudiere
01a7068f52
Remove unecessary anchors&margins set causing bad display (sons of containers)
2017-09-27 00:38:28 +02:00
Rémi Verschelde
cf6b55e4f2
Merge pull request #11424 from groud/control_node_presets
...
Implements set_margins_preset(...)
2017-09-26 00:11:46 +02:00
Juan Linietsky
6d05a789a8
Fixed constness of variant functions, as well as visual script sequence ports. Closes #11258
2017-09-25 17:09:27 -03:00
Gilles Roudiere
fe1a714d15
Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE)
2017-09-22 11:39:44 +02:00
Rémi Verschelde
edfa86961c
Merge pull request #11153 from letheed/rename-pos
...
Rename pos/rot/loc/scl
2017-09-20 13:22:47 +02:00
letheed
79d71f67d9
Rename pos to position in user facing methods and variables
...
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:
* pos -> position
* rot -> rotation
* loc -> location
C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Rémi Verschelde
0de1d2f2b9
Merge pull request #11256 from djrm/pr_visual_improvements
...
Visual improvements and new look for VS
2017-09-19 23:44:09 +02:00
Hein-Pieter van Braam
938cc63cfa
Move Variant::evaluate() switch to computed goto
...
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
2017-09-17 22:49:23 +02:00
Thomas Herzog
39f7d04049
Merge pull request #11230 from maxim-sheronov/fix_enum_bindings
...
Fix enums bindings
2017-09-15 08:43:35 +02:00
Daniel J. Ramirez
2bab00e0d8
Improved VisualScriptEditor
2017-09-14 12:45:42 -05:00
Rémi Verschelde
5e0f161c23
Merge pull request #11259 from RaTi17/master
...
Fix 2 typos, rename "/constant" to "constant"
[ci skip]
2017-09-14 11:43:30 +02:00
Jeroen
cd40e62ae3
Fix 2 typos
2017-09-14 10:31:43 +02:00
Maxim Sheronov
beac3e142d
Fix enums bindings
...
Add missed bindings for enums
Move some enums to class to have correct output of api.json
2017-09-13 20:57:07 +03:00
Rémi Verschelde
85848e1c89
Merge pull request #11076 from hpvb/fix-10935
...
Fix crash on wrong type drag into the vs editor
2017-09-13 19:28:13 +02:00
Rémi Verschelde
cd12f6e737
Merge pull request #11072 from djrm/pr_better_theme
...
Several visual improvements
2017-09-12 20:19:59 +02:00
Daniel J. Ramirez
608401ae27
Improved VS node coloring
2017-09-12 13:16:47 -05:00
Daniel J. Ramirez
7dc3116fd8
Improved theme generation, and other fixes
2017-09-12 13:16:38 -05:00
Juan Linietsky
58c9a8f762
Many fixes to visual script, changed virtuals override for a proper selector.
2017-09-12 07:58:54 -03:00
Hein-Pieter van Braam
26ff61860c
Fix crash on wrong type drag into the vs editor
...
Don't allow drops of draggable items without a vs node type.
This fixes #10935
2017-09-09 00:34:53 +02:00
Hein-Pieter van Braam
fd5acbe6cb
Fix unused variable warnings
...
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08 15:03:53 +02:00
Rémi Verschelde
b6e19aef41
Merge pull request #10939 from neikeq/fix-overridden-external-editors
...
Fixes language overridden external editors
2017-09-04 08:12:29 +02:00
Ignacio Etcheverry
c71192bd5f
Fixes language overridden external editors
2017-09-03 21:23:36 +02:00
Daniel J. Ramirez
182e1e640f
Fix. resizeable -> resizable.
...
(not actually a typo, but the rest of the API uses resizable)
2017-09-03 13:12:52 -05:00
Rémi Verschelde
22dfd8c8da
Merge pull request #10890 from Noshyaar/an-pr
...
Fix typos 'a' and 'an'
[ci skip]
2017-09-02 16:37:40 +02:00
Poommetee Ketson
35e3661998
Fix typos 'a' and 'an'
2017-09-02 21:19:06 +07:00
Hein-Pieter van Braam
cda3556907
Fix use of unitialized variables
...
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-02 01:59:26 +02:00
Rémi Verschelde
750c70b044
Merge pull request #10861 from Noshyaar/pr-header
...
Fix files header
[ci skip]
2017-09-01 16:14:37 +02:00
Poommetee Ketson
2460e901b0
Fix files header
2017-09-01 21:07:55 +07:00
Rémi Verschelde
979dbc3fb2
Merge pull request #10750 from Rubonnek/fix-duplicate-script-changed-signal
...
Renamed 'script_changed' signal in the script editor plugin to 'edited_script_changed'
2017-08-30 12:46:00 +02:00
Ignacio Etcheverry
19ceb343ec
DocData and type hints fixes
...
- 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.
2017-08-29 19:40:21 +02:00
Wilson E. Alvarez
a1ba908e0b
Renamed 'script_changed' signal in the script editor plugin to 'edited_script_changed'
2017-08-29 10:24:10 -04:00
Rémi Verschelde
0df10e88da
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Wilson E. Alvarez
51d81d1237
Added/Fixed null pointer checks
2017-08-26 16:58:47 -04:00
Andreas Haas
dc8bc77467
Editor: Add some more translatable strings.
2017-08-25 18:49:45 +02:00
Hein-Pieter van Braam
cb8d50b35e
Convert Object::cast_to() to the static version
...
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/
2017-08-24 23:08:24 +02:00
Rémi Verschelde
c9497dbfff
Merge pull request #10563 from Hinsbart/vs_cancel_select
...
VisualScriptEditor: Remove Node when canceling PropertySelector.
2017-08-23 08:09:27 +02:00
Andreas Haas
a92989ca9b
VisualScriptEditor: Remove Node when canceling PropertySelector.
2017-08-22 21:56:18 +02:00
Wilson E. Alvarez
b2e1a4fe00
Removed unnecessary returns and break statements
2017-08-22 13:01:57 -04:00
Juan Linietsky
a3a12ffbe5
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
Ignacio Etcheverry
a2ae9ae426
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00