diff options
Diffstat (limited to 'examples/raygui_extensions')
| -rw-r--r-- | examples/raygui_extensions/main.lua | 4 | ||||
| -rw-r--r-- | examples/raygui_extensions/property_list.lua | 4 | ||||
| -rw-r--r-- | examples/raygui_extensions/sprite_button.lua | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/raygui_extensions/main.lua b/examples/raygui_extensions/main.lua index 8ce1913..d7c43cb 100644 --- a/examples/raygui_extensions/main.lua +++ b/examples/raygui_extensions/main.lua @@ -237,8 +237,8 @@ function RL.init() addPropertyList() end -function RL.process( delta ) - Gui:process() +function RL.update( delta ) + Gui:update() end function RL.draw() diff --git a/examples/raygui_extensions/property_list.lua b/examples/raygui_extensions/property_list.lua index 35f2f36..d8d2622 100644 --- a/examples/raygui_extensions/property_list.lua +++ b/examples/raygui_extensions/property_list.lua @@ -158,14 +158,14 @@ function PropertyList:addGroup( name, active, group ) return control end -function PropertyList:process() +function PropertyList:update() if not RL.CheckCollisionRecs( self.view, RL.GetMousePosition() ) then self.gui.locked = true else self.gui.locked = false end - self.gui:process() + self.gui:update() RL.BeginTextureMode( self.framebuffer ) RL.ClearBackground( RL.BLANK ) diff --git a/examples/raygui_extensions/sprite_button.lua b/examples/raygui_extensions/sprite_button.lua index 2b22344..401c1a9 100644 --- a/examples/raygui_extensions/sprite_button.lua +++ b/examples/raygui_extensions/sprite_button.lua @@ -19,12 +19,12 @@ function SpriteButton:new( bounds, text, texture, nPatchNormal, nPatchPressed, c return object end -function SpriteButton:process() +function SpriteButton:update() return RL.CheckCollisionPointRec( RL.GetMousePosition(), self.bounds ) end function SpriteButton:draw() - if RL.IsMouseButtonDown( RL.MOUSE_BUTTON_LEFT ) and self:process() and not RL.GuiIsLocked() and not self._parent.scrolling then + if RL.IsMouseButtonDown( RL.MOUSE_BUTTON_LEFT ) and self:update() and not RL.GuiIsLocked() and not self._parent.scrolling then RL.DrawTextureNPatchRepeat( self.buttonTexture, self.nPatchPressed, self.bounds, { 0, 0 }, 0.0, RL.WHITE ) else RL.DrawTextureNPatchRepeat( self.buttonTexture, self.nPatchNormal, self.bounds, { 0, 0 }, 0.0, RL.WHITE ) |
