summaryrefslogtreecommitdiff
path: root/examples/raygui_extensions/tree_item.lua
diff options
context:
space:
mode:
authorjussi2024-07-06 01:03:02 +0300
committerjussi2024-07-06 01:03:02 +0300
commit528f3f3d822c8e9d3e72228cf5d7fc3d4daae483 (patch)
tree9a122a3a3ed92b33e372fb53dc8e9717ecb7bd01 /examples/raygui_extensions/tree_item.lua
parent61c932f2605aac5a8fef4264087e9ea8f86c6760 (diff)
downloadreilua-enhanced-528f3f3d822c8e9d3e72228cf5d7fc3d4daae483.tar.gz
reilua-enhanced-528f3f3d822c8e9d3e72228cf5d7fc3d4daae483.tar.bz2
reilua-enhanced-528f3f3d822c8e9d3e72228cf5d7fc3d4daae483.zip
Raymath *Equals functions return bool instead of int.
Diffstat (limited to 'examples/raygui_extensions/tree_item.lua')
-rw-r--r--examples/raygui_extensions/tree_item.lua4
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,