summaryrefslogtreecommitdiffhomepage
path: root/lib/ruby2d/camera/text.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ruby2d/camera/text.rb')
-rw-r--r--lib/ruby2d/camera/text.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ruby2d/camera/text.rb b/lib/ruby2d/camera/text.rb
index 00f15b3..da23edb 100644
--- a/lib/ruby2d/camera/text.rb
+++ b/lib/ruby2d/camera/text.rb
@@ -46,6 +46,11 @@ module Ruby2D
Window.remove(self)
end
+ def z=(z)
+ super(z)
+ Ruby2D::Camera._sort_by_z
+ end
+
def remove
@hide = true
end