// ------------------------------------------------------------------------------- // // ------------------------------------------------------------------------------- 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(); }
protected override void TemplateInitialize(GameObject templateInstance, string item) { Button button = templateInstance.GetComponent <Button>(); if (button != null) { TemplateMetaDungeon map = DictionaryDungeon.Get(item); button.UpdateText(map.name); button.onClick.AddListener(new UnityEngine.Events.UnityAction(() => { Finder.map.WarpDungeon(map); })); } }