curtisxk38
5a1bcae6c2
Fix typo in Parser Error message
...
(cherry picked from commit d35fab7382
)
2017-05-26 17:37:46 +02:00
Rémi Verschelde
f90eb87193
Revert "Make inline blocks in GDScript more pythonic"
...
This reverts commit 0c650c2511
.
Fixes #8315 .
2017-04-08 16:08:22 +02:00
Rémi Verschelde
e9b045d9e5
Add "Godot Engine contributors" copyright line
2017-04-08 00:45:24 +02:00
Bojidar Marinov
dad8e04139
Add enum naming, by assinging a given enum's values to a Dict
...
(cherry picked from commit 88430f0962
)
2017-04-06 19:01:43 +02:00
Bojidar Marinov
ed80f4563a
Adds enums to GDScript
...
Fixes #2966
(cherry picked from commit 4ee82a2c38
)
2017-04-06 19:01:43 +02:00
Bojidar Marinov
0c650c2511
Make inline blocks in GDScript more pythonic
...
Fixes #8001
(cherry picked from commit 18ab88b3f1
)
2017-03-24 23:19:14 +01:00
Rémi Verschelde
f8db8a3faa
Bring that Whole New World to the Old Continent too
...
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6
.
2017-03-19 00:36:26 +01:00
Rémi Verschelde
16b78da941
Style: Various fixes to play nice with clang-format
...
(cherry picked from commit 2a0ddc1e89
)
2017-03-18 23:13:47 +01:00
Hein-Pieter van Braam
4cf49bb6f4
Allow preload to accept a const string.
...
In preload() parsing this code will lookup the identifier in the local
constant database. If the identifier corresponds to a string constant
it is used as the path for preload().
Currently this does not work for global constants, only constants
declared in the same class as the preload is happening. We can implement
a full fix too. Maybe we can use this PR to discuss the possibilities.
This (partially) fixes #6798
(cherry picked from commit 3e5743ca36
)
2017-03-18 20:10:36 +01:00
Rémi Verschelde
d8223ffa75
Welcome in 2017, dear changelog reader!
...
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer
with state-of-the-art rendering techniques tuned to work as low as middle
end handheld devices - without compromising with the possibilities given
for higher end desktop games of course. Great times ahead for the Godot
community and the gamers that will play our games!
(cherry picked from commit c7bc44d5ad
)
2017-01-12 19:15:30 +01:00
Bojidar Marinov
4c9c43735a
Disallow assignment to expressions
...
Fixes #6824
(cherry picked from commits 0b077162a3
and dcc4ee21c1
)
2017-01-12 19:15:28 +01:00
Bojidar Marinov
6ad84850ab
Ternary operator in GDScript (a if x else b)
...
Fixes #1961
2017-01-10 17:09:26 +01:00
Bojidar Marinov
c0743f898a
Allow for linebreaks in function calls and definitions and yeild/signal.
...
(Plus maybe a few other things)
2017-01-10 17:08:50 +01:00
Fabio Alessandrelli
d5ee98bb2c
Revert "Add warning when (pre)loading paths with leading / ( #4280 - #3106 )"
...
Also closes : #6801
This reverts commit e59820ac94
.
(cherry picked from commit 11349a786b
)
2016-10-17 20:48:52 +02:00
Fabio Alessandrelli
e51cd3d454
Throw an error when exporting a resource class
...
"export var tex = Texture"
will now throw an error to avoid crashing the editor:
"Exported constant not a type or resource"
Fixes #6719 . Closes #6729
(cherry picked from commit ee7df2c89a
)
2016-10-09 17:40:19 +02:00
Fabio Alessandrelli
ba095b8dcc
Add warning when (pre)loading paths with leading / ( #4280 - #3106 )
...
(cherry picked from commit e59820ac94
)
2016-10-09 17:34:23 +02:00
Juan Linietsky
f51a816253
Set proper line into operators when parsing GDScript, fixes #5822
2016-07-22 09:23:26 -03:00
George Marques
8113ba8bef
Allow semicolon after 'pass' keyword
2016-07-10 12:20:53 -03:00
George Marques
4bf31b3f3d
Revert removing of function call in gd_parser
...
The function call was removed in #5538 because of the unused return value,
but the function itself has side effects and the absence of the call was
causing crashes.
2016-07-08 22:12:59 -03:00
Rémi Verschelde
b6ac91c0e6
Removed unused variables (first pass)
...
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
2016-07-07 23:15:03 +02:00
Juan Linietsky
e49b73e93a
Only check for constants when parsing constants, should close #5497
2016-06-30 10:40:13 -03:00
Juan Linietsky
cf0fbe493f
Ability to put constants in constant expressions, closes #5264
2016-06-29 22:17:55 -03:00
Juan Linietsky
f4c6640827
Fixed bug related to resolving constants in a class, closes #1110
2016-06-28 11:02:53 -03:00
Juan Linietsky
95e3279d34
Properly report a valid error instead of reporting as a bug, closes #3841
2016-06-24 10:30:36 -03:00
Juan Linietsky
fea9511bc6
remove unnecesary found bug? print, closes #5028
2016-06-11 20:36:28 -03:00
Juan Linietsky
9ddc13a5cc
-All variables from script are visible through get_property_list(), not just those with export()
...
-Added PROPERTY_USAGE_SCRIPT_VARIABLE to identify what comes from script
-closes #5146
2016-06-11 18:34:49 -03:00
Juan Linietsky
3e8eb396d7
Finalized DynamicFont implementation
...
-DynamicFont uses Freetype by default
-Editor fonts are now scalable thanks to this
-Cleaned up documentation browser and added fonts for this
2016-05-29 11:37:52 -03:00
Hubert Jarosz
4a4f247914
remove trailing whitespace
2016-03-09 00:00:52 +01:00
Rémi Verschelde
002ff3cc9a
Revert "Merge pull request #3814 from est31/iterators_for_for"
...
This reverts commit adf5056889
, reversing
changes made to ee2bc87c0e
.
2016-03-01 18:09:48 +01:00
est31
5f66692395
Use xrange for common "for i in range(...)" use case
...
Make the parser eliminate a wasteful allocation and initialisation
of a possibly large array.
2016-02-28 22:47:48 +01:00
est31
cea8e97c11
Fix typo in error
2016-02-24 00:08:53 +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
Juan Linietsky
61745855d0
PI is now a built-in constant, fixes #2134
2016-01-02 17:56:45 -03:00
George Marques
5be9ff7b67
Update copyright to 2016 in headers
2016-01-01 11:50:53 -02: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
eska
897cf2140c
Add GDScript export hint for named bit flags
...
Syntax: `export( int, FLAGS, "A Flag", "Another Flag" ) var flags`
2015-12-14 17:32:31 +01:00
eska
ef0c05430c
Add GDScript export hints for global filesystem and exponential ranges
...
- File in global filesystem: `String, FILE, GLOBAL, "*.png"`, tool scripts only
- Directory in global filesystem: `String, DIR, GLOBAL`, tool scripts only
- Exponential range: `float, EXP, 50, 150, 2`
2015-12-11 06:45:03 +01:00
koalefant
e52d211b61
GDScript: fixed highlighting of the next line when colon is missing
2015-11-29 23:45:28 +01:00
eska
bbc42a159c
Allow extending from Object in GDScript
2015-11-12 15:50:20 +01:00
eska
eb9621624f
Add GDScript export hint for real numbers with easing `export(float, EASE)`
2015-10-16 20:37:13 +02:00
eska
57b2c4b0c6
Add multiline string GDScript export hint `export(String, MULTILINE)`
2015-10-16 18:48:54 +02:00
eska
e18c1ba05b
Revert "add flag and multiline hits in GDScript"
...
This reverts commit 7843ec6633
.
2015-10-16 16:18:46 +02:00
crr0004
f34c3e249b
Fixes editor freeze
2015-09-02 13:56:51 +10:00
Juan Linietsky
319cc7e3ae
detect node and variable assignments in _ready, _init, etc for further code completion
2015-08-30 11:50:10 -03:00
Juan Linietsky
04cb3c9eb1
Ability to edit all kinds of arrays from the property editor.
...
Yes, I'm trying to convince you to test the alpha release by adding all these now :)
2015-08-25 20:45:51 -03:00