mirror of
https://github.com/nucular/sfxrlua.git
synced 2024-12-24 18:44:20 +00:00
skin stuff, update clear call
This commit is contained in:
parent
47310a9010
commit
fbc5899553
@ -2,6 +2,7 @@
|
|||||||
-- love .
|
-- love .
|
||||||
|
|
||||||
local sfxr = require("sfxr")
|
local sfxr = require("sfxr")
|
||||||
|
local lf = require('loveframes/loveframes')
|
||||||
|
|
||||||
-- Global stuff
|
-- Global stuff
|
||||||
local source
|
local source
|
||||||
@ -515,7 +516,7 @@ function createOther()
|
|||||||
love.graphics.line(x, 25, x, 165)
|
love.graphics.line(x, 25, x, 165)
|
||||||
end
|
end
|
||||||
|
|
||||||
lf.skins.available["Orange"].DrawForm(o)
|
lf.GetActiveSkin().form(o)
|
||||||
end
|
end
|
||||||
f.Draw = draw
|
f.Draw = draw
|
||||||
|
|
||||||
@ -611,8 +612,8 @@ end
|
|||||||
|
|
||||||
function updateWaveCanvas(waveview)
|
function updateWaveCanvas(waveview)
|
||||||
local t = love.timer.getTime()
|
local t = love.timer.getTime()
|
||||||
wavecanvas:clear()
|
|
||||||
love.graphics.setCanvas(wavecanvas)
|
love.graphics.setCanvas(wavecanvas)
|
||||||
|
love.graphics.clear(unpack(lf.GetActiveSkin().controls.frame_body_color))
|
||||||
love.graphics.setColor(1, 1, 1)
|
love.graphics.setColor(1, 1, 1)
|
||||||
love.graphics.setLineStyle("rough")
|
love.graphics.setLineStyle("rough")
|
||||||
|
|
||||||
@ -644,9 +645,7 @@ function updateStatistics()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function love.load()
|
function love.load()
|
||||||
require("loveframes")
|
lf.SetActiveSkin("Orange")
|
||||||
lf = loveframes
|
|
||||||
lf.util.SetActiveSkin("Orange")
|
|
||||||
|
|
||||||
love.graphics.setBackgroundColor(200, 200, 200)
|
love.graphics.setBackgroundColor(200, 200, 200)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user