diff options
Diffstat (limited to 'examples/raygui_extensions/tree_item.lua')
| -rw-r--r-- | examples/raygui_extensions/tree_item.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/raygui_extensions/tree_item.lua b/examples/raygui_extensions/tree_item.lua index 919eae0..7abaf4c 100644 --- a/examples/raygui_extensions/tree_item.lua +++ b/examples/raygui_extensions/tree_item.lua @@ -42,7 +42,7 @@ function TreeItem:setOpenIcon() end function TreeItem:draw() - local buttonRect = Rect:new( 0, 0, 0, 0 ) + local buttonRect = Rectangle:new( 0, 0, 0, 0 ) local hasContainer = 0 < #self.controls local lineCol = RL.GetColor( RL.GuiGetStyle( RL.DEFAULT, RL.LINE_COLOR ) ) @@ -59,7 +59,7 @@ function TreeItem:draw() }, lineCol ) end - local toggleRect = Rect:new( + local toggleRect = Rectangle:new( self.bounds.x + buttonRect.width, self.bounds.y, self.bounds.width - buttonRect.width, |
