jscall('window.switchScenesType()');
mul(stagescale,0.5);
mobilescale();
plugin[video].playvideo(%1, %2, false);
def(b, string, get(plugin[video].isPlayBg));
if(b == false, playBgMusic(%3));
if(b == suspend, delayedcall(0.5 , playBgMusic(%3, true)););
if(
%4 == true,
set(hotspot[hotspot-yard].visible, true);
,
set(hotspot[hotspot-yard].visible, false);
)
ifnot(%2 == true, playsound(bgsnd, %1, 0););
if(%2 == true, pausesoundtoggle(bgsnd););
set(plugin[video].isPlayBg, true);
def(voicesList, string, get(plugin[video].voicesList));
def(voicesName, string, get(plugin[video].playName));
txtreplace(voicesList, get(voicesName), '');
set(plugin[video].playName, '');
set(plugin[video].isPay, false);
set(plugin[video].voicesList, voicesList);
jscall('window.musicPlayComplete()');
def(voicesList, string, get(plugin[video].voicesList));
def(voicesName, string, %1);
def(voicesUrl, string, %2);
def(isStartPay, string, %3);
set(plugin[video].playName, get(voicesName));
indexoftxt(index, get(voicesList), get(voicesName));
if(
isStartPay == true,
startPayMusic(get(voicesName), get(voicesUrl), get(voicesList));
,
if(
isStartPay == false,
pausesoundMusic(get(voicesName));
,
if(
index == -1,
startPayMusic(get(voicesName), get(voicesUrl), get(voicesList));
,
toggleMusic(get(voicesName));
)
)
);
txtadd(voicesConcat, get(voicesList), get(voicesName));
set(plugin[video].voicesList, get(voicesConcat));
set(plugin[video].isPay, true);
def(b, string, get(plugin[video].isPlayBg));
if(
b == suspend,
delayedcall(0.5,playsound(get(voicesName), get(voicesUrl), 1, musicPlayComplete););
,
playsound(get(voicesName), get(voicesUrl), 1, musicPlayComplete);
);
def(isPay, string, get(plugin[video].isPay));
if(
isPay == false,
set(plugin[video].isPay, true);
resumesoundMusic(get(voicesName))
,
set(plugin[video].isPay, false);
pausesoundMusic(get(voicesName));
);
pausesound(%1);
resumesound(%1);
pausesoundtoggle(bgsnd);
jscall('window.videoready()');
set(plugin[video].isVideoreadyType, true);
def(isTip, string, get(plugin[video].isTip));
trace(plugin[video].isTip);
pausesound(bgsnd);
set(plugin[video].isPay, false);
def(voicesName, string, get(plugin[video].playName));
ifnot(voicesName == '' ,pausesoundMusic(get(voicesName)););
if(isTip == true,
set(plugin[video].isTip, false);
,
jscall('window.videopausedFunc()');
);
def(isVideoreadyType, string, get(plugin[video].isVideoreadyType));
if(isVideoreadyType == true,
def(voicesName, string, get(plugin[video].playName));
def(isPlayBg, string, get(plugin[video].isPlayBg));
if(isPlayBg == true,
plugin[video].pause();
set(plugin[video].isTip, true);
pausesound(bgsnd);
set(plugin[video].isPlayBg, false);
jscall(calc("window.switchPlayImg('"+ false +"')") );
ifnot(voicesName == '' ,
set(plugin[video].isPay, false);
pausesoundMusic(get(voicesName));
jscall(calc("window.payVoiceStatus('"+ false +"')") ););
,
plugin[video].play();
resumesound(bgsnd);
set(plugin[video].isPlayBg, true);
jscall(calc("window.switchPlayImg('"+ true +"')") );
ifnot(voicesName == '' ,
set(plugin[video].isPay, true);
resumesoundMusic(get(voicesName));
jscall(calc("window.payVoiceStatus('"+ true +"')") ););
);
);