public SubChip(IAudioEngine s, Player p, TopMenu t, EventManager e, SaveData save) : base(s, p, t, save) { this.eventmanager = e; this.Alpha = byte.MaxValue; this.info = SubChip.InfoSet(this.cursol); this.printHP = this.savedata.HPnow; }
public Virus(IAudioEngine s, Player p, TopMenu t, SaveData save) : base(s, p, t, save) { this.eventmanager = new EventManager(this.sound); this.Alpha = byte.MaxValue; this.pageX[0] = 112; this.pageX[1] = 240; }
public Navi(IAudioEngine s, Player p, SceneMain m, TopMenu t, SaveData save) : base(s, p, t, save) { this.eventmanager = new EventManager(this.sound); this.Alpha = byte.MaxValue; this.pageX[0] = 112; this.pageX[1] = 240; this.main = m; this.manager = new AddOnManager(s, p, t, this, this.savedata); }
public FolderSelect(IAudioEngine s, Player p, SceneMain m, TopMenu t, SaveData save) : base(s, p, t, save) { this.main = m; this.main.FolderReset(); this.nowscene = FolderSelect.SCENE.fadein; this.subMenu = new FolderEdit(this.sound, p, m, t, this, save); this.Alpha = byte.MaxValue; this.FolderCheckAll(); }
public MailMenu(IAudioEngine s, Player p, TopMenu t, SaveData save) : base(s, p, t, save) { for (int index = 1; index <= this.savedata.mail.Count; ++index) { Mail mail = new MailItem(this.savedata.mail[this.savedata.mail.Count - index]); mail.read = this.savedata.mailread[this.savedata.mail.Count - index]; this.mails.Add(mail); } this.eventmanager = new EventManager(this.sound); }
public Library(IAudioEngine s, Player p, TopMenu t, SaveData save) : base(s, p, t, save) { this.UnknownChipNameText = ShanghaiEXE.Translate("DataList.UnknownChipNameText"); this.IllegalChipDisplayId = ShanghaiEXE.Translate("DataList.IllegalChipDisplayId"); this.LibraryPages = new Dictionary <LibraryPageType, LibraryPage>(); this.CreateLibraryPages(); this.State = LibraryState.FadeIn; }
public Save(IAudioEngine s, Player p, TopMenu t, SaveData save, SceneMain m) : base(s, p, t, save) { this.main = m; this.yesno = true; this.Alpha = byte.MaxValue; this.time = this.savedata.GetTime(); this.comp = this.savedata.GetHaveManyChips(); this.chips = this.savedata.GetHaveChips(); this.money = this.savedata.Money.ToString(); this.thread_1 = new Thread(new ThreadStart(() => this.savedata.SaveFile(this.main.parent))); }
public KeyItemMenu(IAudioEngine s, Player p, TopMenu t, SaveData save) : base(s, p, t, save) { for (int index = 0; index < this.savedata.keyitem.Count; ++index) { this.keyitems.Add(new KeyItem(this.savedata.keyitem[index])); } if (this.keyitems.Count <= 0) { return; } this.ChangeItem(); }
public AddOnManager(IAudioEngine s, Player p, TopMenu t, Navi n, SaveData save) : base(s, p, t, save) { this.overTop = this.savedata.haveAddon.Count - 6; this.navi = n; this.Alpha = byte.MaxValue; this.haveCore = this.savedata.MaxCore; this.haveHz = this.savedata.MaxHz; this.nowCore = this.haveCore; this.nowHz = this.haveHz; List <bool> boolList = new List <bool>(); for (int index = 0; index < this.savedata.haveAddon.Count; ++index) { boolList.Add(this.savedata.equipAddon[index]); } this.setAddOn = boolList.ToArray(); foreach (var data in ((IEnumerable <bool>) this.setAddOn).Select((v, j) => new { v, j })) { if (data.j < this.savedata.haveAddon.Count && data.v) { if (this.savedata.haveAddon[data.j].Plus) { this.haveCore += this.savedata.haveAddon[data.j].UseCore; this.haveHz += this.savedata.haveAddon[data.j].UseHz; this.nowCore += this.savedata.haveAddon[data.j].UseCore; this.nowHz += this.savedata.haveAddon[data.j].UseHz; if ((uint)this.savedata.haveAddon[data.j].color > 0U) { this.setcolor[(int)this.savedata.haveAddon[data.j].color] = true; } } else { this.nowCore -= this.savedata.haveAddon[data.j].UseCore; this.nowHz -= this.savedata.haveAddon[data.j].UseHz; this.AddonColorSet(data.j); if ((uint)this.savedata.haveAddon[data.j].color > 0U) { this.setcolor[(int)this.savedata.haveAddon[data.j].color] = true; } } } } this.eventmanager = new EventManager(this.sound); }