canvas overhaul
This commit is contained in:
@@ -18,12 +18,11 @@ function UI.VerticalMeter:draw()
|
||||
end
|
||||
|
||||
function UI.VerticalMeter.example()
|
||||
local Event = require('opus.event')
|
||||
return UI.VerticalMeter {
|
||||
x = 2, width = 3, y = 2, ey = -2,
|
||||
focus = function() end,
|
||||
enable = function(self)
|
||||
Event.onInterval(.25, function()
|
||||
require('opus.event').onInterval(.25, function()
|
||||
self.value = self.value == 100 and 0 or self.value + 5
|
||||
self:draw()
|
||||
self:sync()
|
||||
|
||||
Reference in New Issue
Block a user