private void Control() { if (Input.IsPress(Button._A)) { this.MessageMake(); } else if (Input.IsPress(Button._B)) { this.sound.PlaySE(SoundEffect.cancel); this.nowscene = Wanted.SCENE.fadeout; } else if (this.waittime <= 0) { if (Input.IsPush(Button.Up)) { if (this.Select <= 0) { return; } if (this.cursol > 0) { --this.cursol; } else { --this.top; } this.sound.PlaySE(SoundEffect.movecursol); this.waittime = Input.IsPress(Button.Up) ? 10 : 4; } else { if (!Input.IsPush(Button.Down) || this.Select >= this.list.Count - 1) { return; } if (this.cursol < 7) { ++this.cursol; } else { ++this.top; } this.sound.PlaySE(SoundEffect.movecursol); this.waittime = Input.IsPress(Button.Down) ? 10 : 4; } } else { --this.waittime; } }
public override void Update() { switch (this.nowscene) { case Wanted.SCENE.fadein: if (!this.shopmode) { this.alpha += 51; if (this.alpha >= byte.MaxValue) { this.alpha = byte.MaxValue; this.shopmode = true; break; } break; } this.alpha -= 51; if (this.alpha <= 0) { this.savedata.selectQuestion = 1; this.nowscene = Wanted.SCENE.select; bool flag = false; EventManager eventManager = new EventManager(this.sound); eventManager.AddEvent(new OpenMassageWindow(this.sound, this.eventmanager)); for (int index1 = 0; index1 < this.savedata.virusSPbustedFlug.Length; ++index1) { if (this.savedata.virusSPbustedFlug[index1]) { this.savedata.ValList[12] = -1; this.savedata.virusSPbustedFlug[index1] = false; int money = 0; EnemyBase enemyBase = EnemyBase.EnemyMake(0, null, false); for (int index2 = 0; index2 < Wanted.WantedList.GetLength(0); ++index2) { if (Wanted.WantedList[index2, 0] == index1) { enemyBase = EnemyBase.EnemyMake(Wanted.WantedList[index2, 0], null, false); money = Wanted.WantedList[index2, 3]; break; } } flag = true; var dialogue = ShanghaiEXE.Translate("Bounty.ClaimDialogue1Format").Format(enemyBase.Name); eventManager.AddEvent(new CommandMessage(this.sound, eventManager, dialogue[0], dialogue[1], dialogue[2], false, dialogue.Face, dialogue.Face.Mono, this.savedata)); eventManager.AddEvent(new SEmon(this.sound, eventManager, "get", 0, this.savedata)); dialogue = ShanghaiEXE.Translate("Bounty.ClaimDialogue2Format").Format(money); eventManager.AddEvent(new CommandMessage(this.sound, eventManager, dialogue[0], dialogue[1], dialogue[2], false, dialogue.Face, dialogue.Face.Mono, this.savedata)); eventManager.AddEvent(new MoneyPlus(this.sound, eventManager, money, true, this.savedata)); dialogue = ShanghaiEXE.Translate("Bounty.ClaimDialogue3"); eventManager.AddEvent(new CommandMessage(this.sound, eventManager, dialogue[0], dialogue[1], dialogue[2], false, dialogue.Face, dialogue.Face.Mono, this.savedata)); } } eventManager.AddEvent(new CloseMassageWindow(this.sound, this.eventmanager)); if (flag) { this.eventmanager.EventClone(eventManager); this.eventmanager.playevent = true; } } break; case Wanted.SCENE.select: if (this.eventmanager.playevent) { this.eventmanager.UpDate(); break; } if (this.savedata.selectQuestion == 0) { if (this.savedata.ValList[12] >= 0) { this.savedata.FlagList[Wanted.WantedList[this.savedata.ValList[12], 2]] = false; } this.savedata.ValList[12] = this.list[this.Select]; this.savedata.FlagList[Wanted.WantedList[this.list[this.Select], 2]] = true; this.savedata.selectQuestion = 1; } else { this.Control(); } break; case Wanted.SCENE.fadeout: if (this.shopmode) { this.alpha += 51; if (this.alpha >= byte.MaxValue) { this.alpha = byte.MaxValue; this.shopmode = false; break; } break; } this.alpha -= 51; if (this.alpha <= 0) { this.nowscene = Wanted.SCENE.fadein; this.cursol = 0; this.top = 0; this.EndCommand(); } break; } this.FlameControl(10); if (!this.moveflame) { return; } ++this.cursolanime; if (this.cursolanime >= 3) { this.cursolanime = 0; } }