aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/canvas_item.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-01-24 10:57:42 -0300
committerJuan Linietsky2016-01-24 10:57:42 -0300
commit35a28f34426eb6c44a5e321bbd630c64d8b38de0 (patch)
treeb1bffbbe03280874103f4bcd3d89f5ebad6c0800 /scene/2d/canvas_item.cpp
parentc247f5ad61f2575c321fb8117ed4212611e8cdf4 (diff)
downloadgodot-35a28f34426eb6c44a5e321bbd630c64d8b38de0.tar.gz
godot-35a28f34426eb6c44a5e321bbd630c64d8b38de0.tar.zst
godot-35a28f34426eb6c44a5e321bbd630c64d8b38de0.zip
-Take in consideration canvas layers for GUI input
Diffstat (limited to 'scene/2d/canvas_item.cpp')
-rw-r--r--scene/2d/canvas_item.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp
index 35b453d71..316097fbc 100644
--- a/scene/2d/canvas_item.cpp
+++ b/scene/2d/canvas_item.cpp
@@ -1193,6 +1193,14 @@ bool CanvasItem::is_local_transform_notification_enabled() const {
return notify_local_transform;
}
+int CanvasItem::get_canvas_layer() const {
+
+ if (canvas_layer)
+ return canvas_layer->get_layer();
+ else
+ return 0;
+}
+
CanvasItem::CanvasItem() : xform_change(this) {