sorry fort the delay.
here's the entire text from the file jukeboxinclude.txt
this will 100% work.
foget which part i made changes(nore more than 3-5 ), everything was instinctive and I was very sleepy that time.
SONG_LIST = {
"eric",
}
--[[
DEFAULT_WATERLEVEL = 0
OVERRIDE_WATERLEVEL = {
["ancienttest"] = -2700,
}
--]]
function jukebox_initButton(me)
node_setCursorActivation(me, true)
node_setCatchActions(me, true)
end
function jukebox_doButtonAction(me, action, state, transitions, isdefault)
if isNestedMain() then return end
if getNodeToActivate() == me and state == 1 then
local name = transitions[action]
if name then
debugLog("jukebox_doButtonAction : "..node_getName(me).." -- "..action.." -> "..name)
local node = getNode(name)
setNodeToActivate(node)
setMousePos(toWindowFromWorld(node_x(node), node_y(node)-20))
end
return false
end
if getNodeToActivate() == 0 and state == 1 and isdefault then
if action == ACTION_MENURIGHT or action == ACTION_MENULEFT or action == ACTION_MENUUP or action == ACTION_MENUDOWN then
setNodeToActivate(me)
setMousePos(toWindowFromWorld(node_x(me), node_y(me)-20))
end
return false
end
return true
end
function jukebox_getSong()
return getStory()
end
function jukebox_playSong(index)
setStory(index)
local songName = SONG_LIST[index]
setControlHint("Now playing: "..songName)
playVoice(songName)
--[[
local waterLevel = getWaterLevel()
local newWaterLevel = OVERRIDE_WATERLEVEL[songName] or DEFAULT_WATERLEVEL
if newWaterLevel ~= waterLevel then setWaterLevel(newWaterLevel) end
--]]
end