// Token: 0x06000616 RID: 1558 RVA: 0x0004B47C File Offset: 0x0004967C public void doChangeMap() { TileMap.maps = new int[MapTemplate.maps[CreateCharScr.indexGender].Length]; for (int i = 0; i < MapTemplate.maps[CreateCharScr.indexGender].Length; i++) { TileMap.maps[i] = MapTemplate.maps[CreateCharScr.indexGender][i]; } TileMap.types = MapTemplate.types[CreateCharScr.indexGender]; TileMap.pxh = MapTemplate.pxh[CreateCharScr.indexGender]; TileMap.pxw = MapTemplate.pxw[CreateCharScr.indexGender]; TileMap.tileID = MapTemplate.pxw[CreateCharScr.indexGender]; TileMap.tmw = MapTemplate.tmw[CreateCharScr.indexGender]; TileMap.tmh = MapTemplate.tmh[CreateCharScr.indexGender]; TileMap.tileID = this.bgID[CreateCharScr.indexGender] + 1; TileMap.loadMainTile(); TileMap.loadTileCreatChar(); GameCanvas.loadBG(this.bgID[CreateCharScr.indexGender]); GameScr.loadCamera(false, this.cx, this.cy); }
// Token: 0x06000884 RID: 2180 RVA: 0x0007C510 File Offset: 0x0007A710 public ServerListScreen() { int num = 4; if (num * 32 + 23 + 33 >= GameCanvas.w) { num--; } this.initCommand(); if (!GameCanvas.isTouch) { ServerListScreen.selected = 0; this.processInput(); } GameScr.loadCamera(true, -1, -1); GameScr.cmx = 100; GameScr.cmy = 200; if (this.cmdCallHotline == null) { this.cmdCallHotline = new Command("Gọi hotline", this, 13, null); this.cmdCallHotline.x = GameCanvas.w - 75; if (mSystem.clientType == 1 && !GameCanvas.isTouch) { this.cmdCallHotline.y = GameCanvas.h - 20; } else { int num2 = 2; this.cmdCallHotline.y = num2 + 6; } } ServerListScreen.cmdUpdateServer = new Command(); ServerListScreen.cmdUpdateServer.actionChat = delegate(string str) { string text = str; string text2 = str; if (text == null) { text = ServerListScreen.linkDefault; return; } if (text == null && text2 != null) { if (text2.Equals(string.Empty) || text2.Length < 20) { text2 = ServerListScreen.linkDefault; } ServerListScreen.getServerList(text2); } if (text != null && text2 == null) { if (text.Equals(string.Empty) || text.Length < 20) { text = ServerListScreen.linkDefault; } ServerListScreen.getServerList(text); } if (text != null && text2 != null) { if (text.Length > text2.Length) { ServerListScreen.getServerList(text); return; } ServerListScreen.getServerList(text2); } }; if (mSystem.clientType == 1) { ServerListScreen.linkDefault = "Vũ trụ 1:112.213.94.23:14445:0,Vũ trụ 2:210.211.109.199:14445:0,Vũ trụ 3:112.213.85.88:14445:0,Vũ trụ 4:27.0.12.164:14445:0,Vũ trụ 5:27.0.12.16:14445:0,Vũ trụ 6:27.0.12.173:14445:0,Vũ trụ 7:112.213.94.223:14445:0,Vũ trụ 8:112.213.94.223:14445:0,Võ đài liên vũ trụ:27.0.12.173:20000:0,Universe 1:54.179.255.27:14445:1,0,5"; return; } ServerListScreen.linkDefault = "Vũ trụ 1:dragon1.teamobi.com:14445:0,Vũ trụ 2:dragon2.teamobi.com:14445:0,Vũ trụ 3:dragon3.teamobi.com:14445:0,Vũ trụ 4:dragon4.teamobi.com:14445:0,Vũ trụ 5:dragon5.teamobi.com:14445:0,Vũ trụ 6:dragon6.teamobi.com:14445:0,Vũ trụ 7:dragon7.teamobi.com:14445:0,Vũ trụ 8:dragon8.teamobi.com:14445:0,Võ đài liên vũ trụ:dragonwar.teamobi.com:20000:0,Universe 1:dragon.indonaga.com:14445:1,0,5"; }
// Token: 0x06000844 RID: 2116 RVA: 0x00079940 File Offset: 0x00077B40 public RegisterScreen(sbyte haveName) { this.yLog = 130; TileMap.bgID = (int)((sbyte)(mSystem.currentTimeMillis() % 9L)); if (TileMap.bgID == 5 || TileMap.bgID == 6) { TileMap.bgID = 4; } GameScr.loadCamera(true, -1, -1); GameScr.cmx = 100; GameScr.cmy = 200; if (GameCanvas.h > 200) { this.defYL = GameCanvas.hh - 80; } else { this.defYL = GameCanvas.hh - 65; } this.resetLogo(); int num = (GameCanvas.w < 200) ? 140 : 160; this.wC = num; this.yt = GameCanvas.hh - mScreen.ITEM_HEIGHT - 5; if (GameCanvas.h <= 160) { this.yt = 20; } this.tfSodt = new TField(); this.tfSodt.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfSodt.width = 220; this.tfSodt.height = mScreen.ITEM_HEIGHT + 2; this.tfSodt.name = "Số điện thoại/ địa chỉ email"; if ((int)haveName == 1) { this.tfSodt.setText("01234567890"); } this.tfUser = new TField(); this.tfUser.width = 220; this.tfUser.height = mScreen.ITEM_HEIGHT + 2; this.tfUser.isFocus = true; this.tfUser.name = "Họ và tên"; if ((int)haveName == 1) { this.tfUser.setText("Nguyễn Văn A"); } this.tfUser.setIputType(TField.INPUT_TYPE_ANY); this.tfNgay = new TField(); this.tfNgay.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfNgay.width = 70; this.tfNgay.height = mScreen.ITEM_HEIGHT + 2; this.tfNgay.name = "Ngày sinh"; if ((int)haveName == 1) { this.tfNgay.setText("01"); } this.tfThang = new TField(); this.tfThang.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfThang.width = 70; this.tfThang.height = mScreen.ITEM_HEIGHT + 2; this.tfThang.name = "Tháng sinh"; if ((int)haveName == 1) { this.tfThang.setText("01"); } this.tfNam = new TField(); this.tfNam.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfNam.width = 70; this.tfNam.height = mScreen.ITEM_HEIGHT + 2; this.tfNam.name = "Năm sinh"; if ((int)haveName == 1) { this.tfNam.setText("1990"); } this.tfDiachi = new TField(); this.tfDiachi.setIputType(TField.INPUT_TYPE_ANY); this.tfDiachi.width = 220; this.tfDiachi.height = mScreen.ITEM_HEIGHT + 2; this.tfDiachi.name = "Địa chỉ đăng ký thường trú"; if ((int)haveName == 1) { this.tfDiachi.setText("123 đường số 1, Quận 1, TP.HCM"); } this.tfCMND = new TField(); this.tfCMND.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfCMND.width = 220; this.tfCMND.height = mScreen.ITEM_HEIGHT + 2; this.tfCMND.name = "Số Chứng minh nhân dân hoặc số hộ chiếu"; if ((int)haveName == 1) { this.tfCMND.setText("123456789"); } this.tfNgayCap = new TField(); this.tfNgayCap.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfNgayCap.width = 220; this.tfNgayCap.height = mScreen.ITEM_HEIGHT + 2; this.tfNgayCap.name = "Ngày cấp"; if ((int)haveName == 1) { this.tfNgayCap.setText("01/01/2005"); } this.tfNoiCap = new TField(); this.tfNoiCap.setIputType(TField.INPUT_TYPE_ANY); this.tfNoiCap.width = 220; this.tfNoiCap.height = mScreen.ITEM_HEIGHT + 2; this.tfNoiCap.name = "Nơi cấp"; if ((int)haveName == 1) { this.tfNoiCap.setText("TP.HCM"); } this.yt += 35; this.isCheck = true; this.focus = 0; this.cmdLogin = new Command((GameCanvas.w <= 200) ? mResources.login2 : mResources.login, GameCanvas.instance, 888393, null); this.cmdCheck = new Command(mResources.remember, this, 2001, null); this.cmdRes = new Command(mResources.register, this, 2002, null); this.cmdBackFromRegister = new Command(mResources.CANCEL, this, 10021, null); this.left = (this.cmdMenu = new Command(mResources.MENU, this, 2003, null)); if (GameCanvas.isTouch) { this.cmdLogin.x = GameCanvas.w / 2 - 100; this.cmdMenu.x = GameCanvas.w / 2 - mScreen.cmdW - 8; if (GameCanvas.h >= 200) { this.cmdLogin.y = GameCanvas.h / 2 - 40; this.cmdMenu.y = this.yLog + 110; } this.cmdBackFromRegister.x = GameCanvas.w / 2 + 3; this.cmdBackFromRegister.y = this.yLog + 110; this.cmdRes.x = GameCanvas.w / 2 - 84; this.cmdRes.y = this.cmdMenu.y; } this.wP = 170; this.hP = ((!this.isRes) ? 100 : 110); this.xP = GameCanvas.hw - this.wP / 2; this.yP = this.tfUser.y - 15; int num2 = 4; int num3 = num2 * 32 + 23 + 33; if (num3 >= GameCanvas.w) { num2--; num3 = num2 * 32 + 23 + 33; } this.xLog = GameCanvas.w / 2 - num3 / 2; this.yLog = 5; this.lY = ((GameCanvas.w < 200) ? (this.tfUser.y - 30) : (this.yLog - 30)); this.tfUser.x = this.xLog + 10; this.tfUser.y = this.yLog + 20; this.cmdOK = new Command(mResources.OK, this, 2008, null); this.cmdOK.x = 260; this.cmdOK.y = GameCanvas.h - 60; this.cmdFogetPass = new Command("Thoát", this, 1003, null); this.cmdFogetPass.x = 260; this.cmdFogetPass.y = GameCanvas.h - 30; if (GameCanvas.w < 250) { this.cmdOK.x = GameCanvas.w / 2 - 80; this.cmdFogetPass.x = GameCanvas.w / 2 + 10; this.cmdFogetPass.y = (this.cmdOK.y = GameCanvas.h - 25); } this.center = this.cmdOK; this.left = this.cmdFogetPass; }
// Token: 0x06000704 RID: 1796 RVA: 0x0005CF50 File Offset: 0x0005B150 public LoginScr() { this.yLog = GameCanvas.hh - 30; TileMap.bgID = (int)((sbyte)(mSystem.currentTimeMillis() % 9L)); if (TileMap.bgID == 5 || TileMap.bgID == 6) { TileMap.bgID = 4; } GameScr.loadCamera(true, -1, -1); GameScr.cmx = 100; GameScr.cmy = 200; Main.closeKeyBoard(); if (GameCanvas.h > 200) { this.defYL = GameCanvas.hh - 80; } else { this.defYL = GameCanvas.hh - 65; } this.resetLogo(); int num = (GameCanvas.w < 200) ? 140 : 160; this.wC = num; this.yt = GameCanvas.hh - mScreen.ITEM_HEIGHT - 5; if (GameCanvas.h <= 160) { this.yt = 20; } this.tfUser = new TField(); this.tfUser.y = GameCanvas.hh - mScreen.ITEM_HEIGHT - 9; this.tfUser.width = this.wC; this.tfUser.height = mScreen.ITEM_HEIGHT + 2; this.tfUser.isFocus = true; this.tfUser.setIputType(TField.INPUT_TYPE_ANY); this.tfUser.name = (((int)mResources.language != 2) ? (mResources.phone + "/") : string.Empty) + mResources.email; this.tfPass = new TField(); this.tfPass.y = GameCanvas.hh - 4; this.tfPass.setIputType(TField.INPUT_TYPE_PASSWORD); this.tfPass.width = this.wC; this.tfPass.height = mScreen.ITEM_HEIGHT + 2; this.yt += 35; this.isCheck = true; int num2 = Rms.loadRMSInt("check"); if (num2 == 1) { this.isCheck = true; } else if (num2 == 2) { this.isCheck = false; } this.tfUser.setText(Rms.loadRMSString("acc")); this.tfPass.setText(Rms.loadRMSString("pass")); if (this.cmdCallHotline == null) { this.cmdCallHotline = new Command("Gọi hotline", this, 13, null); this.cmdCallHotline.x = GameCanvas.w - 75; if (mSystem.clientType == 1 && !GameCanvas.isTouch) { this.cmdCallHotline.y = GameCanvas.h - 20; } else { int num3 = 2; this.cmdCallHotline.y = num3 + 6; } } this.focus = 0; this.cmdLogin = new Command((GameCanvas.w <= 200) ? mResources.login2 : mResources.login, GameCanvas.instance, 888393, null); this.cmdCheck = new Command(mResources.remember, this, 2001, null); this.cmdRes = new Command(mResources.register, this, 2002, null); this.cmdBackFromRegister = new Command(mResources.CANCEL, this, 10021, null); this.left = (this.cmdMenu = new Command(mResources.MENU, this, 2003, null)); this.freeAreaHeight = this.tfUser.y - 2 * this.tfUser.height; if (GameCanvas.isTouch) { this.cmdLogin.x = GameCanvas.w / 2 + 8; this.cmdMenu.x = GameCanvas.w / 2 - mScreen.cmdW - 8; if (GameCanvas.h >= 200) { this.cmdLogin.y = this.yLog + 110; this.cmdMenu.y = this.yLog + 110; } this.cmdBackFromRegister.x = GameCanvas.w / 2 + 3; this.cmdBackFromRegister.y = this.yLog + 110; this.cmdRes.x = GameCanvas.w / 2 - 84; this.cmdRes.y = this.cmdMenu.y; } this.wP = 170; this.hP = ((!this.isRes) ? 100 : 110); this.xP = GameCanvas.hw - this.wP / 2; this.yP = this.tfUser.y - 15; int num4 = 4; int num5 = num4 * 32 + 23 + 33; if (num5 >= GameCanvas.w) { num4--; num5 = num4 * 32 + 23 + 33; } this.xLog = GameCanvas.w / 2 - num5 / 2; this.yLog = GameCanvas.hh - 30; this.lY = ((GameCanvas.w < 200) ? (this.tfUser.y - 30) : (this.yLog - 30)); this.tfUser.x = this.xLog + 10; this.tfUser.y = this.yLog + 20; this.cmdOK = new Command(mResources.OK, this, 2008, null); this.cmdOK.x = GameCanvas.w / 2 - 84; this.cmdOK.y = this.cmdLogin.y; this.cmdFogetPass = new Command(mResources.forgetPass, this, 1003, null); this.cmdFogetPass.x = GameCanvas.w / 2 + 3; this.cmdFogetPass.y = this.cmdLogin.y; this.center = this.cmdOK; this.left = this.cmdFogetPass; }