Skip to content
Crutiatix edited this page Apr 16, 2017 · 5 revisions

The first thing what you'll need to do is to copy TICuare library snippet to your code. Also, it's needed to define mouse input in metadata.

Then, you'll need to update the ticuare object in order to update the status of your elements, using ticuare.update(mouse()) and lastly, you'll want to draw your buttons using ticuare.draw(). Alternatively, you can draw individual buttons using myElement:drawSelf().

-- input: mouse
-- ticuare code snippet
-- ticuare elements definitions
function TIC()
  cls(0)
  ticuare.update(mouse())
  ticuare.draw()
end
Clone this wiki locally