Dennis Brakhane
1e068d34f4
Add support for Python-like negative indexing
...
Negative indexing is a useful feature in Python, especially when combined
with array slicing. Array slicing will hopefully be implemented later, but
negative indexing is useful in its own right.
A negative index is indexing from the end of an array,
"array[-1] == array[array.size()-1]", using a negative index
larger/smaller than the length of the array is still an error.
While primarily useful for arrays and strings, support is also added to
"array like" structures like Vector3 and Color. This is done just
to be consistent; vector3[2] is much clearer than vector3[-1], but disallowing
it while allowing it for an array with 3 elements seems confusing.
2016-06-05 20:00:54 +02:00
Dennis Brakhane
842057e56f
Move repetitive code to macros
...
In preparation for the following "allow negative indexing" commit,
replace the repetitive array "set index" and "get index" code with
macros.
no functional changes were made, the resulting machine code is unchanged.
2016-06-05 20:00:54 +02:00
Rémi Verschelde
56348cbbfe
Merge pull request #5047 from bojidar-bg/document-viewport-viewportsprite
...
Document Viewport and ViewportSprite
2016-06-05 14:34:14 +02:00
Bojidar Marinov
662e0cc411
Document Viewport and ViewportSprite classes
2016-06-05 14:51:44 +03:00
Bojidar Marinov
9e0921e038
Sync with -doctool
2016-06-05 14:47:12 +03:00
Rémi Verschelde
673105feb9
Merge pull request #5038 from djrm/new_icons
...
New icons
2016-06-05 09:29:44 +02:00
Juan Linietsky
64fd75d91a
Make Input Actions config not affect the editor
2016-06-05 01:19:42 -03:00
Juan Linietsky
cee94b6119
changed TTR for RTR
2016-06-05 00:25:15 -03:00
Juan Linietsky
c1028b9011
fix for travis
2016-06-04 21:45:50 -03:00
Juan Linietsky
007efb6a20
-customizable shortcuts in editor
...
-editor settings now save to .tres instead of .xml
-buttons can now hold a shortcut
2016-06-04 21:31:47 -03:00
Daniel J. Ramirez
4389388d4e
Added 2x PNG versions of the icons
2016-06-04 15:52:35 -05:00
Daniel J. Ramirez
50fd5edb9e
Added basic script to convert source svgs to pngs
2016-06-04 14:42:43 -05:00
Rémi Verschelde
279b7921e8
Merge pull request #5036 from J08nY/inputmap-actions
...
Added InputMap.get_actions()
2016-06-04 21:37:57 +02:00
Rémi Verschelde
2884faf55b
Merge pull request #4999 from volzhs/fix-project-path
...
change invalid characters when get user data dir on Windows & Unix
2016-06-04 21:37:47 +02:00
Daniel J. Ramirez
2ddaf41777
New icons, almost all the icons have an svg version, plus a more consistent look
2016-06-04 14:01:36 -05:00
Rémi Verschelde
5b6a8eca94
Merge pull request #5035 from marcelofg55/master
...
Right click->Quit on the godot icon will close the application on OSX
2016-06-04 18:43:43 +02:00
Juan Linietsky
3ae61f2292
Created a NodeDock with signals and groups
2016-06-04 13:19:08 -03:00
J08nY
1a80b2a04a
Added InputMap.get_actions()
...
get_actions() lists all actions in the InputMap.
2016-06-04 17:56:30 +02:00
marcelofg55
76ab7d3886
Right click->Quit on the godot icon will now close the application on OSX.
...
Fixed get_window_position that missed a return on OSX.
2016-06-04 12:35:00 -03:00
Rémi Verschelde
280e3611b9
Merge pull request #5032 from akien-mga/pr-defaut-linear-damp
...
Physics2D: Rename default_density to default_linear_damp
2016-06-04 16:08:37 +02:00
Rémi Verschelde
f1cd33b539
Merge pull request #5030 from sanikoyes/Pr-fix-label-minsize
...
fix line_edit&label get min size bug&draw problem
2016-06-04 16:08:25 +02:00
Rémi Verschelde
4b0bae9799
Merge pull request #5027 from J08nY/gdscript
...
Add Array.find_last() and Array.count()
2016-06-04 16:07:48 +02:00
Rémi Verschelde
992a76b41a
Merge pull request #5023 from volzhs/deselect-help
...
deselect in help when click somewhere
2016-06-04 15:58:07 +02:00
Rémi Verschelde
0e122566d0
Merge pull request #5022 from vnen/pr-fix-color8
...
Fix Color8 constructor using wrong value range
2016-06-04 15:57:36 +02:00
Rémi Verschelde
95773c4785
Merge pull request #4943 from marcelofg55/master
...
Key modifiers (Ctrl, Alt, Meta and Shift) may be used as Input keys n…
2016-06-04 15:36:24 +02:00
Rémi Verschelde
cbba9c4506
Merge pull request #4300 from leezh/control_focus_mode
...
Exposed Control::focus_mode to the scene editor
2016-06-04 14:41:36 +02:00
Rémi Verschelde
a068152ba0
Physics2D: Rename default_density to default_linear_damp
...
Also adds a proper deprecating warning and tries to do some porting automatically.
Supersedes #4109 .
2016-06-04 14:05:53 +02:00
sanikoyes
5f7b42cb87
fix line_edit&label get min size bug
...
fix line_edit draw char(x ofs_max)
2016-06-04 18:10:11 +08:00
Rémi Verschelde
f32f467154
Merge pull request #4994 from Warlaan/create_dialog_starts_collapsed
...
The create node dialog now starts collapsed.
2016-06-04 10:29:58 +02:00
Warlaan
987192775a
The create dialog starts collapsed now.
...
The original behavior can be reactivated in the editor settings.
2016-06-04 10:26:58 +02:00
Juan Linietsky
26332479d3
Signals became a tab
...
added icons to contextual scene tree menu
2016-06-03 21:03:22 -03:00
J08nY
5f5ca8cd9b
Added Array.find_last() and Array.count()
2016-06-03 23:36:02 +02:00
Rémi Verschelde
cd56cad9ac
Merge pull request #5025 from J08nY/master
...
Fix typo in http_client.h
2016-06-03 22:17:24 +02:00
J08nY
b4fb4a131d
Fix typo in http_client.h
2016-06-03 21:48:20 +02:00
volzhs
bf22e69822
deselect in help when click somewhere
2016-06-04 03:11:34 +09:00
Błażej Szczygieł
bff77d731f
SampleLibraryEditor: Initialize "is_playing" variable
...
Fixes crash caused by jumping to wrong place due to uninitialized
variable.
Closes #4703
(cherry picked from commit 9acb666320
)
2016-06-03 20:07:46 +02:00
George Marques
43dad78209
Fix Color8 constructor using wrong value range
...
Fix #5015
2016-06-03 14:59:40 -03:00
Rémi Verschelde
21e05167b1
Merge pull request #5016 from J08nY/classref
...
Added classref for HTTPClient and HTTPRequest
2016-06-03 18:23:59 +02:00
J08nY
4c5439f8cd
Added classref for HTTPClient and HTTPRequest
2016-06-03 18:13:15 +02:00
J08nY
dd4eaa1005
Exposed a RESULT_DOWNLOAD_FILE_CANT_OPEN constant to docs and GDScript.
2016-06-03 18:03:12 +02:00
J08nY
45163b10be
Sync classref
2016-06-03 18:03:12 +02:00
Juan Linietsky
2ca4995a6f
Cleaned up remote menu
...
-Merged fileserver & deploy dumb clients option
-Live Script Reloading can now happen automatically on script save
-Changed Live to Mirror term to differentiate from Unity and Unreal, as
what Godot does is not the same thing.
2016-06-03 12:34:25 -03:00
Rémi Verschelde
a0a16aec3a
Remove leftover from the demos
...
Was missed in c7d45ec085
.
2016-06-03 17:30:09 +02:00
Juan Linietsky
c7d45ec085
Removed demos
...
they go to their own project now
2016-06-03 10:30:38 -03:00
Rémi Verschelde
f9af57f3bd
Merge pull request #4950 from Geequlim/fix-editor-import-plugin
...
Expose ResourceImportMetadata::set_source_md5 for script
2016-06-03 13:12:45 +02:00
Geequlim
2bbedd35dd
Expose ResourceImportMetadata::set_source_md5 for script
2016-06-03 18:45:44 +08:00
Dmitriy Salnikov
b8d31c5eb5
more fixes in Russian localization ( #5006 )
2016-06-03 00:07:39 +02:00
marcelofg55
4e0f2389c3
Merge remote-tracking branch 'upstream/master'
2016-06-02 18:56:28 -03:00
Rémi Verschelde
bc25492e63
Update to libpng 1.5.27
...
No security relevant fix as far as I can see, but the version bump
does not hurt either.
2016-06-02 23:28:54 +02:00
Rémi Verschelde
fa4a82a867
Merge pull request #5001 from derderder77/master
...
Add some french translation.
2016-06-02 22:38:40 +02:00