SHARE
TWEET

Untitled

a guest Apr 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local cobalt = dofile( 'cobalt' )
  2. cobalt.ui = dofile( 'cobalt-ui/init.lua' )
  3.  
  4. --your code
  5.  
  6. function cobalt.update( dt )
  7.    --your code
  8.    cobalt.ui.update( dt )
  9. end
  10.  
  11. function cobalt.draw()
  12.    --your code
  13.    cobalt.ui.draw( )
  14. end
  15.  
  16. function cobalt.mousepressed( x, y, button )
  17.    --your code
  18.    cobalt.ui.mousepressed( x, y, button )
  19. end
  20.  
  21. function cobalt.mousereleased( x, y, button )
  22.    --your code
  23.    cobalt.ui.mousereleased( x, y, button )
  24. end
  25.  
  26. function cobalt.keypressed( keycode, key )
  27.    --your code
  28.    cobalt.ui.keypressed( keycode, key )
  29. end
  30.  
  31. function cobalt.keyreleased( keycode, key )
  32.    --your code
  33.    cobalt.ui.keyreleased( keycode, key )
  34. end
  35.  
  36. function cobalt.textinput( t )
  37.    --your code
  38.    cobalt.ui.textinput( t )
  39. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top