Refonte pour utiliser le systeme de GUI #112
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@ function Rect:getRelativeCoordinate(dx, dy)
|
|||
return dx - self.x, dy - self.y
|
||||
end
|
||||
|
||||
function Rect:getDimensions()
|
||||
return self.w, self.h
|
||||
end
|
||||
|
||||
function Rect:drawBox()
|
||||
utils.graphics.box(self.x, self.y, self.w, self.h)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue