1
0
Fork 0

canvas/gui.nas add missing return values

This commit is contained in:
Henning Stahlke 2020-07-02 10:00:43 +02:00 committed by James Turner
parent 78757f8fc3
commit 01811ec69a

View file

@ -181,6 +181,7 @@ var Window = {
# prevent resizing if canvas is placed from somewhere else
me.onResize = nil;
return me;
},
# Get the displayed canvas
getCanvas: func(create = 0)
@ -240,6 +241,7 @@ var Window = {
me.setInt("tf/t[0]", x);
me.setInt("tf/t[1]", y);
return me;
},
setSize: func
{
@ -269,6 +271,7 @@ var Window = {
me.setInt("tf/t[0]", me.get("tf/t[0]", 10) + x);
me.setInt("tf/t[1]", me.get("tf/t[1]", 30) + y);
return me;
},
# Raise to top of window stack
raise: func()