Example #1
0
 public static void ReplaceQuestIntroductionText()
 {
     if (NpcQuestList != null && NpcQuestList.Count > 0)
     {
         int firstX = 22;                     //선택지가 아무것도 없을때 첫 선택지의 위치
         int lastY  = 13;
         if (Convenience.DictionaryContainsValue(NpcCC.GetChoice("GreetPhase").IndicateChoice, "QuestIntroduction"))
         {
             NpcCC.RemoveChoiceSelectTextByValue("GreetPhase", "QuestIntroduction");
             NpcCC.AddChoiceSelectText("GreetPhase", globalNPC.GetPreQuestMessage(), "QuestIntroduction");
         }
         else
         {
             NpcCC.AddChoiceSelectText("GreetPhase", globalNPC.GetPreQuestMessage(), "QuestIntroduction");
         }
         for (int i = 0; i < NpcQuestList.Count; i++)
         {
             if (!NpcQuestList[i].isAccept && !Convenience.DictionaryContainsValue(NpcCC.GetChoice("QuestIntroduction").IndicateChoice, NpcQuestList[i].QuestName))
             {
                 NpcCC.AddChoiceSelectText("QuestIntroduction", new TextAndPosition(NpcQuestList[i].QuestName, firstX, lastY + 1, true), NpcQuestList[i].QuestName);
                 firstX = GameManager.selectListFirststPositionX(NpcCC.GetChoice("QuestIntroduction").SelectText);
                 lastY  = GameManager.selectListLastPositionY(NpcCC.GetChoice("QuestIntroduction").SelectText);
             }
         }
     }
     else
     {
         if (NpcCC.GetChoice("QuestIntroduction").SelectText.Count == 1)
         {
             NpcCC.RemoveChoiceSelectTextByValue("GreetPhase", "QuestIntroduction");
         }
     }
 }