public void UpdateInfo() { if (!infoUIE.Empty() && infoUIE.Changed()) { LocalizationRead.updateScenarioText(monsterComponent.info_key, infoUIE.GetText()); if (!infoUIE.HeightAtTextPadding(1)) { Update(); } } }
public void UpdateMove() { if (!moveDBE.Text.Equals("")) { LocalizationRead.updateScenarioText(activationComponent.move_key, moveDBE.Text); } else { LocalizationRead.scenarioDict.Remove(activationComponent.move_key); } }
public void UpdateUniqueText() { if (!uniqueTextUIE.Empty() && uniqueTextUIE.Changed()) { LocalizationRead.updateScenarioText(spawnComponent.uniquetext_key, uniqueTextUIE.GetText()); if (!uniqueTextUIE.HeightAtTextPadding(1)) { Update(); } } }
public void UpdateMove() { if (moveUIE.Empty()) { LocalizationRead.scenarioDict.Remove(activationComponent.move_key); } else if (moveUIE.Changed()) { LocalizationRead.updateScenarioText(activationComponent.move_key, moveUIE.GetText()); } }
public void UpdateMoveButton() { if (moveButtonUIE.Empty()) { LocalizationRead.dicts["qst"].Remove(activationComponent.movebutton_key); } else if (moveButtonUIE.Changed()) { //insert the text in the current language LocalizationRead.updateScenarioText(activationComponent.movebutton_key, moveButtonUIE.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 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 UpdateMoveButton() { if (!moveButtonDBE.Text.Equals("")) { //insert the text in the current language LocalizationRead.updateScenarioText(activationComponent.movebutton_key, moveButtonDBE.Text); } else { LocalizationRead.scenarioDict.Remove(activationComponent.movebutton_key); } }
public void NewInvestigatorAttack(string type) { if (!monsterComponent.investigatorAttacks.ContainsKey(type)) { monsterComponent.investigatorAttacks.Add(type, new List <StringKey>()); } int position = monsterComponent.investigatorAttacks[type].Count + 1; StringKey newAttack = new StringKey("qst", monsterComponent.sectionName + ".Attack_" + type + "_" + position); monsterComponent.investigatorAttacks[type].Add(newAttack); LocalizationRead.updateScenarioText(newAttack.key, "-"); Update(); }
public void UpdateQuestDesc() { Game game = Game.Get(); if (!descriptionDBE.Text.Equals("")) { LocalizationRead.updateScenarioText(game.quest.qd.quest.description_key, descriptionDBE.Text); } else { LocalizationRead.scenarioDict.Remove(game.quest.qd.quest.description_key); } }
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 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()); } } }
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(); } }
public void UniqueToggle() { spawnComponent.unique = !spawnComponent.unique; if (!spawnComponent.unique) { LocalizationRead.dicts["qst"].Remove(spawnComponent.uniquetitle_key); LocalizationRead.dicts["qst"].Remove(spawnComponent.uniquetext_key); } else { LocalizationRead.updateScenarioText(spawnComponent.uniquetitle_key, spawnComponent.sectionName); LocalizationRead.updateScenarioText(spawnComponent.uniquetext_key, "-"); } Update(); }
public void SelectImage(string image) { uiComponent.imageName = image; Game.Get().quest.Remove(uiComponent.sectionName); Game.Get().quest.Add(uiComponent.sectionName); if (uiComponent.imageName.Length > 0) { LocalizationRead.dicts["qst"].Remove(uiComponent.uitext_key); uiComponent.border = false; uiComponent.aspect = 1; } else { LocalizationRead.updateScenarioText(uiComponent.uitext_key, ""); } Update(); }
public void UpdateQuestShortAuth() { if (authors_shortUIE.Changed()) { if (authors_shortUIE.Empty()) { LocalizationRead.dicts["qst"].Remove(game.quest.qd.quest.authors_short_key); } else { LocalizationRead.updateScenarioText(game.quest.qd.quest.authors_short_key, authors_shortUIE.GetText()); } if (!authors_shortUIE.HeightAtTextPadding(0)) { 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 UpdateText() { if (!eventTextDBE.Text.Equals("")) { LocalizationRead.updateScenarioText(eventComponent.text_key, eventTextDBE.Text); eventComponent.display = true; 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"); } } else { LocalizationRead.scenarioDict.Remove(eventComponent.text_key); eventComponent.display = false; } }
public void SetName() { LocalizationRead.updateScenarioText(monsterComponent.monstername_key, NAME.Translate()); Update(); }
public void SetInfo() { LocalizationRead.updateScenarioText(monsterComponent.info_key, INFO.Translate()); Update(); }