/// <summary> /// Sets the UI with the current language /// </summary> public void SetTranslatedUI() { UIMainApp ui = DataStore.uiLanguage.uiMainApp; deploymentHeading.text = ui.deploymentHeading; reservedBtn.text = ui.reservedBtn; allyBtn.text = ui.allyBtn; enemyBtn.text = ui.enemyBtn; randomBtn.text = ui.randomBtn; modThreatHeading.text = ui.modThreatHeading; applyBtn.text = ui.applyBtn; roundHeading.text = ui.roundHeading; depTypeHeading.text = ui.depTypeHeading; eventHeading.text = ui.eventHeading; randomHeading.text = ui.randomHeading; randomConfirmBtn.text = ui.confirm; randomCancelBtn.text = ui.cancel; maxThreatHeading.text = ui.maxThreatHeading; endRoundBtn.text = ui.endRoundBtn; fameHeading.text = ui.fameHeading; awardsHeading.text = ui.awardsHeading; fameContinueBtn.text = ui.continueBtn; deploymentContinueBtn.text = ui.continueBtn; onslaughtDeploy.text = ui.deploy; landingDeploy1.text = ui.deploy; landingDeploy2.text = ui.deploy; chooserCloseBtn.text = ui.close; infoContinueBtn.text = ui.continueBtn; zoomCloseBtn.text = ui.close; activateContinueBtn.text = ui.continueBtn; eventContinueBtn.text = ui.continueBtn; fame1UC.text = ui.fame1UC; fame2UC.text = ui.fame2UC; fameItem1UC.text = ui.fameItem1UC; fameItem2UC.text = ui.fameItem2UC; debugThreatUC.text = ui.debugThreatUC; debugDepModUC.text = ui.debugDepModUC; debugDepHandUC.text = ui.debugDepHandUC; debugContinueBtn.text = ui.continueBtn; reinforceWarningUC.text = ui.reinforceWarningUC; deploymentWarningUC.text = ui.deploymentWarningUC; depWarningUC.text = ui.reinforceWarningUC; onslaughtIncreasedUC.text = ui.threatIncreasedUC; landingIncreasedUC.text = ui.threatIncreasedUC; reinforceIncreasedUC.text = ui.threatIncreasedUC; calmMessageUC.text = ui.calmMessageUC; optionDeployment.text = ui.optionalDeployment; UIExpansions uie = DataStore.uiLanguage.uiExpansions; coreHeading.text = uie.core; twinHeading.text = uie.twin; hothHeading.text = uie.hoth; bespinHeading.text = uie.bespin; jabbaHeading.text = uie.jabba; empireHeading.text = uie.empire; lothalHeading.text = uie.lothal; otherHeading.text = uie.other; }
/// <summary> /// Sets the UI with the current language /// </summary> public void SetTranslatedUI() { UISetup ui = DataStore.uiLanguage.uiSetup; settingsHeader.text = ui.settingsHeading; chooseMissionBtn.text = ui.chooseMission; viewCardBtn.text = ui.viewCardBtn; missionInfoBtn.text = ui.missionInfoBtn; threatLevel.text = ui.threatLevelHeading; addtlThreat.text = ui.addtlThreatHeading; deploymentHeader.text = ui.deploymentHeading; opdepBtn.text = ui.no; difficultyBtn.text = ui.difficulty; imperialsHeader.text = ui.imperials; mercenariesHeader.text = ui.mercenaries; adaptiveHeader.text = ui.adaptive; groupsHeading.text = ui.groupsHeading; initialBtn.text = ui.choose; reservedBtn.text = ui.choose; villainsBtn.text = ui.choose; ignoredBtn.text = ui.choose; initialHeading.text = ui.initialHeading; reservedHeading.text = ui.reservedHeading; villainsHeading.text = ui.villainsHeading; ignoredHeading.text = ui.ignoredHeading; addHeroBtn.text = ui.addHero; addAllyBtn.text = ui.addAlly; threatCostHeading.text = ui.threatCostHeading; threatCostBtn.text = ui.no; cancelBtn.text = ui.cancel; continueBtn.text = ui.continueBtn; adaptiveInfo.text = ui.adaptiveInfoUC; enemyChooserHeading.text = ui.enemyChooser; missionChooserHeading.text = ui.missionChooser; enemyBackBtn.text = ui.back; missionBackBtn.text = ui.back; heroAllyBackBtn.text = ui.back; zoomBackBtn.text = ui.back; enemyZoomBtn.text = ui.zoom; chooseHeroesHeading.text = ui.chooseHeroesHeading; heroBackBtn.text = ui.back; UIExpansions uie = DataStore.uiLanguage.uiExpansions; coreHeading.text = uie.core; twinHeading.text = uie.twin; hothHeading.text = uie.hoth; bespinHeading.text = uie.bespin; jabbaHeading.text = uie.jabba; empireHeading.text = uie.empire; lothalHeading.text = uie.lothal; otherHeading.text = uie.other; }
private void SetTranslatedUI() { UITitle ui = DataStore.uiLanguage.uiTitle; uiMenuHeader.text = ui.menuHeading; uiNewGameBtn.text = ui.newGameBtn; uiContinueBtn.text = ui.continueBtn; uiCampaignBtn.text = ui.campaignsBtn; uiOptionsBtn.text = ui.optionsBtn; donateText.text = ui.supportUC; docsText.text = ui.docsUC; //expansion text UIExpansions uie = DataStore.uiLanguage.uiExpansions; bespinExp.text = uie.bespin; hothExp.text = uie.hoth; jabbaExp.text = uie.jabba; empireExp.text = uie.empire; lothalExp.text = uie.lothal; twinExp.text = uie.twin; }