home *** CD-ROM | disk | FTP | other *** search
- class CContinueGameScreen extends CScreen
- {
- var txTournamentStatus;
- var mcflag;
- var txTeamName;
- var ctr;
- var onEnterFrame;
- var txBtc;
- var Btc;
- var GroupName = new Array("Group A","Group B","Group C","Group D","Group E","Group F","Group G","Group H");
- function CContinueGameScreen(tipeview)
- {
- super();
- if(_global.AppStarted == undefined)
- {
- return undefined;
- }
- this.txTournamentStatus.text = CTournament.ins().getToutnamentStatus();
- var _loc4_ = CTeamManager.ins().currentTeam;
- this.mcflag.toid = _loc4_.flagid;
- this.mcflag.setFlag(_loc4_.flagid);
- this.txTeamName.text = _loc4_.teamname + " - " + this.GroupName[_loc4_.group];
- this.ctr = 0;
- this.onEnterFrame = function()
- {
- if(this.ctr > 1)
- {
- this.onEnterFrame = null;
- this.CreateList();
- }
- this.ctr = this.ctr + 1;
- };
- if(CTournament.ins().gameover)
- {
- this.txBtc.text = "END";
- this.Btc.onRelease = function()
- {
- _global.__DISPATCH({type:"endScreen",name:this._parent._name,tonew:true});
- };
- }
- else
- {
- this.txBtc.text = "Continue";
- this.Btc.onRelease = function()
- {
- _global.__DISPATCH({type:"endScreen",name:this._parent._name,tonew:false});
- };
- }
- }
- function CreateList()
- {
- }
- }
-