//#include "UILib.cs" //#include "Pong.cs" int uiRoot, uiBackground, uiScroll, uiScroll2; int uiReceiveGameWorld; int uiSpectatorMenu, uiInGamePlayers; int uiFollowMenu; int uiGameOver, uiStageClear, uiStageClearList, g_StageClearSelection; int uiUnlock; int uiNetRoundOver, uiNetGameOver, uiRoundScoreboard, uiRoundScoreListTitle, uiRoundScoreList, uiCompetitionHostWin; int uiFinalScoreboard, uiFinalScoreList; int uiAutoDemo, uiCredit, uiDedicatedServer; int uiStartMenu, uiStartList; int uiInGameScoreboard, uiInGameScoreList; int uiMissionObjective, uiMissionObjectiveList; int uiTrainingMenu, uiTrainingList, uiTrainingOver1, uiTrainingOver2; int uiConfirmLeaveGame, uiConfirmJoinOtherGame, uiSessionNotCompatible; int uiSettingMenu, uiSettingList, g_settingSelection; int uiMusicVolumeOption, uiEffectsVolumeOption, uiVoiceVolumeOption; int uiVideoGammaOption, uiVideoBrightnessOption, uiVideoContrastOption; int uiControllerVibrationOption, uiCameraInvertOption; int uiShowPlayerName; int uiSettingLiveMenu, uiSettingLiveList, g_settingLiveSelection, uiAppearOfflineOption, uiVoiceThroughSpeaker, uiVoiceSpeakerVolume; int uiComboTable, uiComboList; int uiKickMenu, uiKickList, g_kickSelection, g_kickPlayerID, uiConfirmKick; int uiPong; int uiLoginState2; int iconDead, iconVIP, iconFriendRequest, iconGameInvite; int g_lastActiveUI = 0; void ShowPage(int id, int bkg) { Activate(uiRoot, 1); RenderWorld(1); if (bkg==0 && GetAppState()==APPSTATE_GAME_OVER) // gameover, dark screen bkg = 1; int bkgShow; Begin(uiBackground); bkgShow=IsShow(); End(); Activate(uiBackground, bkg); if (bkg) { Begin(uiBackground); if (bkg == 2) Color(0,0,0,1); // scenario stage clear, full dart background else { if (bkgShow) Color(0,0,0,0.8); // dark background already exist else TweenColor(0,0,0,0, 0,0,0,0.8, 0.5); // fadeout } End(); } Activate(uiSpectatorMenu, id==uiSpectatorMenu); Activate(uiFollowMenu, id==uiFollowMenu); Activate(uiReceiveGameWorld, id==uiReceiveGameWorld); Activate(uiStageClear, id==uiStageClear); Activate(uiGameOver, id==uiGameOver); Activate(uiNetRoundOver, id==uiNetRoundOver); Activate(uiNetGameOver, id==uiNetGameOver); Activate(uiCompetitionHostWin, id==uiCompetitionHostWin); Activate(uiTrainingMenu, id==uiTrainingMenu); Activate(uiTrainingOver1, id==uiTrainingOver1); Activate(uiTrainingOver2, id==uiTrainingOver2); Activate(uiPong, id==uiPong); Activate(uiStartMenu, id==uiStartMenu); Activate(uiAutoDemo, id==uiAutoDemo); Activate(uiCredit, id==uiCredit); Activate(uiDedicatedServer, id==uiDedicatedServer); Activate(uiInGameScoreboard, id==uiInGameScoreboard); Activate(uiMissionObjective, id==uiMissionObjective); Activate(uiConfirmLeaveGame, id==uiConfirmLeaveGame); Activate(uiConfirmJoinOtherGame, id==uiConfirmJoinOtherGame); Activate(uiSessionNotCompatible, id==uiSessionNotCompatible); Activate(uiSettingMenu, id==uiSettingMenu); Activate(uiSettingLiveMenu, id==uiSettingLiveMenu); Activate(uiComboTable, id==uiComboTable); Activate(uiKickMenu, id==uiKickMenu); Activate(uiConfirmKick, id==uiConfirmKick); Activate(uiUnlock, id==uiUnlock); PlayUIAnimation(id, 0); } void OnActivate(int a) { // var_fps = 50; g_lastActiveUI = GetActiveUI(); Activate(uiRoundScoreboard, 0); Activate(uiFinalScoreboard, 0); ShowScroll(uiScroll, 0); ShowScroll(uiScroll2, 0); if (a == UI2_PLAY_GAME) { a = UI2_BEGIN; if (GetAppState() == APPSTATE_GAME_OVER) { int res = GetGameOverResult(); if (res == GAMEOVER_NEXT_ROUND) ActivateUI(UI2_NET_ROUND_OVER); else ActivateUI(UI2_NET_GAME_OVER); return; } if (var_netMode!=NET_MODE_NONE && var_netMode!=NET_MODE_OFFLINE && var_dedicatedServer && IsServer()) { ActivateUI(UI2_DEDICATED_SERVER); return; } else if (IsSpectatorMode()) { ActivateUI(UI2_SPECTATOR_MENU); return; } else { int c = GetPlayerChara(); if (c && IsCharaSpectatorMode(c)) { ActivateUI(UI2_FOLLOW_MENU); return; } } } if (a==0 || a==UI2_BEGIN) { if (g_lastActiveUI==UI2_NET_ROUND_OVER) FadeIn(0.3); Activate(uiRoot, 0); Activate(uiBackground, 0); RenderWorld(1); // render world } else if (a == UI2_DEDICATED_SERVER) { if (g_lastActiveUI==UI2_BEGIN || g_lastActiveUI==UI2_NET_ROUND_OVER) FadeIn(0.3); ShowPage(uiDedicatedServer, 0); } else if (a == UI2_RECEIVE_GAME_WORLD) { ShowPage(uiReceiveGameWorld, 0); } else if (a == UI2_SPECTATOR_MENU) { if (g_lastActiveUI==UI2_BEGIN || g_lastActiveUI==UI2_RECEIVE_GAME_WORLD || g_lastActiveUI==UI2_NET_ROUND_OVER) FadeIn(0.3); ShowPage(uiSpectatorMenu, 0); } else if (a == UI2_FOLLOW_MENU) { ShowPage(uiFollowMenu, 0); } else if (a == UI2_STAGE_CLEAR) { FadeIn(0.3); ShowPage(uiStageClear, 2); PlayMusic("win"); } else if (a == UI2_GAME_OVER) { ShowPage(uiGameOver, 1); StopMusic(0.2); PlayMusic("gameover", 0, 0.2); } else if (a == UI2_NET_ROUND_OVER) { ShowPage(uiNetRoundOver, 1); StopMusic(0.2); PlayMusic("gameover", 0, 0.2); } else if (a == UI2_NET_GAME_OVER) { if (GetGameOverResult() == GAMEOVER_COMPETITION_HOST_WIN) ShowPage(uiCompetitionHostWin, 1); else ShowPage(uiNetGameOver, 1); StopMusic(0.2); PlayMusic("gameover", 0, 0.2); } else if (a == UI2_TRAINING_MENU) { ShowPage(uiTrainingMenu, 0); } else if (a == UI2_TRAINING_OVER1) { ShowPage(uiTrainingOver1, 0); PlayMusic("win"); } else if (a == UI2_TRAINING_OVER2) { ShowPage(uiTrainingOver2, 0); PlayMusic("win"); } else if (a == UI2_PONG) { ShowPage(uiPong, 1); } else if (a == UI2_START_MENU) { ShowPage(uiStartMenu, 0); } else if (a == UI2_INGAME_SCORE_BOARD) { ShowPage(uiInGameScoreboard, 0); } else if (a == UI2_MISSION_OBJECTIVE) { ShowPage(uiMissionObjective, 0); } else if (a == UI2_CONFIRM_LEAVE_GAME) { ShowPage(uiConfirmLeaveGame, 0); } else if (a == UI2_CONFIRM_JOIN_OTHER_GAME) { ShowPage(uiConfirmJoinOtherGame, 0); } else if (a == UI2_SESSION_NOT_COMPATIBLE) { ShowPage(uiSessionNotCompatible, 0); } else if (a == UI2_AUTO_DEMO) { FadeIn(0.3); if (var_uiAutoDemoSelection == "credit") ShowPage(uiCredit, 0); else ShowPage(uiAutoDemo, 0); } else if (a == UI2_SETTING_MENU) { SelectOptionItemValue(uiMusicVolumeOption, var_stMusicVolume); SelectOptionItemValue(uiEffectsVolumeOption, var_stEffectsVolume); SelectOptionItemValue(uiVoiceVolumeOption, var_stVoiceVolume); SelectOptionItemValue(uiVideoGammaOption, var_stVideoGamma); SelectOptionItemValue(uiVideoBrightnessOption, var_stVideoBrightness); SelectOptionItemValue(uiVideoContrastOption, var_stVideoContrast); SelectOptionItemValue(uiControllerVibrationOption, var_stControllerVibration); SelectOptionItemValue(uiCameraInvertOption, var_stCameraInvert); SelectOptionItemValue(uiShowPlayerName, var_stShowPlayerName); ShowPage(uiSettingMenu, 0); } else if (a == UI2_SETTING_LIVE) { SelectOptionItemValue(uiAppearOfflineOption, var_stAppearOffline); SelectOptionItemValue(uiVoiceThroughSpeaker, IsVoiceThroughSpeaker()); SelectOptionItemValue(uiVoiceSpeakerVolume, GetVoiceThroughSpeakerVolume()*100+0.001); // fix float number round error ShowPage(uiSettingLiveMenu, 0); } else if (a == UI2_COMBO_TABLE) { ShowPage(uiComboTable, 0); } else if (a == UI2_KICK_MENU) { ShowPage(uiKickMenu, 0); } else if (a == UI2_CONFIRM_KICK) { ShowPage(uiConfirmKick, 0); } else if (a == UI2_BACKGROUND) { ShowPage(-1, 1); } } void LeaveGame() { FadeOut(0.4); WaitScreenEffect(); if (var_netMode == NET_MODE_INTERNET) SetAppState(APPSTATE_INTERNET_MENU); else if (var_netMode == NET_MODE_LAN) SetAppState(APPSTATE_LAN_MENU); else { if (var_uiMissionSelection == "TRAINING") SetAppState(APPSTATE_MAIN_MENU); else SetAppState(APPSTATE_SINGLE_MENU); } FadeIn(0.4); } void ShowLiveNotification(int id) { int icon = 0; Begin(id); if (IsShowGameInvite()) icon = iconGameInvite; else if (IsShowFriendRequest()) icon = iconFriendRequest; if (icon) { Show(); Image(icon); } else { Show(0); } End(); } void ShowLoginState(int id) { Begin(id); Show(); int s = GetLoginLiveState(); if (s == LOGIN_NOT_SIGNED_IN) Text(STR_NOT_SIGNED_IN); else if (s == LOGIN_FAILED) Text(STR_SIGN_IN_FAILED); else if (s == LOGIN_SUCCEEDED) Text(GetWStringFromTable(STR_SIGNED_IN)+GetLiveUserName()); else if (s == LOGIN_PASSCODE_NEEDED) Text(STR_PASSCODE_NEEDED); else Text(""); End(); } void FlashArrow(int frame) { if (frame == 0) { TweenTextColor(1,1,1,0, 1,1,1,1, 0.2); NextFrame(0.5); } else { TweenTextColor(1,1,1,1, 1,1,1,0, 0.2); NextFrame(0.2, 0); } } int IsTeamRule() { return var_rule==RULE_TEAM_DEATH_MATCH || var_rule==RULE_VIP || var_rule==RULE_GIANT_KILL || var_rule==RULE_CUSTOM2; } int IsFairTeamRule() { // not including giant kill return var_rule==RULE_TEAM_DEATH_MATCH || var_rule==RULE_VIP || var_rule==RULE_CUSTOM2; } //////////// in game players void ShowInGamePlayers() { BeginChild(2); // title Text(var_rule+STR_SCORE_TITLE_BEGIN); End(); BeginChild(5); Text(var_rule+STR_RULE_SCENARIO); End(); Begin(uiInGamePlayers); int i, j, p, c, team; for (i=0; i<16; i++) { BeginChild(i); BeginChild(0); TextColor(0,0,0,0); End(); BeginChild(1); TextColor(0,0,0,0); End(); BeginChild(2); TextColor(0,0,0,0); End(); End(); } int n = GetNumPlayers(); if (n > 16) n = 16; int t = 0; float r,g,b; int me = GetLocalPlayer(); int stampX, stampY; int scoreIdx = 0; if (var_rule==RULE_VIP) scoreIdx = 2; else if (var_rule==RULE_GIANT_KILL) scoreIdx = 1; for (i=0; i g_charaScoreTable[i]) if ( CheckUnlock(1, g_charaUnlockIndex[i]) ) return 1; } for (i = 0 ; i < 7 ; i++) { if (score > g_charaScoreTable[i]) if ( CheckUnlock(2, g_weaponUnlockTable[i]) ) return 1; } } // unlock weapon A and movie else if (type == 2) { if (var_uiMissionSelection == "SE01") { if ( CheckUnlock(3, 1) ) return 1; if (var_uiCharaSelection == "CE01") { if ( CheckUnlock(3, 2) ) return 1; if ( CheckUnlock(3, 3) ) return 1; } else if (var_uiCharaSelection == "CE03") { if ( CheckUnlock(3, 4) ) return 1; if ( CheckUnlock(3, 5) ) return 1; } } else if (var_uiMissionSelection == "SE02") { if ( CheckUnlock(3, 6) ) return 1; if ( CheckUnlock(2, 70) ) return 1; } else if (var_uiMissionSelection == "SE04") { if ( CheckUnlock(3, 7) ) return 1; if ( CheckUnlock(2, 60) ) return 1; } else if (var_uiMissionSelection == "SE06") { if ( CheckUnlock(3, 8) ) return 1; if ( CheckUnlock(2, 40) ) return 1; } else if (var_uiMissionSelection == "SW02") { if ( CheckUnlock(3, 9) ) return 1; if ( CheckUnlock(2, 90) ) return 1; } else if (var_uiMissionSelection == "SW03") { if ( CheckUnlock(3, 10) ) return 1; if ( CheckUnlock(2, 80) ) return 1; } else if (var_uiMissionSelection == "SW04") { if ( CheckUnlock(3, 11) ) return 1; if ( CheckUnlock(2, 50) ) return 1; } else if (var_uiMissionSelection == "SW05") { if ( CheckUnlock(3, 12) ) return 1; if ( CheckUnlock(2, 10) ) return 1; } else if (var_uiMissionSelection == "SE08") { if (var_uiCharaSelection == "CE01") { if ( CheckUnlock(3, 13) ) return 1; if ( CheckUnlock(3, 14) ) return 1; } else if (var_uiCharaSelection == "CE03") { if ( CheckUnlock(3, 15) ) return 1; if ( CheckUnlock(3, 16) ) return 1; } } else if (var_uiMissionSelection == "SE09") { if (var_uiCharaSelection == "CE01") { if ( CheckUnlock(3, 17) ) return 1; } else if (var_uiCharaSelection == "CE03") { if ( CheckUnlock(3, 18) ) return 1; } // all stage clear if ( CheckUnlock(1, 1) ) return 1; if ( CheckUnlock(1, 3) ) return 1; if ( CheckUnlock(1, 4) ) return 1; if ( CheckUnlock(1, 6) ) return 1; if ( CheckUnlock(1, 8) ) return 1; if ( CheckUnlock(1, 16) ) return 1; if ( CheckUnlock(1, 18) ) return 1; if ( CheckUnlock(1, 22) ) return 1; if ( CheckUnlock(2, 22) ) return 1; if ( CheckUnlock(2, 32) ) return 1; } } // unlock attack else if (type == 3) { for (i = 0 ; i < (score/8000) ; i++) { if (i > 23) break; if (i < 3) { if ( CheckUnlock(4, i*2) ) { SetUnlockAction(i*2); return 1; } if ( CheckUnlock(4, i*2+1) ) { SetUnlockAction(i*2+1); return 1; } } else { if ( CheckUnlock(4, i+3) ) { SetUnlockAction(i+3); return 1; } } } } return 0; } ////////////// counter UI void Counter_OnAnimate(int frame) { int result, current, module; int i; // if skip or over, do nothing Begin(uiStageClear); i = GetNumber(); End(); if (i >= 9) return; if (frame == 0) { BeginChild(0); result = GetNumber(); End(); BeginChild(1); Number(0); End(); Show(1); if (result <= 0) NextFrame(0.2, 2); else NextFrame(0.2, 1); } else if (frame == 1) { BeginChild(0); result = GetNumber(); End(); BeginChild(1); current = GetNumber(); module = 10; for (i = 0 ; i < 9 ; i++) { if (result <= current) break; if ( (result % module) > (current % module) ) { current = current + module/10; Number(current); break; } module = module * 10; } End(); if (result > current) NextFrame(0.1, 1); else NextFrame(0.1, 2); } else if (frame == 2) { Begin(uiStageClear); Number(GetNumber()+1); NextFrame(0.5, 1); End(); } } int NewCounterItem(int x, int y) { int id = NewUI(); Begin(id); Begin(NewUI()); Number(0); Show(0); End(); Begin(NewUI()); Position(x, y); Font(1); TextColor(0,0,0); TextSize(24); TextFlag(TEXT_ALIGN_RIGHT); ShowNumber(0); End(); EventHandler("OnAnimate", "Counter_OnAnimate"); End(); return id; } ////////////// stage clear void StageClear_OnAnimate(int frame) { int i; if (frame == 0) { ShowScroll(uiScroll, 1); Show(0); Begin(uiStageClear); Number(0); // hide all number for (i = 0 ; i < 6 ; i++) { BeginChild(3*i+2); Show(0); End(); BeginChild(3*i+3); Show(0); End(); } BeginChild(20); Show(0); End(); BeginChild(22); Show(0); End(); BeginChild(24); Show(0); End(); End(); NextFrame(0.6); } else if (frame == 1) { Show(); int c = GetPlayerChara(); Begin(uiStageClear); i = GetNumber(); if (i == 3) { BeginChild(3*i+2); Show(1); if (GetCharaScore(c, i) == 1) Text("Yes"); else Text("No"); End(); BeginChild(3*i+3); BeginChild(0); Number(GetCharaTotalScore(c, i)); End(); NextFrame(0.1, 0); End(); } else if ( (i >= 0) && (i < 5) ) { if (i == 4) // phoenix stone (cancelled) { Number(5); NextFrame(0.1, 1); } else { BeginChild(3*i+2); Number(GetCharaScore(c, i)); Show(1); End(); BeginChild(3*i+3); BeginChild(0); Number(GetCharaTotalScore(c, i)); End(); NextFrame(0.1, 0); End(); } } else if (i == 5) { // time BeginChild(17); Show(1); int sec = GetCharaScore(c, 5); Text(NumToStr("%d", sec/3600) + ":" + NumToStr("%02d", (sec/60)%60) + ":" + NumToStr("%02d", sec%60)); End(); BeginChild(18); BeginChild(0); Number(GetCharaTotalScore(c, 5)); End(); NextFrame(0.1, 0); End(); } else if (i == 6) { // stage score int stageScore = 0; for (int j = 0 ; j < 6 ; j++) { stageScore = stageScore + GetCharaTotalScore(c, j); } SetTotalScore(GetTotalScore()+stageScore); BeginChild(20); BeginChild(0); Number(stageScore); End(); NextFrame(0.1, 0); End(); } else if (i == 7) { // total time BeginChild(22); Show(1); sec = GetTotalGameTime(); Text(NumToStr("%d", sec/3600) + ":" + NumToStr("%02d", (sec/60)%60) + ":" + NumToStr("%02d", sec%60)); End(); Number(GetNumber()+1); NextFrame(0.5, 1); } else if (i == 8) { // total score BeginChild(24); BeginChild(0); Number(GetTotalScore()); End(); NextFrame(0.1, 0); End(); } End(); if (i >= 9) NextFrame(0.2); } else if (frame == 2) { EnableInput(0); // unlock feature if ( UnlockFeature(1, GetTotalScore()) ) return; if ( UnlockFeature(2, 0) ) return; if ( UnlockFeature(3, GetTotalStones()) ) return; EnableInput(); Begin(uiStageClear); Number(10); End(); } } int StageClear_OnInput(int key) { if (IsButtonA(key)) { int i; int c = GetPlayerChara(); // if animate not over Begin(uiStageClear); i = GetNumber(); End(); if ( (i > 0) && (i < 9) ) { Begin(uiStageClear); for (; i < 9 ; i++) { if (i == 3) { BeginChild(3*i+2); Show(1); if (GetCharaScore(c, i) == 1) Text("Yes"); else Text("No"); End(); BeginChild(3*i+3); Show(1); BeginChild(0); Number(GetCharaTotalScore(c, i)); End(); BeginChild(1); Number(GetCharaTotalScore(c, i)); End(); End(); } // else if ( (i >= 0) && (i < 5) ) else if ( (i >= 0) && (i < 4) ) { BeginChild(3*i+2); Number(GetCharaScore(c, i)); Show(1); End(); BeginChild(3*i+3); Show(1); BeginChild(0); Number(GetCharaTotalScore(c, i)); End(); BeginChild(1); Number(GetCharaTotalScore(c, i)); End(); End(); } else if (i == 5) { // time BeginChild(17); Show(1); int sec = GetCharaScore(c, 5); Text(NumToStr("%d", sec/3600) + ":" + NumToStr("%02d", (sec/60)%60) + ":" + NumToStr("%02d", sec%60)); End(); BeginChild(18); Show(1); BeginChild(0); Number(GetCharaTotalScore(c, 5)); End(); BeginChild(1); Number(GetCharaTotalScore(c, 5)); End(); End(); } else if (i == 6) { // stage score int stageScore = 0; for (int j = 0 ; j < 6 ; j++) { stageScore = stageScore + GetCharaTotalScore(c, j); } SetTotalScore(GetTotalScore()+stageScore); BeginChild(20); Show(1); BeginChild(0); Number(stageScore); End(); BeginChild(1); Number(stageScore); End(); End(); } else if (i == 7) { // total time BeginChild(22); Show(1); sec = GetTotalGameTime(); Text(NumToStr("%d", sec/3600) + ":" + NumToStr("%02d", (sec/60)%60) + ":" + NumToStr("%02d", sec%60)); End(); } else if (i == 8) { // total score BeginChild(24); Show(1); BeginChild(0); Number(GetTotalScore()); End(); BeginChild(1); Number(GetTotalScore()); End(); End(); } } Number(9); NextFrame(0.1, 2); End(); } else if (i == 10) { ClearMission(var_uiMissionSelection); PlaySound(sndOK); FadeOut(0.4); WaitScreenEffect(); SetAppState(APPSTATE_SINGLE_MENU); ForceNextUI(UI_SAVE_MENU); return 1; } } return 0; } ////////////// net round over int FindCharaByRoundRank(int rank) { int i; int s = GetNumCharas(); for (i=0; i 0) Text(NumToStr(s1)); else Text("X"); TextColor(teamColorR[1], teamColorG[1], teamColorB[1]); End(); Begin(t2); Show(); if (tm2 > 0) Text(NumToStr(s2)); else Text("X"); TextColor(teamColorR[2], teamColorG[2], teamColorB[2]); End(); } void ShowRoundScore() { int useTeam = 0; // change score borad text according to different rules if (var_rule == RULE_ONE_ON_ONE) { Begin(uiRoundScoreListTitle); SetChildText(2, STR_CHAMPION); SetChildText(3, STR_CHAMP_DURATION); SetChildText(4, STR_TOP_RING); End(); } else if (var_rule==RULE_DEATH_MATCH || var_rule==RULE_CUSTOM1) { Begin(uiRoundScoreListTitle); SetChildText(2, STR_KILL); SetChildText(3, STR_SERIAL_KILL); SetChildText(4, STR_DEATH); End(); } else if (var_rule==RULE_TEAM_DEATH_MATCH || var_rule==RULE_CUSTOM2) { Begin(uiRoundScoreListTitle); SetChildText(2, STR_KILL); SetChildText(3, STR_SERIAL_KILL); SetChildText(4, STR_DEATH); End(); useTeam = 1; } else if (var_rule == RULE_VIP) { Begin(uiRoundScoreListTitle); SetChildText(2, STR_KILL_VIP); SetChildText(3, STR_RESCUE); SetChildText(4, STR_KILL); End(); useTeam = 1; } else if (var_rule == RULE_GIANT_KILL) { Begin(uiRoundScoreListTitle); SetChildText(2, STR_G_KILL); SetChildText(3, STR_DAMAGE_GIANT); SetChildText(4, STR_DEATH); End(); useTeam = 1; } else { Begin(uiRoundScoreListTitle); SetChildText(2, STR_KILL); SetChildText(3, STR_SERIAL_KILL); SetChildText(4, STR_DEATH); End(); } Begin(uiRoundScoreList); int me = GetPlayerChara(); float r,g,b; int i, c, stampX, stampY; int s = NumChildren(); for (i=0; i 16) n = 16; int t, t1, t2; t = t1 = t2 = 0; float r,g,b; int me = GetPlayerChara(); int stampX, stampY; useTeam = IsFairTeamRule(); for (i=0; ig_team2WinRound || (g_team1WinRound==g_team2WinRound && g_team1TotalScore>g_team2TotalScore)) { TextColor(teamColorR[1], teamColorG[1], teamColorB[1]); if (IsCompetitionSession()) Text(GetTeamName(1)+GetWStringFromTable(STR_TEAM_WIN)); else Text(STR_TEAM_A_WIN); } else if (g_team1WinRound 16) n = 16; int t, t1, t2; t = t1 = t2 = 0; float r,g,b; int me = GetPlayerChara(); int stampX, stampY; useTeam = IsFairTeamRule(); int scoreIdx = 0; if (var_rule==RULE_VIP) scoreIdx = 2; else if (var_rule==RULE_GIANT_KILL) scoreIdx = 1; for (i=0; i s-COMBO_ROW_MAX) g_comboView = s-COMBO_ROW_MAX; for (i=0; i0); // up arrow ShowChild(4, g_comboView 16) s = 16; s = 14; for (i=0; i 0) { Begin(uiKickList); BeginChild(g_kickSelection); g_kickPlayerID=GetNumber(); End(); End(); ActivateUI(UI2_CONFIRM_KICK); PlaySound(sndOK); } } else if (IsButtonB(key)) { ActivateUI(UI2_START_MENU); PlaySound(sndCancel); } } ////////////// confirm kick player void ConfirmKick_OnAnimate(int frame) { AnimateDialog(uiScroll, frame); if (frame == 0) Text(GetWStringFromTable(MSG_CONFIRM_KICK)+GetPlayerDisplayName(g_kickPlayerID)+GetWStringFromTable(MSG_CONFIRM_KICK_)); } int ConfirmKick_OnInput(int key) { if (IsButtonA(key)) { KickOutPlayer(g_kickPlayerID); ActivateUI(UI2_KICK_MENU); PlaySound(sndOK); return 1; } else if (IsButtonB(key)) { ActivateUI(UI2_KICK_MENU); PlaySound(sndCancel); return 1; } return 0; } //////////// auto demo int AutoDemo_OnInput(int key) { if (IsButtonA(key) || IsButtonSTART(key)) { GameOver(); return 1; } return 0; } //////////// credit int Credit_OnInput(int key) { if (IsButtonA(key) || IsButtonSTART(key)) { GameOver(); return 1; } return 0; } int g_creditLine; void Credit_OnAnimate(int frame) { if (frame == 0) { g_creditLine = 0; ShowChild(0, 0); NextFrame(0.1); } else if (frame == 1) { float speed = 1; int i,n; BeginChild(0); Show(); TweenPosition(230, 0, 230, -30, speed); n = NumChildren(); for (i=0; i