mirror of
https://github.com/nucular/sfxrlua.git
synced 2024-12-24 18:44:20 +00:00
Made demo window height larger and added Save/Load/Export buttons
This commit is contained in:
parent
c217c68ea3
commit
593bf96742
2
conf.lua
2
conf.lua
@ -1,6 +1,6 @@
|
||||
function love.conf(t)
|
||||
t.version = "0.9.0"
|
||||
t.window.width = 640
|
||||
t.window.height = 480
|
||||
t.window.height = 600
|
||||
t.window.title = "sfxr.lua Demo"
|
||||
end
|
31
main.lua
31
main.lua
@ -237,7 +237,7 @@ function createRandomizers()
|
||||
playSound()
|
||||
end
|
||||
|
||||
f:SetPos(5, 395)
|
||||
f:SetPos(5, 515)
|
||||
f:SetSize(110, 80)
|
||||
end
|
||||
|
||||
@ -248,7 +248,7 @@ function createParameters()
|
||||
local l = lf.Create("list")
|
||||
l:SetSpacing(5)
|
||||
l:SetPadding(5)
|
||||
l:SetSize(340, 445)
|
||||
l:SetSize(340, 565)
|
||||
f:AddItem(l)
|
||||
|
||||
|
||||
@ -334,12 +334,12 @@ function createParameters()
|
||||
|
||||
|
||||
f:SetPos(125, 5)
|
||||
f:SetSize(350, 470)
|
||||
f:SetSize(350, 590)
|
||||
end
|
||||
|
||||
function createPlayButton()
|
||||
function createActionButtons()
|
||||
local f = lf.Create("form")
|
||||
f:SetName("Play")
|
||||
f:SetName("Actions")
|
||||
|
||||
local b = lf.Create("button")
|
||||
b:SetText("Play")
|
||||
@ -354,8 +354,23 @@ function createPlayButton()
|
||||
playbutton = b
|
||||
f:AddItem(b)
|
||||
|
||||
f:SetPos(485, 425)
|
||||
f:SetSize(150, 50)
|
||||
local b = lf.Create("button")
|
||||
b:SetText("Save")
|
||||
b:SetWidth(140)
|
||||
f:AddItem(b)
|
||||
|
||||
local b = lf.Create("button")
|
||||
b:SetText("Load")
|
||||
b:SetWidth(140)
|
||||
f:AddItem(b)
|
||||
|
||||
local b = lf.Create("button")
|
||||
b:SetText("Export WAV")
|
||||
b:SetWidth(140)
|
||||
f:AddItem(b)
|
||||
|
||||
f:SetPos(485, 455)
|
||||
f:SetSize(150, 140)
|
||||
end
|
||||
|
||||
function createOther()
|
||||
@ -515,7 +530,7 @@ function love.load()
|
||||
createPresetGenerators()
|
||||
createRandomizers()
|
||||
createParameters()
|
||||
createPlayButton()
|
||||
createActionButtons()
|
||||
createOther()
|
||||
|
||||
wavecanvas = love.graphics.newCanvas(125, 140)
|
||||
|
Loading…
Reference in New Issue
Block a user