private void BootAddonManager() { this.boot = true; this.nowscene = Navi.SCENE.fadeout; this.playBGM = this.sound.CurrentBGM; this.sound.StartBGM("add_on"); this.manager = new AddOnManager(this.sound, this.player, this.topmenu, this, this.savedata); }
public void Back() { this.sound.StartBGM(this.playBGM); this.boot = false; this.bootAddon = false; this.Top = 0; this.nowscene = Navi.SCENE.fadein; this.FolderCheckAll(); }
public override void UpDate() { if (this.bootAddon) { this.manager.UpDate(); } else { switch (this.nowscene) { case Navi.SCENE.fadein: if (this.Alpha > 0) { this.Alpha -= 51; break; } this.nowscene = Navi.SCENE.select; if (this.error) { this.error = false; this.eventmanager.events.Clear(); var dialogue = ShanghaiEXE.Translate("Navi.InvalidFolderAddonChangeDialogue1"); this.eventmanager.AddEvent(new CommandMessage(this.sound, this.eventmanager, dialogue[0], dialogue[1], dialogue[2], false, dialogue.Face, dialogue.Face.Mono, this.savedata)); } break; case Navi.SCENE.select: if (this.selectstyle && !this.eventmanager.playevent) { this.sound.PlaySE(SoundEffect.bright); this.savedata.setstyle = this.stylenum[this.savedata.selectQuestion]; this.flash = byte.MaxValue; this.selectstyle = false; this.eventmanager.ClearEvent(); } this.Control(); if (this.eventmanager.playevent) { this.eventmanager.UpDate(); } if (this.moving) { if (!this.moveToAddBuster) { this.pageX[0] += 8; this.pageX[1] -= 8; if (this.pageX[1] <= 112) { this.pageX[0] = 240; this.pageX[1] = 112; ++this.page; this.moving = false; } } else { this.pageX[0] -= 8; this.pageX[1] += 8; if (this.pageX[0] <= 112) { this.pageX[0] = 112; this.pageX[1] = 240; --this.page; this.moving = false; } } } if (this.flash > 0) { this.flash -= 5; } this.FlamePlus(); break; case Navi.SCENE.fadeout: if (this.Alpha < byte.MaxValue) { this.Alpha += 51; break; } if (!this.boot) { this.topmenu.Return(); } else { this.bootAddon = true; } break; } } }
public void Control() { if (!this.eventmanager.playevent) { bool flag1 = this.savedata.havestyles > 1; bool flag2 = this.savedata.haveAddon.Count > 0; if (Input.IsPress(Button._A)) { this.sound.PlaySE(SoundEffect.decide); if (!flag1 & flag2) { this.BootAddonManager(); } if (flag1 && !flag2) { this.StyleChange(); } if (flag1 & flag2) { if (this.cursol) { this.StyleChange(); } else { this.BootAddonManager(); } } } if (flag1 & flag2 && this.waittime <= 0) { if (Input.IsPush(Button.Up)) { this.sound.PlaySE(SoundEffect.movecursol); this.cursol = !this.cursol; this.waittime = Input.IsPress(Button.Up) ? 10 : 4; } if (Input.IsPush(Button.Down)) { this.sound.PlaySE(SoundEffect.movecursol); this.cursol = !this.cursol; this.waittime = Input.IsPress(Button.Down) ? 10 : 4; } } } if (Input.IsPress(Button._B)) { this.sound.PlaySE(SoundEffect.cancel); if (this.selectstyle) { this.selectstyle = false; this.eventmanager.ClearEvent(); } else { this.boot = false; this.nowscene = Navi.SCENE.fadeout; } } if (this.savedata.haveAddon.Count > 0 && !this.moving && Input.IsPress(Button._Select)) { this.sound.PlaySE(SoundEffect.menuopen); this.moveToAddBuster = this.page != 0; this.moving = true; } if (this.page == 1 && this.waittime <= 0) { if (Input.IsPush(Button._R) && this.Top < this.OverTop) { ++this.Top; this.sound.PlaySE(SoundEffect.movecursol); this.waittime = Input.IsPress(Button._R) ? 10 : 4; } if (!Input.IsPush(Button._L) || this.Top <= 0) { return; } --this.Top; this.sound.PlaySE(SoundEffect.movecursol); this.waittime = Input.IsPress(Button._L) ? 10 : 4; } else if (this.waittime > 0) { --this.waittime; } }