public EventCommandStartQuest(StartQuestCommand refCommand, EventPage page, FrmEvent editor) { InitializeComponent(); mMyCommand = refCommand; mCurrentPage = page; mEventEditor = editor; InitLocalization(); cmbQuests.Items.Clear(); cmbQuests.Items.AddRange(QuestBase.Names); cmbQuests.SelectedIndex = QuestBase.ListIndex(refCommand.QuestId); chkShowOfferWindow.Checked = refCommand.Offer; }
private static string GetCommandText(StartQuestCommand command, MapInstance map) { if (!command.Offer) { return(Strings.EventCommandList.startquest.ToString( QuestBase.GetName(command.QuestId), Strings.EventCommandList.forcedstart )); } else { return(Strings.EventCommandList.startquest.ToString( QuestBase.GetName(command.QuestId), Strings.EventCommandList.showoffer )); } }