public EventCommandEndQuest(EndQuestCommand refCommand, FrmEvent editor) { InitializeComponent(); mMyCommand = refCommand; mEventEditor = editor; InitLocalization(); cmbQuests.Items.Clear(); cmbQuests.Items.AddRange(QuestBase.Names); cmbQuests.SelectedIndex = QuestBase.ListIndex(refCommand.QuestId); chkSkipCompletionEvent.Checked = refCommand.SkipCompletionEvent; }
private static string GetCommandText(EndQuestCommand command, MapInstance map) { if (!command.SkipCompletionEvent) { return(Strings.EventCommandList.endquest.ToString( QuestBase.GetName(command.QuestId), Strings.EventCommandList.runcompletionevent )); } return(Strings.EventCommandList.endquest.ToString( QuestBase.GetName(command.QuestId), Strings.EventCommandList.skipcompletionevent )); }