From 528f3f3d822c8e9d3e72228cf5d7fc3d4daae483 Mon Sep 17 00:00:00 2001 From: jussi Date: Sat, 6 Jul 2024 01:03:02 +0300 Subject: Raymath *Equals functions return bool instead of int. --- examples/raygui_extensions/tree_item.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/raygui_extensions/tree_item.lua') 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, -- cgit v1.2.3