// ------------------------------------------------------------------------------- // UpdateDisplay // ------------------------------------------------------------------------------- private void UpdateDisplay() { if (savegame != null) { txtStartDate.text = savegame.StartDate.ToString(); txtSaveDate.text = savegame.SaveDate.ToString(); txtLocation.text = savegame.mapName; txtIndex.text = savegame.Index.ToString(); txtGold.text = string.Format("{0}: {1}", Finder.txt.getCurrencyName(CurrencyType.Gold, false), savegame.gold); int i = 0; foreach (Image img in portraits) { if (savegame.characters.Count > i) { img.sprite = DictionaryCharacterHero.GetHero(savegame.characters[i].templateName).icon; img.gameObject.SetActive(true); } else { img.gameObject.SetActive(false); } i++; } } }
// ------------------------------------------------------------------------------- // // ------------------------------------------------------------------------------- private void OnEnable() { labelBtnNewGame.text = Finder.txt.buttonNames.NewGame; labelBtnLoad.text = Finder.txt.buttonNames.Load; labelBtnSettings.text = Finder.txt.buttonNames.Options; labelBtnCredits.text = Finder.txt.buttonNames.Credits; labelBtnQuit.text = Finder.txt.buttonNames.Quit; if (Finder.save.HasSaveFiles()) { btnLoad.SetActive(true); } else { btnLoad.SetActive(false); } // -- Builds the Dictionaries DictionaryAttribute.load(); DictionaryCharacterClass.load(); DictionaryCharacterHero.load(); DictionaryCombatStyle.load(); DictionaryDungeon.load(); DictionaryElement.load(); DictionaryEquipment.load(); DictionaryEquipmentSlot.load(); DictionaryGossip.load(); DictionaryItem.load(); DictionarySkill.load(); DictionarySpecies.load(); DictionaryStatus.load(); DictionaryTile.load(); DictionaryTown.load(); }