private void btnContinuar_Click(object sender, EventArgs e) { string[] Cap = uso.DesfragmentarLinha(3, ';', nick); player.Stop(); switch (Convert.ToInt16(Cap[0])) { case 1: PreHistoria comecar = new PreHistoria(nick); comecar.Show(); break; case 2: frmMeso comecar2 = new frmMeso(nick); comecar2.Show(); break; case 3: Teste.frmRomaInicio comecar3 = new Teste.frmRomaInicio(nick); comecar3.Show(); break; case 4: Feudo.frmFeudalismo comecar4 = new Feudo.frmFeudalismo(nick); comecar4.Show(); break; case 8: _7._1.FuturoBom.FuturoB comecar8 = new _7._1.FuturoBom.FuturoB(nick); comecar8.Show(); break; case 9: _7._2.FuturoRuim.FuturoR comecar9 = new _7._2.FuturoRuim.FuturoR(nick); comecar9.Show(); break; } this.Close(); }
private void Capitulos_Load(object sender, EventArgs e) { string[] atual = uso.DesfragmentarLinha(3, ';', nick); switch (Convert.ToInt32(atual[1])) { case 2: btnMeso.Enabled = true; lblMeso.Visible = true; break; case 3: btnMeso.Enabled = true; lblMeso.Visible = true; btnRoma.Enabled = true; lblRoma.Visible = true; break; case 4: btnMeso.Enabled = true; lblMeso.Visible = true; btnRoma.Enabled = true; lblRoma.Visible = true; btnFeud.Enabled = true; lblFeud.Visible = true; break; case 6: btnMeso.Enabled = true; lblMeso.Visible = true; btnRoma.Enabled = true; lblRoma.Visible = true; btnFeud.Enabled = true; lblFeud.Visible = true; btnPresente.Enabled = true; lblPresente.Visible = true; break; case 7: btnMeso.Enabled = true; lblMeso.Visible = true; btnRoma.Enabled = true; lblRoma.Visible = true; btnFeud.Enabled = true; lblFeud.Visible = true; btnPresente.Enabled = true; lblPresente.Visible = true; btnFuturo1.Enabled = true; lblFut1.Visible = true; btnFuturo2.Enabled = true; lblFut2.Visible = true; break; case 8: btnMeso.Enabled = true; lblMeso.Visible = true; btnRoma.Enabled = true; lblRoma.Visible = true; btnFeud.Enabled = true; lblFeud.Visible = true; btnPresente.Enabled = true; lblPresente.Visible = true; btnFuturo1.Enabled = true; lblFut1.Visible = true; break; case 9: btnMeso.Enabled = true; lblMeso.Visible = true; btnRoma.Enabled = true; lblRoma.Visible = true; btnFeud.Enabled = true; lblFeud.Visible = true; btnPresente.Enabled = true; lblPresente.Visible = true; btnFuturo2.Enabled = true; lblFut2.Visible = true; break; } string[] x = uso.DesfragmentarLinhaConq(5, ';', nick); if (x[0] == "1") { btnHardware.Visible = true; lblHard.Visible = true; } }
private void btnEvoluir_Click(object sender, EventArgs e) { player.Stop(); Jogo._6.Presente.CSNewPresente evoluir = new Jogo._6.Presente.CSNewPresente(nick); evoluir.Show(); string[] Caps = uso.DesfragmentarLinha(3, ';', nick); if (Convert.ToInt32(Caps[1]) <= 5) { Caps[1] = "6"; } uso.RescreverLinha(3, nick, "6;" + Caps[1]); uso.RescreverLinha(4, nick, "10;0;0;0;0"); uso.RescreverLinha(5, nick, "0"); uso.RescreverLinha(6, nick, "0;0;0;0;0;0"); uso.RescreverLinha(7, nick, "0"); this.Close(); }
private void PreHistoria_Load(object sender, EventArgs e) { Conquista = uso.DesfragmentarLinha(6, ';', nick); player.PlayLooping(); string[] atrStr = uso.DesfragmentarLinha(4, ';', nick); Concluiu = Convert.ToInt16(uso.LerLinha(5, nick)); int[] atr = { Convert.ToInt16(atrStr[0]), Convert.ToInt16(atrStr[1]), Convert.ToInt16(atrStr[2]), Convert.ToInt16(atrStr[3]), Convert.ToInt16(atrStr[4]) }; atrN = atr; this.canPaint = false; feitos = uso.DesfragmentarLinha(6, ';', nick); barXP.Value = Convert.ToInt16(uso.LerLinha(7, nick)); if (Concluiu == 1) { btnEvoluir.Visible = true; } Escrever(); }