summaryrefslogtreecommitdiff
path: root/scene/2d/screen_button.cpp
AgeCommit message (Collapse)Author
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-11-19Rework the canvas_item API for further improves to the canvas item editorGilles Roudiere
2017-09-13Fix enums bindingsMaxim Sheronov
Add missed bindings for enums Move some enums to class to have correct output of api.json
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
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-19Removes editor_hint from SceneTreeIgnacio Etcheverry
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-07-23Add object type hint for docsPoommetee Ketson
2017-06-14Fix/improve TouchScreenButtonPedro J. Estébanez
- Refactor touch acceptance logic so the same is used whether passby is enabled or not. - Remove the check for visibility during input handling as it should never fail; instead using now an ERR_FAIL_COND() just in case since we have been checking for that so far. - Fix cast to wrong InputEventScreenTouch when it should be InputEventScreenDrag. - Replaced use of references by plain pointers for a more readable code and maybe a little performance gain.
2017-06-03InputEvent: Renamed "pos" property to "position"Andreas Haas
Make the naming consistent with other classes.
2017-05-20Removal of InputEvent as built-in Variant type..Juan Linietsky
this might cause bugs I haven't found yet..
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-04-03Improve TouchScreenButtonPedro J. Estébanez
Fix shape not being updated Add a way to hide the shape on editor and debug-with-visible-shapes Remove useless checks
2017-03-10Fixes for TouchScreenButtonPedro J. Estébanez
- getting stuck on pause - handling input when not visible
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
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
2017-02-22Fix crash if TouchScreenButton is pressed while exiting the treePedro J. Estébanez
(cherry picked from commit 5b8d5766f4574b5011b3f258d3e9b34298eb609c)
2017-02-13Rename the _MD macro to D_METHODHein-Pieter van Braam
This new name also makes its purpose a little clearer This is a step towards fixing #56
2017-02-13Remove use of _SCS from ADD_METHODHein-Pieter van Braam
This saves typing and is a step towards fixing #56
2017-02-12Merge pull request #7722 from RandomShaper/improve-touch-buttonRémi Verschelde
Fix touch button issues
2017-02-10Solve TouchScreenButtons issuesPedro J. Estébanez
Fix touch button needing double tap after pause (applies to those not set to pass-by) Fix error when a pressed TouchScreenButton with no associated action exits the tree (with some refactoring of duplicate code)
2017-02-02Add shape property to TouchScreenButtonPedro J. Estébanez
Adapted from 67a0da34a2d5a95761c54b3012d0a8f1a79e10a6
2017-01-14Style: Fix whole-line commented codeRémi Verschelde
They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
2017-01-13New API for visibility in both CanvasItem and SpatialJuan Linietsky
visible (property) - access set_visible(bool) is_visible() is_visible_in_tree() - true when visible and parents visible show() hide() - for convenience
2017-01-02ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky
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()
2017-01-01Welcome in 2017, dear changelog reader!Rémi Verschelde
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!
2016-01-10fix: TouchScreenButton should stop propagating action when button is removed ↵MarianoGNU
from scene
2016-01-02-Fix TouchScreenButton to work with stretch and viewport canvas transform, ↵Juan Linietsky
closes #2286
2016-01-01Update copyright to 2016 in headersGeorge Marques
2015-04-18Updated copyright year in all headersJuan Linietsky
2014-11-05SceneMainLoop -> SceneTreeJuan Linietsky
-=-=-=-=-=-=-=-=-=-=-=-=-=- *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
2014-09-17Merge pull request #588 from marynate/PR-fix-touchscreenbutton-inputJuan Linietsky
Fixed touchscreen was processing input in editor
2014-08-14Little BitsJuan Linietsky
-=-=-=-=-=- -Fixed small bugs all around -Added ability to show/hide entire sections of the spatial (3D) tree -WIP new vehicle (not ready yet) based on Bullet
2014-07-13Fixed potential crash when touchscreenbutton has no texture assignedmarynate
2014-07-13Fixed touchscreen was processing input in editormarynate
2014-05-20Fix potential null exception in screen button without texture assignedmarynate
2014-04-02Fix #240 TouchScreenButton release signal is not validmarynate
2014-02-13-fixed export templates not loading/exporting on WindowsJuan Linietsky
-fixed TouchScreenButton with stretch2d -fixed(?) OSX crash on startup (test!!) -compilation fixes on windows -CollisionPolygon editor works again -find buttons en find dialog -TileMap editor cleanup (removed "error", made nicer) -viewport flicker fixed -make .scn default extension for saving scenes -export the rest of the network classes to gdscript
2014-02-09GODOT IS OPEN SOURCEJuan Linietsky