mirror of
https://github.com/nucular/sfxrlua.git
synced 2024-12-24 18:44:20 +00:00
Update parameters after loading a sound, fixes #11
This commit is contained in:
parent
6379b1e7f9
commit
03fb31ff8e
1
main.lua
1
main.lua
@ -390,6 +390,7 @@ function createActionButtons()
|
|||||||
lb.OnClick = function(o)
|
lb.OnClick = function(o)
|
||||||
local p = love.filesystem.getSaveDirectory() .. "/" .. "sound.lua"
|
local p = love.filesystem.getSaveDirectory() .. "/" .. "sound.lua"
|
||||||
sound:load(p)
|
sound:load(p)
|
||||||
|
updateParameters()
|
||||||
frt:SetText("Loaded from\n" .. p)
|
frt:SetText("Loaded from\n" .. p)
|
||||||
fr:SetVisible(true):SetModal(true):Center()
|
fr:SetVisible(true):SetModal(true):Center()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user