Andreas Haas
f7436c7d16
Add "bool" to GDScript reserverd keywords
...
Noticed that "bool" wasn't highlighted when used like `export(bool) var is_xy = false`
(cherry picked from commit c871cf6801
)
2016-06-25 02:04:27 +02:00
Juan Linietsky
6e49bc8210
Properly report a valid error instead of reporting as a bug, closes #3841
...
(cherry picked from commit 95e3279d34
)
2016-06-25 02:04:27 +02:00
Dennis Brakhane
a04a78c7f6
correctly parse floats in scientific notation
...
GDScript incorrectly parsed float values in scientific notation
when no decimal point was given. "1e-5" was parsed as "15".
Fix this by not requiring a decimal point when we found an exponent
for the number to be considered a float.
Fixes #5267
(cherry picked from commit c246931f03
)
2016-06-25 01:41:57 +02:00
George Marques
d8f9c95dbd
Fix crash in code completion
...
Fix #4641
(cherry picked from commit 17b6cebcfe
)
2016-06-25 01:41:56 +02:00
Juan Linietsky
7987147502
gdscript tokenizer will dislike use of case, closes #4991
...
(cherry picked from commit ceeb5453a8
)
2016-06-25 01:22:41 +02:00
Juan Linietsky
d945dbdd0f
remove unnecesary found bug? print, closes #5028
...
(cherry picked from commit fea9511bc6
)
2016-06-25 01:22:40 +02:00
George Marques
47f8da5409
Fix Color8 constructor using wrong value range
...
Fix #5015
(cherry picked from commit 43dad78209
)
2016-06-05 00:00:08 +02:00
Rémi Verschelde
1d85dcb1fa
GDScript: Fix method info for is_nan and is_inf
...
As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented
(cherry picked from commit b58e261d41
)
2016-06-04 22:20:02 +02:00
Rémi Verschelde
27461a79dc
GridMap: Fix backwards rotate hotkeys ( #4498 )
...
Fixes #1237
(cherry picked from commit 8259c46707
)
2016-05-01 12:28:14 +02:00
Saracen
b2b5c495e1
Subclasses can now extend from other subclasses contained in scripts derived from relative paths.
...
(cherry picked from commit d643a40f95
)
2016-04-27 08:42:48 +02:00
Rémi Verschelde
bac8248316
Remove trailing spaces
...
(cherry picked from commit 0a5472e697
)
2016-04-02 22:19:40 +02:00
Hubert Jarosz
424a104666
remove trailing whitespace
...
(cherry picked from commit 4a4f247914
)
2016-04-02 22:03:48 +02:00
est31
7ba92ae9eb
Fix typo in error
2016-02-27 15:26:27 +01:00
Juan Linietsky
70cdfa681a
-Change link to new documentation
...
-fixed bug in tilemap collision debug
2016-02-20 10:02:14 -03:00
Rémi Verschelde
285c400288
Merge pull request #3658 from Hinsbart/doc_joyevent
...
doc: use correct identifiers for InputEventJoystick{Motion, Button}
2016-02-11 07:17:43 +01:00
hondres
6de2b9d864
doc: use correct identifier for InputEventJoystick{Motion, Button}
2016-02-10 23:37:25 +01:00
Juan Linietsky
61f03c98c8
-Added missing functions to the doc, fixes #3583
2016-02-09 16:58:03 -03:00
Rémi Verschelde
6ea0863ed3
Merge pull request #3587 from akien-mga/pr-reserved-keyords
...
Fix missing comma
2016-02-04 18:57:25 +01:00
Rémi Verschelde
ade7329625
Fix missing comma
2016-02-04 18:56:41 +01:00
George Marques
0f41a18344
Merge pull request #3582 from akien-mga/pr-reserved-keyords
...
Add preload and PI to GDScript reserved keywords
2016-02-04 14:52:44 -02:00
Rémi Verschelde
99d9188da8
Add preload and PI to GDScript reserved keywords
...
I've noticed that gd_tokenizer also has keywords for `switch' and `do', but they seem not to be supported actually (only used in commented code for the shader language), so I don't add them.
2016-02-04 10:26:10 +01:00
Rémi Verschelde
8151110002
Reorder reserved words by categories
...
They were previously kind of sorted with a mix between alphabetical and logical ordering, which made it hard to spot duplicates or missing words.
2016-02-04 10:17:23 +01:00
Juan Linietsky
817fd1ab71
-Added method flags to global constants for script
...
-Added a new flag METHOD_FLAG_FROM_SCRIPT to get_method_list() flag property. Closes #3489
2016-01-31 15:40:51 -03:00
Rémi Verschelde
7af864f467
Merge pull request #3445 from akien-mga/master
...
Add missing return for typeof() MethodInfo
2016-01-26 00:03:33 +01:00
Rémi Verschelde
e38b797c97
Add missing return for typeof() MethodInfo
2016-01-25 10:55:50 +01:00
hondres
56ce58d57c
can preload constants
2016-01-24 23:45:11 +01:00
Juan Linietsky
de7fe2fced
-remove unnecesary error report, fixes #3361
2016-01-23 15:36:03 -03:00
Franklin Sobrinho
0426806ebf
Removed GDScript "function" keyword
2016-01-13 17:59:39 -03:00
Juan Linietsky
5fca2bd4bc
Reworked how autoloads are load to make sure identifiers always exist, please check if this resolves bug #3156
2016-01-13 08:27:14 -03:00
Juan Linietsky
1a9c3a134d
-Make Akien happy, fixes #3068
...
(seems I wrote all the code, then forgot to use the enum...)
2016-01-10 23:13:02 -03:00
Ignacio Etcheverry
d50e8d2bad
Added missing onready token name
2016-01-07 18:59:37 +01:00
Juan Linietsky
cb39db0b02
Fixed bug with default arguments in gdscript, closes #2024
2016-01-03 21:11:11 -03:00
Juan Linietsky
23441ec867
Added var2bytes and bytes2var to convet any variable to bytes and back. Closes #2075
2016-01-02 21:07:03 -03:00
Juan Linietsky
1597082c85
-Ability to roll-back script-exported properties to their default value on the script, closes #2128
2016-01-02 20:17:31 -03:00
Juan Linietsky
61745855d0
PI is now a built-in constant, fixes #2134
2016-01-02 17:56:45 -03:00
Juan Linietsky
0e0a7c9494
-properly handle newline in \ (line continuation) in gdscript, fixes #2112
...
-also fix a small crash in export detection with scripts that include themselves
2016-01-02 13:56:58 -03:00
George Marques
5be9ff7b67
Update copyright to 2016 in headers
2016-01-01 11:50:53 -02:00
Juan Linietsky
64872ca811
small fixes to color8
2015-12-31 18:32:56 -03:00
Juan Linietsky
37f2222dd7
-Added Color8(r8,g8,b8,a8) function as well as .r8,.g8,.b8,.a8 members to Color, to deal with colors in the 0-255 range. Closes #2345
2015-12-31 18:26:49 -03:00
Juan Linietsky
ec3d17b4e2
force thread model to single-safe when running editor, fixes #2387
2015-12-31 16:24:27 -03:00
Juan Linietsky
b60a3e7202
-Changed var2str and str2var in GDScript to use VariantWriter and VariantParser
...
-It is now finally possible to parse back a variant from text!
2015-12-31 00:54:00 -03:00
Zher Huei Lee
61a1f596cc
added missing null check
...
for p_func inside _parse_function
2015-12-30 01:02:31 +00:00
Zher Huei Lee
821351be04
added missing onready allocation for subclasses
...
Fixes #3158
2015-12-30 00:23:26 +00:00
reduz
7d2d1442f8
-add breakpoint statement to ease with debugging, closes #3165
2015-12-29 12:11:21 -03:00
reduz
99736e63e4
-fixed bug with some indent blocks not properly checked, fixes #2570
...
-added ability to do one-line blocks, such as: if something: print("hello") , to be more python-like
2015-12-29 11:41:37 -03:00
reduz
f7b64a62d1
-renamed function get_relative_transform() to get_relative_transform_to_parent(), makes more sense
...
-fixed newly introduced bug in onready keyword, fixes #3155
2015-12-28 21:05:57 -03:00
reduz
30c12297dc
- added 'onready' keyword to gdscript. Defers initialization of member variables until _ready() is run.
2015-12-28 19:32:51 -03:00
reduz
110de2ccac
-Added proper code completion for singletons
2015-12-28 16:36:29 -03:00
reduz
e0d21d2158
Ability to set autoloads as singleton global variables
2015-12-28 15:59:20 -03:00
Rémi Verschelde
d4993b74fc
Add missing argument names in GDScript bindings
...
All classes were reviewed apart from VisualServer for which no argument name is documented at all.
While doing this review, I found quite a few bugs that were fixed either in earlier commits or this one (mostly documentation bugs though, i.e. some arguments were listed at the wrong place).
2015-12-28 02:13:05 +01:00