コード例 #1
0
 public void UpdateUniqueText()
 {
     if (!uniqueTextUIE.Empty() && uniqueTextUIE.Changed())
     {
         LocalizationRead.updateScenarioText(spawnComponent.uniquetext_key, uniqueTextUIE.GetText());
     }
 }
コード例 #2
0
 public void UpdateText()
 {
     if (eventTextUIE.Changed())
     {
         if (eventTextUIE.Empty())
         {
             LocalizationRead.dicts["qst"].Remove(eventComponent.text_key);
             eventComponent.display = false;
         }
         else
         {
             LocalizationRead.updateScenarioText(eventComponent.text_key, eventTextUIE.GetText());
             if (eventComponent.buttons.Count == 0)
             {
                 eventComponent.buttons.Add(eventComponent.genQuery("button1"));
                 eventComponent.nextEvent.Add(new List <string>());
                 eventComponent.buttonColors.Add("white");
                 LocalizationRead.updateScenarioText(eventComponent.genKey("button1"),
                                                     CONTINUE.Translate());
             }
             if (!eventComponent.display)
             {
                 eventComponent.display = true;
                 Update();
                 return;
             }
         }
         if (!eventTextUIE.HeightAtTextPadding(1))
         {
             Update();
         }
     }
 }
コード例 #3
0
 public void UpdateInfo()
 {
     if (!infoUIE.Empty() && infoUIE.Changed())
     {
         LocalizationRead.updateScenarioText(monsterComponent.info_key, infoUIE.GetText());
     }
 }
コード例 #4
0
 public void UpdateAbility()
 {
     if (!abilityUIE.Empty() && abilityUIE.Changed())
     {
         //insert the text in the current language
         LocalizationRead.updateScenarioText(activationComponent.ability_key, abilityUIE.GetText());
     }
 }
コード例 #5
0
 public void UpdateMove()
 {
     if (moveUIE.Empty())
     {
         LocalizationRead.dicts["qst"].Remove(activationComponent.move_key);
     }
     else if (moveUIE.Changed())
     {
         LocalizationRead.updateScenarioText(activationComponent.move_key, moveUIE.GetText());
     }
 }
コード例 #6
0
 public void UpdateMinionActions()
 {
     if (minionActionsUIE.Empty())
     {
         LocalizationRead.scenarioDict.Remove(activationComponent.minion_key);
     }
     else if (minionActionsUIE.Changed())
     {
         LocalizationRead.updateScenarioText(activationComponent.minion_key, minionActionsUIE.GetText());
     }
 }
コード例 #7
0
    public void UpdateUIText()
    {
        Game game = Game.Get();

        if (!textUIE.Empty() && textUIE.Changed())
        {
            LocalizationRead.updateScenarioText(uiComponent.uitext_key, textUIE.GetText());
        }
        game.quest.Remove(uiComponent.sectionName);
        game.quest.Add(uiComponent.sectionName);
        Update();
    }
コード例 #8
0
 public void UpdateQuestAuth()
 {
     if (authorsUIE.Changed())
     {
         if (authorsUIE.Empty())
         {
             LocalizationRead.dicts["qst"].Remove(game.quest.qd.quest.authors_key);
         }
         else
         {
             LocalizationRead.updateScenarioText(game.quest.qd.quest.authors_key, authorsUIE.GetText());
         }
     }
 }
コード例 #9
0
 public void UpdateMinionActions()
 {
     if (minionActionsUIE.Empty())
     {
         LocalizationRead.dicts["qst"].Remove(activationComponent.minion_key);
     }
     else if (minionActionsUIE.Changed())
     {
         LocalizationRead.updateScenarioText(activationComponent.minion_key, minionActionsUIE.GetText());
     }
     if (!minionActionsUIE.HeightAtTextPadding(1))
     {
         Update();
     }
 }
コード例 #10
0
 public void UpdateQuestSynopsys()
 {
     if (synopsysUIE.Changed())
     {
         if (synopsysUIE.Empty())
         {
             LocalizationRead.dicts["qst"].Remove(game.quest.qd.quest.synopsys_key);
         }
         else
         {
             LocalizationRead.updateScenarioText(game.quest.qd.quest.synopsys_key, synopsysUIE.GetText());
         }
         if (!synopsysUIE.HeightAtTextPadding(1))
         {
             Update();
         }
     }
 }
コード例 #11
0
 public void UpdateQuestDesc()
 {
     if (descriptionUIE.Changed())
     {
         if (descriptionUIE.Empty())
         {
             LocalizationRead.dicts["qst"].Remove(game.quest.qd.quest.description_key);
         }
         else
         {
             LocalizationRead.updateScenarioText(game.quest.qd.quest.description_key, descriptionUIE.GetText());
         }
         if (!descriptionUIE.HeightAtTextPadding(1))
         {
             Update();
         }
     }
 }
コード例 #12
0
 public void UpdateQuestDesc()
 {
     if (descriptionUIE.Changed())
     {
         if (descriptionUIE.Empty())
         {
             LocalizationRead.scenarioDict.Remove(game.quest.qd.quest.description_key);
         }
         else
         {
             LocalizationRead.updateScenarioText(game.quest.qd.quest.description_key, descriptionUIE.GetText());
         }
     }
 }