Пример #1
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();
         }
     }
 }
Пример #2
0
 public void UpdateUniqueText()
 {
     if (!uniqueTextUIE.Empty() && uniqueTextUIE.Changed())
     {
         LocalizationRead.updateScenarioText(spawnComponent.uniquetext_key, uniqueTextUIE.GetText());
         if (!uniqueTextUIE.HeightAtTextPadding(1))
         {
             Update();
         }
     }
 }
 public void UpdateInfo()
 {
     if (!infoUIE.Empty() && infoUIE.Changed())
     {
         LocalizationRead.updateScenarioText(monsterComponent.info_key, infoUIE.GetText());
         if (!infoUIE.HeightAtTextPadding(1))
         {
             Update();
         }
     }
 }
 public void UpdateAbility()
 {
     if (!abilityUIE.Empty() && abilityUIE.Changed())
     {
         //insert the text in the current language
         LocalizationRead.updateScenarioText(activationComponent.ability_key, abilityUIE.GetText());
         if (!abilityUIE.HeightAtTextPadding(1))
         {
             Update();
         }
     }
 }
 public void UpdateMove()
 {
     if (moveUIE.Empty())
     {
         LocalizationRead.dicts["qst"].Remove(activationComponent.move_key);
     }
     else if (moveUIE.Changed())
     {
         LocalizationRead.updateScenarioText(activationComponent.move_key, moveUIE.GetText());
     }
     if (!moveUIE.HeightAtTextPadding(1))
     {
         Update();
     }
 }
Пример #6
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());
         }
         if (!authorsUIE.HeightAtTextPadding(1))
         {
             Update();
         }
     }
 }
Пример #7
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();
         }
     }
 }
Пример #8
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();
         }
     }
 }