diff options
| author | jussi | 2024-02-18 15:26:21 +0200 |
|---|---|---|
| committer | jussi | 2024-02-18 15:26:21 +0200 |
| commit | 9b27daefc225752f3f24ea862e9c2be13f8addf6 (patch) | |
| tree | cfa74048b9bddb9dc58e8117a4a7af845ee137eb /examples/resources/lib/gui.lua | |
| parent | 9de10be468c5151765a0e007d5889971c637fd24 (diff) | |
| download | reilua-enhanced-9b27daefc225752f3f24ea862e9c2be13f8addf6.tar.gz reilua-enhanced-9b27daefc225752f3f24ea862e9c2be13f8addf6.tar.bz2 reilua-enhanced-9b27daefc225752f3f24ea862e9c2be13f8addf6.zip | |
Process renamed to update to be more inline with naming of raylib and common convention.
Diffstat (limited to 'examples/resources/lib/gui.lua')
| -rw-r--r-- | examples/resources/lib/gui.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/resources/lib/gui.lua b/examples/resources/lib/gui.lua index be5ec33..bdb4ce1 100644 --- a/examples/resources/lib/gui.lua +++ b/examples/resources/lib/gui.lua @@ -40,7 +40,7 @@ local Gui = { heldCallback = nil, _cells = {}, - _mousePos = Vec2:new( 0, 0 ), -- Last mouse position that was passed to Gui.process. + _mousePos = Vec2:new( 0, 0 ), -- Last mouse position that was passed to Gui.Update. _inputElement = nil, -- Element that has the input text item. _inputItem = nil, -- Must be type Text. } @@ -103,7 +103,7 @@ function Gui.set2Back( cell ) Util.tableMove( Gui._cells, Gui.getId( cell ), 1, 1 ) end -function Gui.process( mousePosition ) +function Gui.update( mousePosition ) local mouseWheel = RL.GetMouseWheelMove() Gui._mousePos = mousePosition @@ -120,7 +120,7 @@ function Gui.process( mousePosition ) local foundFirst = false - -- Go backwards on process check so we trigger the top most ui first and stop there. + -- Go backwards on update check so we trigger the top most ui first and stop there. for i = #Gui._cells, 1, -1 do local cell = Gui._cells[i] @@ -875,4 +875,4 @@ Gui.shape = Shape Gui.element = Element Gui.container = Container -return Gui
\ No newline at end of file +return Gui |
