summaryrefslogtreecommitdiff
path: root/scene/2d/canvas_item.cpp
AgeCommit message (Collapse)Author
2016-07-10Conversion function for screen coords to local Canvas coordsKyle Luce
- Useful if you need to Convert screen coords to the coordinate space of a CanvasItem, but don't have an associated InputEvent to use in #make_event_local. For example, if you have a particular point on the screen you'd like to project into World Space, for various reasons, you would use this function on the root of the scene. This is analogous to ray casting from screen space in 3D.
2016-06-27Properly deliver localized coordinates when passing gui events through ↵Juan Linietsky
parents, closes #4215
2016-06-26Ability to set draw transform as a matrix, closes #5428Juan Linietsky
2016-06-23Rename CanvasItem.edit_get() to edit_get_state()George Marques
This makes more sense of what it does and correlates to edit_set_state()
2016-06-20fix CanvasItem.get_global_transform() and CanvasItem.get_local_transform(), ↵Juan Linietsky
closes #4075
2016-06-20Remove unused connection. ShaderEditor should'nt handle ShaderGraphs.MarianoGNU
Fixes #4678 && #4745
2016-06-13added a function CanvasItem.get_item_and_children_rect() , fixes #4738Juan Linietsky
2016-06-07Fix indentation issues in last commitsRémi Verschelde
Ping @reduz.
2016-06-06-Fix small bug regarding to canvas layer detection, closes #4381Juan Linietsky
2016-05-04Fix wrong return and argument types in documentationIgnacio Etcheverry
2016-03-09remove trailing whitespaceHubert Jarosz
2016-01-24-Take in consideration canvas layers for GUI inputJuan Linietsky
2016-01-02-Fix global transform cache not being cleared in 2D nodes, fixes many editor ↵Juan Linietsky
bugs, closes #2115
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-12-29Fix CanvasItem.draw_set_transform to act according to docs, fixes #2487reduz
2015-12-28Add missing argument names in GDScript bindingsRémi Verschelde
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-14-implement arrows on tabs, when too many tabs are present, fixes #2806Juan Linietsky
2015-12-10Merge pull request #2306 from dbsGen/patch-1Rémi Verschelde
Fixed the mouse position for control when it is in a canvas_layer.
2015-11-26Added set_hidden method to Spatial and CanvasItemromulox_x
2015-09-26Fix propagation of NOTIFICATION_VISIBILITY_CHANGEDeska
2015-09-15Ability to keep collisionshapes and collisionpolygons when running the game.reduz
Works for 2D and 3D These are still just helpers in case you want to animate them or access them directly. Modifying the real shapes is still done via CollisionObject and CollisionObject2D APIs But an API was added so you can query which shapes from CollisionObject correspond to which CollisionShape. Have Fun!
2015-07-27Fixed the mouse position for control when it is in a canvas_layer.Gen
2015-07-20Added a proper name and an explanation to arg4 on CanvasItem.draw_texture_rect*.Ovnuniarchos
2015-06-29Several performance improvements, mainly in loading and instancing scenes ↵Juan Linietsky
and resources. A general speedup should be apparent, with even more peformance increase when compiling optimized. WARNING: Tested and it seems to work, but if something breaks, please report.
2015-05-19more fixesJuan Linietsky
fix ctrl-a for some cases, mentioned in #1704 fix toggling visibility not updating, fixes #1923
2015-05-01-Fixed android export options (screen sizes, orientation should work)Juan Linietsky
-added functions to get mouse position in CanvasItem
2015-04-20-Changed Godot exit to be clean.Juan Linietsky
-Added more debug information on memory cleanliness on exit (if run with -v) -Fixed several memory leaks, fixes #1731, fixes #755
2015-04-18Updated copyright year in all headersJuan Linietsky
2015-04-03Changes to LightJuan Linietsky
-=-=-=-=-=-=-=-= -Changed material unshaded property for an enum, which supports light-only shading -Added a "Mix" shading mode, useful for using lights as masks -Added energy parameter to Light2D
2015-03-22input events on Area2D is now supportedJuan Linietsky
also added a demo showing how this works
2015-03-12back buffer copy node, to improve on texscreen()Juan Linietsky
back buffer copy node and respective demo
2015-03-09lot of work on 2D lighting and isometric mapsJuan Linietsky
added a new demo, isometric_light that does full isometric sorting, lights, shadows, etc.
2015-03-02support for 2D shadow castersJuan Linietsky
Added support for 2D shadow casters. *DANGER* Shaders in CanvasItem CHANGED, if you are using shader in a CanvasItem and pull this, you will lose them. Shaders now work through a 2D material system similar to 3D. If you don't want to lose the 2D shader code, save the shader as a .shd, then create a material in CanvasItem and re-assign the shader.
2015-02-21Merge pull request #1369 from not-surt/tile_rotationJuan Linietsky
Tile Rotation
2015-02-18support for light and normal mapping in 2DJuan Linietsky
2015-02-11Merge branch 'master' of https://github.com/okamstudio/godotCarl Olsson
Conflicts: demos/2d/polygon_path_finder_demo/.fscache
2015-02-11added missing set_shader_param functionsJuan Linietsky
also added code completion hint for shader params
2015-02-02Merge branch 'master' of https://github.com/okamstudio/godotCarl Olsson
2015-02-02Working TileMap tile transpose transform.Carl Olsson
2015-01-20Visual Shader Editing for 2DJuan Linietsky
Editing 2D shaders with visual editor seems to work now.
2015-01-12-fixed issue with shader not being reset on layers, closes #1199Juan Linietsky
-ability for shader to use parent shader and params, closes #1198
2015-01-11-Initial (untested) implementation of 2D shaders. Probably broken, will be ↵Juan Linietsky
fixed later. -fixed issue of opacity not working
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-05-25-draw_primitive binding fixJuan Linietsky
2014-05-24Making Godot Easier to Use..Juan Linietsky
-=-=-=-=-=-=-=-=-=-=-=-=-=-= -Auto indenter in code editor, this makes it much easier to paste external code. -Zoom in 2D viewport now uses the mouse pointer as reference. -Obscure hack to see where code/line of GDScript in C++ backtrace. -Fixed a bug where keys would get stuck on X11 if pressed simultaneously -Added Api on IP singleton to request local IPs. -Premultiplied alpha support when importing texture, editing PNGs and as a blend mode.
2014-05-04mini-fixJuan Linietsky
2014-04-14-Added google play services (needed for some stuff)Juan Linietsky
-Added new screen resizing options, stretch_2d is removed, new much more flexible ones. -Fixed bug in viewport (can create more instances in 3d-in-2d demo now) -Can set android permissions and screen sizes manually in the export settings -Changed export templates extension to .tpz (too many people unzipped the manually..) -File dialog now ensures that the proper extension is used (will not allow to save without it) -Fixed bug that made collision exceptions not work in 2D
2014-04-10-Fixed a few bugs in ViewportJuan Linietsky
-Made a few demos using Viewport to show it's true power! -Fixed some start-up error messages.
2014-04-05-HttpClient: ’Content-Length’ is added to httprequest if not provided in ↵Juan Linietsky
the headers and a body exists -expressions in GDScript can take multiple lines if inside parenthesis (python-like) -Added \ to force linebreaks to GDscript (python-like) -added exclude objects from raycast -fixed crashes