summaryrefslogtreecommitdiffstats
path: root/scene/2d/parallax_layer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Convert Object::cast_to() to the static versionHein-Pieter van Braam2017-08-241-15/+6
| | | | | | | | | | | | 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/
* Change order of Null check for ParallaxLayerHein-Pieter van Braam2017-08-221-4/+4
| | | | | | | | | | | The change in #10524 subtly changes the behavior of set_motion_scale() and set_motion_offset() if the ParallaxLayer does not have a parent node. Previously it would still set the corresponding property, but after this change the property change would be discarded. I'm not entirely sure if this actually matters as there doesn't appear to be any code that picks up this change if the ParallaxLayer gets re-parented later, but it's better to not change behavior regardless.
* Add null check to ParallaxLayer get_parent() callsHein-Pieter van Braam2017-08-221-0/+6
| | | | This fixes #10515
* Removes editor_hint from SceneTreeIgnacio Etcheverry2017-08-191-1/+3
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-52/+37
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-131-6/+6
| | | | | | This new name also makes its purpose a little clearer This is a step towards fixing #56
* Remove use of _SCS from ADD_METHODHein-Pieter van Braam2017-02-131-3/+3
| | | | This saves typing and is a step towards fixing #56
* -Conversion of most properties to a simpler syntax, easier to use by scriptJuan Linietsky2017-01-041-5/+6
| | | | | | -Modified help to display properties GDScript can still not make use of them, though.
* ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-6/+6
| | | | | | | | Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
* Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
| | | | | | | | 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!
* Improve parallax mirroring algorithmPedro J. Estébanez2016-06-271-15/+4
| | | | | Replaces the iterative approach currently used by an equivalent direct computation. Also fixes infinite looping that happens when the mirroring value is negative.
* Avoid mirroring to go negative to fix crash, closes #4036Juan Linietsky2016-06-261-0/+5
|
* Added an option to ParallaxLayer to add an extra scroll offset, helps if you ↵Juan Linietsky2016-06-261-1/+30
| | | | want to make clouds to move by themselves and animate that, for example.
* Revert "Improve parallax mirroring algorithm"Rémi Verschelde2016-06-261-4/+14
|
* Improve parallax mirroring algorithmPedro J. Estébanez2016-06-241-14/+4
| | | | | Replaces the iterative approach currently used by the standard fmod() function. Also fixes infinite looping that happens when the mirroring value is negative.
* -Added configuration warning system for nodesJuan Linietsky2016-05-171-0/+10
| | | | | -Added a new "add" and "instance" buttons for scene tree -Added a vformat() function to ease translation work
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* Updated copyright year in all headersJuan Linietsky2015-04-181-1/+1
|
* SceneMainLoop -> SceneTreeJuan Linietsky2014-11-051-3/+3
| | | | | | | | | | | | -=-=-=-=-=-=-=-=-=-=-=-=-=- *YOUR SOURCE MIGHT NOT WORK* For mor information on fix: https://github.com/okamstudio/godot/wiki/devel_scene_tree Other stuff: -Shower of bullets demo -Fixes all around
* GODOT IS OPEN SOURCEJuan Linietsky2014-02-091-0/+138