private void Update() { if (popup != null) { Dialog[] array = popup.ToArray(); for (int i = 0; i < array.Length; i++) { array[i].Update(); } } if (next != DIALOG_INDEX.NUM && !IsModal) { Dialog dialog = Popup(next, exclusive: true); if (dialog != null && next == DIALOG_INDEX.MEMO) { MemoDialog memoDialog = (MemoDialog)dialog; if (memoDialog != null) { memoDialog.InitDialog(); memoDialog.ReplyTitle(param1); } } next = DIALOG_INDEX.NUM; } }
public GameScene() { MapControl.AutoRun = false; MapControl.AutoHit = false; Slaying = false; Thrusting = false; HalfMoon = false; CrossHalfMoon = false; DoubleSlash = false; TwinDrakeBlade = false; FlamingSword = false; GroupDialog.GroupList.Clear(); Scene = this; BackColour = Color.Transparent; MoveTime = CMain.Time; KeyDown += GameScene_KeyDown; MainDialog = new MainDialog { Parent = this }; ChatDialog = new ChatDialog { Parent = this }; ChatControl = new ChatControlBar { Parent = this }; InventoryDialog = new InventoryDialog { Parent = this }; CharacterDialog = new CharacterDialog { Parent = this, Visible = false }; BeltDialog = new BeltDialog { Parent = this }; StorageDialog = new StorageDialog { Parent = this, Visible = false }; MiniMapDialog = new MiniMapDialog { Parent = this }; InspectDialog = new InspectDialog { Parent = this, Visible = false }; OptionDialog = new OptionDialog { Parent = this, Visible = false }; MenuDialog = new MenuDialog { Parent = this, Visible = false }; NPCDialog = new NPCDialog { Parent = this, Visible = false }; NPCGoodsDialog = new NPCGoodsDialog { Parent = this, Visible = false }; NPCDropDialog = new NPCDropDialog { Parent = this, Visible = false }; NPCAwakeDialog = new NPCAwakeDialog { Parent = this, Visible = false }; HelpDialog = new HelpDialog { Parent = this, Visible = false }; MountDialog = new MountDialog { Parent = this, Visible = false }; FishingDialog = new FishingDialog { Parent = this, Visible = false }; FishingStatusDialog = new FishingStatusDialog { Parent = this, Visible = false }; GroupDialog = new GroupDialog { Parent = this, Visible = false }; GuildDialog = new GuildDialog { Parent = this, Visible = false }; GuildBuffDialog = new GuildBuffDialog { Parent = this, Visible = false }; BigMapDialog = new BigMapDialog { Parent = this, Visible = false }; TrustMerchantDialog = new TrustMerchantDialog { Parent = this, Visible = false }; CharacterDuraPanel = new CharacterDuraPanel { Parent = this, Visible = false }; DuraStatusPanel = new DuraStatusDialog { Parent = this, Visible = true }; TradeDialog = new TradeDialog { Parent = this, Visible = false }; GuestTradeDialog = new GuestTradeDialog { Parent = this, Visible = false }; SkillBarDialog = new SkillBarDialog { Parent = this, Visible = false }; ChatOptionDialog = new ChatOptionDialog { Parent = this, Visible = false }; ChatNoticeDialog = new ChatNoticeDialog { Parent = this, Visible = false }; QuestListDialog = new QuestListDialog { Parent = this, Visible = false }; QuestDetailDialog = new QuestDetailDialog {Parent = this, Visible = false}; QuestTrackingDialog = new QuestTrackingDialog { Parent = this, Visible = false }; QuestLogDialog = new QuestDiaryDialog {Parent = this, Visible = false}; RankingDialog = new RankingDialog { Parent = this, Visible = false }; MailListDialog = new MailListDialog { Parent = this, Visible = false }; MailComposeLetterDialog = new MailComposeLetterDialog { Parent = this, Visible = false }; MailComposeParcelDialog = new MailComposeParcelDialog { Parent = this, Visible = false }; MailReadLetterDialog = new MailReadLetterDialog { Parent = this, Visible = false }; MailReadParcelDialog = new MailReadParcelDialog { Parent = this, Visible = false }; IntelligentCreatureDialog = new IntelligentCreatureDialog { Parent = this, Visible = false };//IntelligentCreature IntelligentCreatureOptionsDialog = new IntelligentCreatureOptionsDialog { Parent = this, Visible = false };//IntelligentCreature IntelligentCreatureOptionsGradeDialog = new IntelligentCreatureOptionsGradeDialog { Parent = this, Visible = false };//IntelligentCreature RefineDialog = new RefineDialog { Parent = this, Visible = false }; RelationshipDialog = new RelationshipDialog { Parent = this, Visible = false }; FriendDialog = new FriendDialog { Parent = this, Visible = false }; MemoDialog = new MemoDialog { Parent = this, Visible = false }; MentorDialog = new MentorDialog { Parent = this, Visible = false }; GameShopDialog = new GameShopDialog { Parent = this, Visible = false }; //not added yet KeyboardLayoutDialog = new KeyboardLayoutDialog { Parent = this, Visible = false }; for (int i = 0; i < OutputLines.Length; i++) OutputLines[i] = new MirLabel { AutoSize = true, BackColour = Color.Transparent, Font = new Font(Settings.FontName, 10F), ForeColour = Color.LimeGreen, Location = new Point(20, 25 + i * 13), OutLine = true, }; }