diff options
| author | jussi | 2024-07-06 01:03:02 +0300 |
|---|---|---|
| committer | jussi | 2024-07-06 01:03:02 +0300 |
| commit | 528f3f3d822c8e9d3e72228cf5d7fc3d4daae483 (patch) | |
| tree | 9a122a3a3ed92b33e372fb53dc8e9717ecb7bd01 /examples/raygui_extensions/tree_item.lua | |
| parent | 61c932f2605aac5a8fef4264087e9ea8f86c6760 (diff) | |
| download | reilua-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.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, |
