public void UpdateUniqueText() { if (!uniqueTextUIE.Empty() && uniqueTextUIE.Changed()) { LocalizationRead.updateScenarioText(spawnComponent.uniquetext_key, uniqueTextUIE.GetText()); } }
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(); } } }
public void UpdateInfo() { if (!infoUIE.Empty() && infoUIE.Changed()) { LocalizationRead.updateScenarioText(monsterComponent.info_key, infoUIE.GetText()); } }
public void UpdateAbility() { if (!abilityUIE.Empty() && abilityUIE.Changed()) { //insert the text in the current language LocalizationRead.updateScenarioText(activationComponent.ability_key, abilityUIE.GetText()); } }
public void UpdateMove() { if (moveUIE.Empty()) { LocalizationRead.dicts["qst"].Remove(activationComponent.move_key); } else if (moveUIE.Changed()) { LocalizationRead.updateScenarioText(activationComponent.move_key, moveUIE.GetText()); } }
public void UpdateMinionActions() { if (minionActionsUIE.Empty()) { LocalizationRead.scenarioDict.Remove(activationComponent.minion_key); } else if (minionActionsUIE.Changed()) { LocalizationRead.updateScenarioText(activationComponent.minion_key, minionActionsUIE.GetText()); } }
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(); }
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()); } } }
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(); } }
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(); } } }
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(); } } }
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()); } } }