// -------------------------------------------------------------------------------
        //
        // -------------------------------------------------------------------------------
        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();
        }
Exemple #2
0
 // -------------------------------------------------------------------------------
 // loadTemplate
 // -------------------------------------------------------------------------------
 public override void loadTemplate()
 {
     if (string.IsNullOrEmpty(name))
     {
         return;
     }
     template = DictionaryEquipment.Get(name);
 }