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