23 lines
540 B
Lua
23 lines
540 B
Lua
local stopMusic = function ()
|
|
local musicPlaying = game.GetSkinSetting('_musicPlaying');
|
|
if musicPlaying and musicPlaying ~= '' then
|
|
game.StopSample(musicPlaying);
|
|
game.SetSkinSetting("_musicPlaying", "")
|
|
end
|
|
end
|
|
|
|
local function splitString(inputstr, sep)
|
|
if sep == nil then
|
|
sep = "%s"
|
|
end
|
|
local t={}
|
|
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
|
|
table.insert(t, str)
|
|
end
|
|
return t
|
|
end
|
|
|
|
return {
|
|
stopMusic = stopMusic,
|
|
splitString = splitString
|
|
} |