[EntryPoint]class sB:CoroutineScene{Skin@D;ScenePlayer@F;xA@XB;yA@U;zA@YB;AB@BB;void Initialize(){@D=GetSkin();
SetData("Player::EnableSkillCounter",false);SetData("Player::SkillCounter",0);}void Run(){RunCoroutine(Coroutine(ZB),"Select:KeyInput");
RunCoroutine(Coroutine(aB),"Player.Background");@U=yA(D);U.u=GetIntData("ScoreGauge::ClearBorder");U.RA=GetIntData("ScoreGauge::MaxGauge");
@YB=zA(D);@F=ScenePlayer();bB();F.Initialize();@XB=xA(D,F.GetCharacterInstance());@BB=AB(D,F.GetCharacterInstance());
BB.cB(SkillCallback(CB));F.Z=5;AddSprite(F);F.Load();while(!F.IsLoadCompleted())YieldFrame(1);F.GetReady();
BB.dB();F.Play();DrawableResult e,DB;F.GetCurrentResult(DB);while(F!is null){F.GetCurrentResult(e);U.JusticeCritical=e.JusticeCritical;
U.Justice=e.Justice;U.Attack=e.Attack;U.Miss=e.Miss;U.MaxCombo=e.MaxCombo;U.Score=e.Score;U.CA=e.FulfilledGauges;
U.SA=(int(e.FulfilledGauges)-int(DB.FulfilledGauges))+e.CurrentGaugeRatio;DB=e;YieldFrame(1);}}void aB(){Container@p=Container();
p.Apply("z:0");Sprite@iA=Sprite();string OB=GetStringData("ScoreInfo::Background");Image@EB=(OB=="")?null:Image(OB);
if(EB is null||EB.Width==0){iA.SetImage(D.GetImage("Player-BackGround-StarDefault"));p.AddChild(iA);
if(!GetBoolData("Skin::EnableBGEffect")){AddSprite(p);return;}array<Sprite@>J(8);@J[0]=Sprite(D.GetImage("Player-BackGround-StarDefault-Effect-White"));
@J[1]=Sprite(D.GetImage("Player-BackGround-StarDefault-Effect-Red"));@J[2]=Sprite(D.GetImage("Player-BackGround-StarDefault-Effect-Blue"));
@J[3]=Sprite(D.GetImage("Player-BackGround-StarDefault-Effect-Orange"));@J[4]=Sprite(D.GetImage("Player-BackGround-StarDefault-Effect-White"));
@J[5]=Sprite(D.GetImage("Player-BackGround-StarDefault-Effect-Red"));@J[6]=Sprite(D.GetImage("Player-BackGround-StarDefault-Effect-Blue"));
@J[7]=Sprite(D.GetImage("Player-BackGround-StarDefault-Effect-Orange"));for(uint C=0;C<4;C++){J[C].Apply("origX:30, origY:400, scaleX:2, scaleY:1.5, x:200, y:400, angle:-0.8, z:1");
p.AddChild(J[C]);}for(uint C=4;C<8;C++){J[C].Apply("origX:30, origY:400, scaleX:2, scaleY:1.5, x:1080, y:400, angle:0.8, z:1");
p.AddChild(J[C]);}AddSprite(p);while(true){double I;array<uint>FB={39,35,28,23};array<uint>PB={31,40,19,27};
for(uint C=0;C<FB.length();C++){I=120.0/FB[C];for(uint K=0;K<FB[C];K++){J[C].AddMove("angle_to(x:1.1, time:"+I+", wait:"+(2*K*I)+", ease:inout_sine)");
J[C].AddMove("angle_to(x:-0.8, time:"+I+", wait:"+((2*K+1)*I)+", ease:inout_sine)");J[C].AddMove("move_by(x:150, time:"+I+", wait:"+(2*K*I)+", ease:inout_sine)");
J[C].AddMove("move_by(x:-150, time:"+I+", wait:"+((2*K+1)*I)+", ease:inout_sine)");J[C].AddMove("scale_to(x:0.6, y:1 time:"+I+", wait:"+(2*K*I)+", ease:inout_sine)");
J[C].AddMove("scale_to(x:2, y:1.5 time:"+I+", wait:"+((2*K+1)*I)+", ease:inout_sine)");}I=120.0/PB[C];
for(uint K=0;K<PB[C];K++){J[C+4].AddMove("angle_to(x:-1.1, time:"+I+", wait:"+(2*K*I)+", ease:inout_sine)");
J[C+4].AddMove("angle_to(x:0.8, time:"+I+", wait:"+((2*K+1)*I)+", ease:inout_sine)");J[C+4].AddMove("move_by(x:-150, time:"+I+", wait:"+(2*K*I)+", ease:inout_sine)");
J[C+4].AddMove("move_by(x:150, time:"+I+", wait:"+((2*K+1)*I)+", ease:inout_sine)");J[C+4].AddMove("scale_to(x:0.6, y:1 time:"+I+", wait:"+(2*K*I)+", ease:inout_sine)");
J[C+4].AddMove("scale_to(x:2, y:1.5 time:"+I+", wait:"+((2*K+1)*I)+", ease:inout_sine)");}}YieldTime(240);
}}else{iA.SetImage(EB);p.AddChild(iA);AddSprite(p);}}void Draw(){}void ZB(){bool GB=false;bool eB=(GetIntData("AutoPlay")==1);
while(true){if(IsKeyTriggered(Key::INPUT_ESCAPE)){if(Execute("Select.as")){@F=null;Disappear();}}if(eB){if(IsKeyTriggered(Key::INPUT_LEFT)){F.MovePositionByMeasure(-1);
}if(IsKeyTriggered(Key::INPUT_RIGHT)){F.MovePositionByMeasure(1);}if(IsKeyTriggered(Key::INPUT_SPACE)){if(GB){F.Resume();
}else{F.Pause();}GB=!GB;}if(IsKeyTriggered(Key::INPUT_R)&&IsKeyHeld(Key::INPUT_LCONTROL)){F.Reload();
}}YieldFrame(1);}}void bB(){F.SetResource("LaneGround",D.GetImage("*Lane-Ground"));F.SetResource("LaneJudgeLine",D.GetImage("*Lane-JudgeLine"));
F.SetResource("LaneHoldLight",D.GetImage("*Lane-HoldLight"));F.SetResource("FontCombo",D.GetFont("Combo192"));
F.SetResource("Tap",D.GetImage("*Note-Tap"));F.SetResource("ExTap",D.GetImage("*Note-ExTap"));F.SetResource("AirUp",D.GetImage("*Note-AirUp"));
F.SetResource("AirDown",D.GetImage("*Note-AirDown"));F.SetResource("Flick",D.GetImage("*Note-Flick"));
F.SetResource("HellTap",D.GetImage("*Note-HellTap"));F.SetResource("Hold",D.GetImage("*Note-Hold"));
F.SetResource("HoldStrut",D.GetImage("*Note-HoldStrut"));F.SetResource("Slide",D.GetImage("*Note-Slide"));
F.SetResource("SlideStrut",D.GetImage("*Note-SlideStrut"));F.SetResource("AirAction",D.GetImage("*Note-AirAction"));
F.SetResource("SoundTap",D.GetSound("*Sound-Tap"));F.SetResource("SoundExTap",D.GetSound("*Sound-ExTap"));
F.SetResource("SoundFlick",D.GetSound("*Sound-Flick"));F.SetResource("SoundAir",D.GetSound("*Sound-Air"));
F.SetResource("SoundAirAction",D.GetSound("*Sound-AirAction"));F.SetResource("SoundHoldLoop",D.GetSound("*Sound-SlideLoop"));
F.SetResource("SoundSlideLoop",D.GetSound("*Sound-HoldLoop"));F.SetResource("EffectTap",D.GetAnime("*Anime-Tap"));
F.SetResource("EffectExTap",D.GetAnime("*Anime-ExTap"));F.SetResource("EffectAirAction",D.GetAnime("*Anime-AirAction"));
F.SetResource("EffectSlideTap",D.GetAnime("*Anime-SlideTap"));F.SetResource("EffectSlideLoop",D.GetAnime("*Anime-SlideLoop"));
}void CB(int i){U.fB();}}class xA{private Container@E;private Sprite@jA,kA,tB,lA;private Sprite@mA,HB,IB,TA;
private TextSprite@uB,UA;private TextSprite@VA,WA,XA,DA;private uint vB,wB,JB,xB;private double Q;private string yB;
xA(Skin@D,CharacterInstance@q){@E=Container();E.Apply("z:15");@jA=Sprite();Image@KB=D.GetImage("NamePlate");
jA.SetImage(KB);int V=KB.Width,W=KB.Height;if(V>0&&W>0){jA.Apply("scaleX:"+(380.0/V)+", scaleY:"+(140.0/W)+", z:0");
}E.AddChild(jA);@kA=Sprite();kA.Apply("x:95, y:5, z:1");kA.SetImage(D.GetImage("NamePlate-Ticket-NoTicket"));
E.AddChild(kA);@lA=Sprite();lA.Apply("x:95, y:30, z:1");lA.SetImage(D.GetImage("NamePlate-Profile"));
E.AddChild(lA);@mA=Sprite();mA.Apply("x:95, y:59, z:1");mA.SetImage(D.GetImage("NamePlate-User-Base"));
E.AddChild(mA);if(q!is null){@TA=Sprite();TA.Apply("x:312, y:61, z:1");E.AddChild(TA);double gB=52.0/128;
double hB=52.0/128;q.GetCharacterImages().ApplyFaceImage(TA);TA.Apply("scaleX:"+gB+", scaleY:"+hB);}@HB=Sprite(D.GetImage("NamePlate-Emblem-Frame"));
HB.Apply("x:247, y:96, z:2");E.AddChild(HB);@IB=Sprite(D.GetImage("NamePlate-Emblem-Icon"));IB.Apply("x:258, y:90, z:3");
E.AddChild(IB);@UA=TextSprite(D.GetFont("Bold32"),GetStringData("NamePlate::Profile"));UA.Apply("scaleX:0.65, scaleY:0.65, x:232, y:44, z:2, r:0, g:0, b:0");
UA.SetAlignment(TextAlign::Center,TextAlign::Center);UA.SetRangeScroll(int(260/0.65),48,48);E.AddChild(UA);
@VA=TextSprite(D.GetFont("Bold32"),"");VA.Apply("x:120, y:98, z:2, r:0, g:0, b:0");VA.SetAlignment(TextAlign::Left,TextAlign::Bottom);
E.AddChild(VA);@WA=TextSprite(D.GetFont("Normal32"),GetStringData("NamePlate::Name"));WA.Apply("x:160, y:96, z:2, r:0, g:0, b:0");
WA.SetAlignment(TextAlign::Left,TextAlign::Bottom);WA.SetRangeScroll(140,20,48);E.AddChild(WA);@XA=TextSprite(D.GetFont("Bold32"),"RATING");
XA.Apply("x:100, y:95, scaleX:0.6, scaleY:0.6, z:2");XA.SetAlignment(TextAlign::Left,TextAlign::Top);
E.AddChild(XA);@DA=TextSprite(D.GetFont("Bold32"),"");DA.Apply("x:160, y:95, z:2, scaleX:0.6, scaleY:0.6");
DA.SetAlignment(TextAlign::Left,TextAlign::Top);E.AddChild(DA);AddSprite(E);iB=GetIntData("NamePlate::Level");
jB=GetDoubleData("NamePlate::Rating");}uint iB{get const{return JB;}set{if(value==0)value=1;JB=value%100;
VA.SetText(""+JB);}}double jB{get const{return Q;}set{if(value<0.0)value=0.0;if(value>15.99)value=15.99;
Q=value;int a,b,c;if(0.0<=Q&&Q<2.0){a=0;b=0;c=255;}else if(Q<4.0){a=0;b=255;c=0;}else if(Q<7.0){a=255;
b=128;c=0;}else if(Q<10.0){a=255;b=0;c=0;}else if(Q<12.0){a=255;b=0;c=255;}else if(Q<13.0){a=128;b=64;
c=0;}else if(Q<14.0){a=128;b=128;c=128;}else if(Q<14.5){a=255;b=255;c=0;}else if(Q<15.0){a=255;b=255;
c=128;}else{a=128;b=255;c=128;}XA.Apply("r:"+a+", g:"+b+", b:"+c);DA.Apply("r:"+a+", g:"+b+", b:"+c);
DA.SetText(formatFloat(Q,'',2,2));}}}class yA{private Container@E=null;private Sprite@v=null;private array<Sprite@>M(2),N(2),d(2);
private array<Sprite@>k(2),l(2);private array<TextSprite@>f(6);private nA@O=null;private array<int>m={-1,-1,-1,-1,-1,-1};
yA(Skin@D){Font@kB=D.GetFont("Bold16");@E=Container();E.Apply("x:384, y:0, z:20");@v=Sprite();switch(GetIntData("ScoreInfo::Difficulty")){case 0:v.SetImage(D.GetImage("Player-Score-BackGround-Basic"));
break;case 1:v.SetImage(D.GetImage("Player-Score-BackGround-Advanced"));break;case 2:v.SetImage(D.GetImage("Player-Score-BackGround-Expert"));
break;case 3:v.SetImage(D.GetImage("Player-Score-BackGround-Master"));break;case 4:default:v.SetImage(D.GetImage("Player-Score-BackGround-WorldsEnd"));
break;}E.AddChild(v);for(uint C=0;C<f.length();C++){@f[C]=TextSprite(kB,"");f[C].SetAlignment(TextAlign::Left,TextAlign::Top);
E.AddChild(f[C]);}f[0].Apply("x: 15, y: 6, r:240, g:240, b: 20");f[1].Apply("x:186, y: 6, r:255, g:140, b: 60");
f[2].Apply("x:304, y: 6, r: 40, g:200, b: 32");f[3].Apply("x:420, y: 6, r:138, g:138, b:150");f[4].Apply("x: 94, y:30, scaleX: 1.2, scaleY: 1.2, r:255, g:255, b:255");
f[5].Apply("x:290, y:30, scaleX: 1.2, scaleY: 1.2, r:255, g:255, b:255");@O=nA(D);O.Apply("x:70, y:50, z:20");
E.AddChild(O.Container);for(uint C=0;C<k.length();C++){@k[C]=Sprite(D.GetImage("Player-Score-Speaker-Base-Black"));
k[C].Apply("x:"+(0+70/2+C*443)+", y:"+(27+90/2));k[C].Apply("origX:"+(70/2)+", origY:"+(90/2));E.AddChild(k[C]);
}for(uint C=0;C<l.length();C++){@l[C]=Sprite(D.GetImage("Player-Score-Speaker-Base-Orange"));l[C].Apply("x:"+(0+70/2+C*443)+", y:"+(27+90/2)+", alpha:0");
l[C].Apply("origX:"+(70/2)+", origY:"+(90/2));E.AddChild(l[C]);}for(uint C=0;C<M.length();C++){@M[C]=Sprite();
M[C].SetImage(D.GetImage("Player-Score-Speaker-Circle-Black"));M[C].Apply("x:"+(8+55/2+C*443)+", y:"+(46+56/2));
M[C].Apply("origX:"+(55/2)+", origY:"+(56/2));E.AddChild(M[C]);}for(uint C=0;C<N.length();C++){@N[C]=Sprite();
N[C].SetImage(D.GetImage("Player-Score-Speaker-Circle-Orange"));N[C].Apply("x:"+(8+55/2+C*443)+", y:"+(46+56/2)+", alpha:0");
N[C].Apply("origX:"+(55/2)+", origY:"+(56/2));E.AddChild(N[C]);}for(uint C=0;C<d.length();C++){@d[C]=Sprite();
d[C].SetImage(D.GetImage("Player-Score-Speaker-Mask"));d[C].Apply("x:"+(8+55/2+C*443)+", y:"+(46+56/2)+", alpha:0");
d[C].Apply("origX:"+(55/2)+", origY:"+(56/2));E.AddChild(d[C]);}AddSprite(E);JusticeCritical=0;Justice=0;
Attack=0;Miss=0;MaxCombo=0;Score=0;}nA@zB{get{return O;}}int JusticeCritical{get{return m[0];}set{EA(0,value);
}}int Justice{get{return m[1];}set{EA(1,value);}}int Attack{get{return m[2];}set{EA(2,value);}}int Miss{get{return m[3];
}set{EA(3,value);}}int MaxCombo{get{return m[4];}set{EA(4,value);}}int Score{get{return m[5];}set{EA(5,value);
}}double SA{get{return O.SA;}set{O.SA=value;}}uint CA{get{return O.CA;}set{O.CA=value;if(O.oA){for(uint C=0;
C<k.length();C++)k[C].Apply("alpha:0");for(uint C=0;C<l.length();C++)l[C].Apply("alpha:1");for(uint C=0;
C<M.length();C++)M[C].Apply("alpha:0");for(uint C=0;C<N.length();C++)N[C].Apply("alpha:1");}else{for(uint C=0;
C<k.length();C++)k[C].Apply("alpha:1");for(uint C=0;C<l.length();C++)l[C].Apply("alpha:0");for(uint C=0;
C<M.length();C++)M[C].Apply("alpha:1");for(uint C=0;C<N.length();C++)N[C].Apply("alpha:0");}}}uint u{get{return O.u;
}set{O.u=value;}}uint RA{get{return O.RA;}set{O.RA=value;}}private void EA(uint i,int L){string j;if(i>=m.length()||L<0)return;
if(m[i]==L)return;m[i]=L;switch(i){case 0:j="JUSTICE CRITICAL : "+formatInt(L,'',5);break;case 1:j="JUSTICE : "+formatInt(L,'',5);
break;case 2:j="ATTACK : "+formatInt(L,'',5);break;case 3:j="MISS : "+formatInt(L,'',5);break;case 4:j="MAX COMBO  :   "+formatInt(L,'',7);
break;case 5:{string FA="";if(L==0)FA+="0";else{while(L>0){FA.insert(0,formatInt(L%1000,((L>999)?'0':''),3));
L/=1000;if(L>0)FA.insert(0,",");}}while(FA.length()<10)FA.insert(0," ");j="SCORE   : "+FA;break;}default:j="";
}f[i].SetText(j);}void fB(void){if(O.oA){for(uint C=0;C<N.length();C++){N[C].AbortMove();N[C].AddMove("scale_to(x:1.4, y:1.4, time:0.08)");
N[C].AddMove("scale_to(x:1, y:1, time:0.08, wait:0.08)");}}else{for(uint C=0;C<M.length();C++){M[C].AbortMove();
M[C].AddMove("scale_to(x:1.4, y:1.4, time:0.08)");M[C].AddMove("scale_to(x:1, y:1, time:0.08, wait:0.08)");
}}for(uint C=0;C<d.length();C++){d[C].AbortMove();d[C].AddMove("scale_to(x:1.4, y:1.4, time:0.08)");
d[C].AddMove("alpha(x:0, y:1, time:0.08)");d[C].AddMove("scale_to(x:1, y:1, time:0.08, wait:0.08)");
d[C].AddMove("alpha(x:1, y:0, time:0.08, wait:0.08)");}}}class nA{private Container@E=null;Sprite@pA,qA,GA,YA;
SynthSprite@n,o;array<Sprite@>P(10),S(10);Image@QB,RB;Image@SB,TB;private uint HA=0,ZA=0,r=10;private double LB=0.0;
nA(Skin@D){@QB=D.GetImage("Player-GaugeCount-Base-Blue");@RB=D.GetImage("Player-GaugeCount-Base-Orange");
@SB=D.GetImage("Player-GaugeCount-Over-Blue");@TB=D.GetImage("Player-GaugeCount-Over-Orange");@pA=Sprite();
pA.SetImage(D.GetImage("Player-GaugeBar-Base"));pA.Apply("x:0, y:0, z:0");@n=SynthSprite(374,40);n.Transfer(D.GetImage("Player-GaugeBar-Blue"),0,0);
n.Apply("x:0, y:0, scaleX:0, z:1, alpha:0");@o=SynthSprite(374,40);o.Transfer(D.GetImage("Player-GaugeBar-Orange"),0,0);
o.Apply("x:0, y:0, scaleX:0,  z:1, alpha:0");@qA=Sprite();qA.SetImage(D.GetImage("Player-GaugeBar-Measure"));
qA.Apply("x:0, y:0, z:2");for(uint C=0;C<P.length();C++){@P[C]=Sprite();P[C].Apply("x:"+(15+34*C)+", y:42, z:3");
}for(uint C=0;C<S.length();C++){@S[C]=Sprite();S[C].Apply("x:"+(15+34*C)+", y:42, z:4, alpha:0");}@YA=Sprite();
YA.SetImage(D.GetImage("Player-Score-Gauge-ClearToolTip"));YA.Apply("x:"+(34*u-10)+", y:35, z:5");@GA=Sprite();
GA.SetImage(D.GetImage("Player-GaugeBar-ClearLogo"));GA.Apply("x:0, y:0, z:6, alpha:0");@E=Container();
E.AddChild(pA);E.AddChild(qA);E.AddChild(GA);E.AddChild(n);E.AddChild(o);for(uint C=0;C<P.length();C++)E.AddChild(P[C]);
for(uint C=0;C<S.length();C++)E.AddChild(S[C]);E.AddChild(YA);u=2;SA=0.0;CA=0;RA=4;}Container@Container{get{return E;
}}bool oA{get{return!(CA<u);}}uint u{get{return HA;}set{uint H=value;if(H==0)H=1;if(H>S.length()-1)H=S.length()-1;
if(H==HA)return;HA=H;for(uint C=1;C<HA;C++){P[C-1].SetImage(QB);S[C-1].SetImage(SB);}for(uint C=HA;C<=P.length();
C++){P[C-1].SetImage(RB);S[C-1].SetImage(TB);}YA.Apply("x:"+(34*HA-12)+", y:37, z:2");}}double SA{get{return LB;
}set{double H=value;int IA=0;if(H<0.0){while(H<0.0)H+=1.0;IA=-1;}if(H>=1.0){while(H>=1.0)H-=1.0;IA=1;
}if(H==LB)return;if(oA){n.Apply("alpha:0");o.Apply("alpha:1");if(IA!=0){o.AbortMove();o.Apply("scaleX:"+((IA<0)?1:0));
}o.AddMove("scale_to(x:"+formatFloat(H,'',1,4)+", y:1, time:0.1, ease:out_sine)");}else{o.Apply("alpha:0");
n.Apply("alpha:1");if(IA!=0){n.AbortMove();n.Apply("scaleX:"+((IA<0)?1:0));}n.AddMove("scale_to(x:"+formatFloat(H,'',1,4)+", y:1, time:0.1, ease:out_sine)");
}LB=H;}}uint CA{get{return ZA;}set{uint H=value;if(H>r)H=r;if(H==ZA)return;ZA=H;for(uint C=0;C<ZA;C++){S[C].Apply("alpha:1");
}for(uint C=ZA;C<P.length();C++){S[C].Apply("alpha:0");}if(oA)GA.Apply("alpha:1");else GA.Apply("alpha:0");
}}uint RA{get{return r;}set{uint H=value;if(H>P.length())H=P.length();if(H==r)return;r=H;for(uint C=0;
C<r;C++)P[C].Apply("alpha:1");for(uint C=r;C<P.length();C++)P[C].Apply("alpha:0");for(uint C=r;C<S.length();
C++)S[C].Apply("alpha:0");}}void Apply(string j){if(E!is null)E.Apply(j);}}class zA{Container@T;zA(Skin@D){Font@UB,aA,lB;
Sprite@bA,cA,s;TextSprite@JA,KA,LA,w,g;TextSprite@x,y;int z=GetIntData("ScoreInfo::Difficulty");if(z>4)z=4;
if(z<0)z=0;@UB=D.GetFont("Bold32");@aA=D.GetFont("Bold16");@lB=D.GetFont("Bold8");@T=Container();T.Apply("x:906, y:0, z:15");
{int V,W;Image@dA=D.GetImage("MusicSelectFrame-Black");@bA=Sprite();bA.Apply("x:10, y:35");bA.SetImage(dA);
V=(dA is null)?0:dA.Width;W=(dA is null)?0:dA.Height;if(V<=0)V=1;if(W<=0)W=1;bA.Apply("scaleX:"+(76.0/V)+", scaleY:"+(76.0/W));
}{int V,W;Image@eA=Image(GetStringData("ScoreInfo::JacketPath"));if(eA.Width==0)@eA=D.GetImage("MusicSelectFrame-NoImage");
@cA=Sprite();cA.Apply("x:10, y:35");cA.SetImage(eA);V=eA.Width;W=eA.Height;if(V<=0)V=1;if(W<=0)W=1;cA.Apply("scaleX:"+(76.0/V)+", scaleY:"+(76.0/W));
}{@s=Sprite();s.Apply("x:0, y:0");switch(z){case 0:s.SetImage(D.GetImage("Player-MusicInfo-BackGround-BASIC"));
break;case 1:s.SetImage(D.GetImage("Player-MusicInfo-BackGround-ADVANCED"));break;case 2:s.SetImage(D.GetImage("Player-MusicInfo-BackGround-EXPERT"));
break;case 3:s.SetImage(D.GetImage("Player-MusicInfo-BackGround-MASTER"));break;case 4:s.SetImage(D.GetImage("Player-MusicInfo-BackGround-WORLDSEND"));
break;}}{@JA=TextSprite(aA,"");JA.Apply("x:45, y:5");JA.Apply("r:255, g:255, b:255");JA.SetAlignment(TextAlign::Left,TextAlign::Top);
JA.SetText("スピード設定："+formatFloat(parseFloat(GetSettingItem("Play","Hispeed").GetItemText()),'',2,1));
}{@KA=TextSprite(aA,"");KA.Apply("x:210, y:5");KA.Apply("r:255, g:255, b:255");KA.SetAlignment(TextAlign::Left,TextAlign::Top);
KA.SetText("ミラー設定："+((false)?"ON":"OFF"));}{@LA=TextSprite(aA,"");LA.Apply("x:95, y:33");LA.Apply("r:255, g:255, b:255");
LA.SetAlignment(TextAlign::Left,TextAlign::Top);LA.SetText("TRACK："+GetIntData("TrackCount"));}{if(z==4){string VB="";
int L=GetIntData("ScoreInfo::Level");while(L-->0)VB+="★";@g=TextSprite(D.GetFont("Bold16"),"");g.Apply("x:292, y:25");
g.Apply("r:255, g:255, b:255");g.SetAlignment(TextAlign::Center,TextAlign::Top);g.SetText(VB);}else if(GetStringData("ScoreInfo::ExtraLevel")=="+"){@g=TextSprite(aA,"");
g.Apply("x:305, y:44");g.Apply("r:0, g:0, b:0");g.SetAlignment(TextAlign::Left,TextAlign::Center);g.SetText("+");
}}{@w=TextSprite(UB,"");w.Apply("x:292, y:39");w.Apply("r:0, g:0, b:0");w.SetAlignment(TextAlign::Center,TextAlign::Top);
if(z==4){w.SetText(GetStringData("ScoreInfo::ExtraLevel"));}else{w.SetText(""+GetIntData("ScoreInfo::Level"));
}}{@x=TextSprite(D.GetFont("Normal16"),"");x.Apply("x:96, y:79, scaleX:1.2, scaleY:1.2");x.Apply("r:0, g:0, b:0");
x.SetRangeScroll((226*5/6),(20*5/6),48);x.SetAlignment(TextAlign::Left,TextAlign::Top);x.SetText(GetStringData("ScoreInfo::Title"));
}{@y=TextSprite(D.GetFont("Normal8"),"");y.Apply("x:96, y:103");y.Apply("r:0, g:0, b:0");y.SetRangeScroll(226,8,48);
y.SetAlignment(TextAlign::Left,TextAlign::Top);y.SetText(GetStringData("ScoreInfo::Artist"));}T.AddChild(bA);
T.AddChild(cA);T.AddChild(s);T.AddChild(JA);T.AddChild(KA);T.AddChild(LA);T.AddChild(w);T.AddChild(g);
T.AddChild(x);T.AddChild(y);AddSprite(T);}}class AB{private Container@E;private SynthSprite@t;private Sprite@rA,sA,MA,NA;
private array<Sprite@>fA();private TextSprite@AA,OA,BA;private array<SkillCallback@>MB;AB(Skin@D,CharacterInstance@q){@E=Container();
E.Apply("x:-313, y:150, z:30");int tA=GetIntData("CharaInfo::Level");@t=SynthSprite(280,168);if(tA<5)t.Transfer(D.GetImage("Character-Frame-Back-Normal"),0,-16);
else if(tA<10)t.Transfer(D.GetImage("Character-Frame-Back-Bronze"),0,-16);else if(tA<15)t.Transfer(D.GetImage("Character-Frame-Back-Silver"),0,-16);
else if(tA<25)t.Transfer(D.GetImage("Character-Frame-Back-Gold"),0,-16);else t.Transfer(D.GetImage("Character-Frame-Back-LvMax"),0,-16);
@rA=Sprite();rA.SetImage(D.GetImage("Player-Character-Frame"));rA.Apply("x:0, y:0, z:2");t.Apply("x:17, y:12, z:0");
if(q!is null){@sA=Sprite();sA.Apply("x:17, y:11, z:1");q.GetCharacterImages().ApplySmallImage(sA);E.AddChild(sA);
}@MA=Sprite();MA.Apply("x:190, y:190, scaleX:0.6, scaleY:0.6, z:3");MA.SetImage(D.GetImage("SkillInfo-Level-Base"));
@NA=Sprite();NA.Apply("x:228, y:192, z:3");@AA=TextSprite(D.GetFont("Normal32"),"");AA.Apply("x:22, y:200, scaleX:0.8, scaleY:0.8, z:3, r: 0, g: 0, b: 0");
AA.SetAlignment(TextAlign::Left,TextAlign::Center);AA.SetRangeScroll(int(165/0.8),64,48);@OA=TextSprite(D.GetFont("Normal32"),"");
OA.Apply("x:207, y:200, scaleX:0.8, scaleY:0.8, z:4, r: 0, g: 0, b: 0");OA.SetAlignment(TextAlign::Center,TextAlign::Center);
@BA=TextSprite(D.GetFont("Normal16"),"");BA.Apply("x:22, y:213, z:3, scaleX:0.8, scaleY:0.8, r: 0, g: 0, b: 0");
BA.SetAlignment(TextAlign::Left,TextAlign::Top);BA.SetRich(true);auto NB=q.GetSkillIndicators();int mB=NB.GetIndicatorCount(),C;
for(C=0;C<mB;C++){fA.insertLast(Sprite(NB.GetIndicatorImage(C)));fA[C].Apply("scaleX:0.25, scaleY:0.25, origX:48, origY:48, y:277, x:"+(282-(C*28))+", z:3");
E.AddChild(fA[C]);}NB.SetCallback(SkillCallback(CB));E.AddChild(t);E.AddChild(rA);E.AddChild(MA);E.AddChild(NA);
E.AddChild(AA);E.AddChild(OA);E.AddChild(BA);AddSprite(E);nB((q is null)?null:q.GetSkill());oB(D);}void nB(Skill@uA){if(uA!is null){string vA=uA.Name;
int gA=vA.findLast("+");string pB=(gA>0)?vA.substr(gA):"";if(gA>0)vA.erase(gA);Image@hA=Image(uA.IconPath);
double qB=68.0/((hA is null)?68:hA.Width);double rB=68.0/((hA is null)?68:hA.Height);NA.SetImage(hA);
NA.Apply("scaleX:"+qB+", scaleY:"+rB);AA.SetText(vA);MA.Apply("alpha:"+((gA>0)?1:0));OA.SetText(pB);
BA.SetText(uA.Description);}else{NA.SetImage(null);AA.SetText("");MA.Apply("alpha:0");OA.SetText("");
BA.SetText("");}}void cB(SkillCallback@WB){if(WB!is null)MB.insertLast(WB);}void CB(int i){Sprite@wA=(fA.length()-i>0)?fA[i]:null;
if(wA!is null){wA.AbortMove(true);wA.Apply("scaleX:0.3, scaleY: 0.3");wA.AddMove("scale_to(x:0.25, y:0.25, time: 0.2)");
}for(uint C=0;C<MB.length();C++)MB[C](i);}Sprite@PA,QA;TextSprite@h;void oB(Skin@D){@PA=Sprite(D.GetImage("Ready1"));
PA.Apply("origX:640, origY:72, x:640, y:360, z:40, scaleY:0");@QA=Sprite(D.GetImage("Ready2"));QA.Apply("origY:72, x:-1280, y:360, z:41");
@h=TextSprite(D.GetFont("Normal64"),"ARE YOU READY?");h.SetAlignment(TextAlign::Center,TextAlign::Center);
h.Apply("x:640, y:360, z:41, scaleX:0");AddSprite(PA);AddSprite(QA);AddSprite(h);}void dB(void){E.AddMove("move_by(x:314, time:0.5, ease:out_quad)");
PA.AddMove("scale_to(x:1, y:1, time:0.3, ease:out_sine)");QA.AddMove("move_by(x:1280, time:0.5, wait:0.3, ease:out_sine)");
h.AddMove("scale_to(x:1.4, y:1.4, time:0.3, wait:0.7, ease:out_back)");h.AddMove("scale_to(x:1.4, y:0, time:0.1, wait:2.0, ease:out_sine)");
YieldTime(2.1);h.SetText("START!");h.AddMove("scale_to(x:1.4, y:1.4, time:0.3, wait:0.7, ease:out_back)");
h.AddMove("scale_to(x:4, y:1.4, time:0.5, wait:2, ease:out_sine)");h.AddMove("alpha(x:1, y:0, time:0.5, wait:2)");
h.AddMove("death(wait:2.5)");YieldTime(2);PA.AddMove("scale_to(x:1, y:0, time:0.3, ease:in_back)");QA.AddMove("alpha(x:1, y:0, time:0.3)");
PA.AddMove("death(wait:0.3)");QA.AddMove("death(wait:0.3)");YieldTime(0.5);}}