mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-10 16:17:47 -04:00
Add closure alternatives to begin/end pairs
This commit is contained in:
parent
bb3ffeb957
commit
976ff9f63b
3 changed files with 413 additions and 52 deletions
|
@ -3,6 +3,7 @@
|
|||
local nuklear = require 'nuklear'
|
||||
|
||||
local calculator = require 'calculator'
|
||||
local closure = require 'closure'
|
||||
local draw = require 'draw'
|
||||
local overview = require 'overview'
|
||||
local style = require 'style'
|
||||
|
@ -20,6 +21,7 @@ function love.update(dt)
|
|||
ui1:frameBegin()
|
||||
calculator(ui1)
|
||||
style(ui1)
|
||||
closure(ui1)
|
||||
overview(ui1)
|
||||
draw(ui1)
|
||||
template(ui1)
|
||||
|
@ -33,7 +35,7 @@ end
|
|||
function love.draw()
|
||||
ui1:draw()
|
||||
ui2:draw()
|
||||
love.graphics.print("Current FPS: "..tostring(love.timer.getFPS( )), 10, 10)
|
||||
love.graphics.print('Current FPS: '..tostring(love.timer.getFPS( )), 10, 10)
|
||||
end
|
||||
|
||||
local function input(name, ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue