コード例 #1
0
 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;
 }
コード例 #2
0
        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
                       ));
        }