Beispiel #1
0
        private void OnEnable()
        {
            if (m_categoryList != null)
            {
                m_categoryList.items.Clear();
                m_staticIdList = new List <Int32>();
                m_categoryList.items.Add("Armor");
                m_categoryList.items.Add("Jewelry");
                m_categoryList.items.Add("Shields");
                m_categoryList.items.Add("Melee Weapons");
                m_categoryList.items.Add("Magic Focus");
                m_categoryList.items.Add("Ranged Weapons");
                m_categoryList.items.Add("Potions");
                m_categoryList.items.Add("Scrolls");
            }
            m_prefixList.items.Clear();
            m_suffixList.Clear();
            IEnumerable <PrefixStaticData> iterator  = StaticDataHandler.GetIterator <PrefixStaticData>(EDataType.PREFIX);
            IEnumerable <SuffixStaticData> iterator2 = StaticDataHandler.GetIterator <SuffixStaticData>(EDataType.SUFFIX);

            m_prefixList.items.Add("0: NONE");
            foreach (PrefixStaticData prefixStaticData in iterator)
            {
                m_prefixList.items.Add(prefixStaticData.StaticID + ": " + prefixStaticData.Name);
            }
            m_suffixList.AddItem("0: NONE");
            foreach (SuffixStaticData suffixStaticData in iterator2)
            {
                m_suffixList.AddItemWithoutReposition(suffixStaticData.StaticID + ": " + suffixStaticData.Name);
            }
            m_suffixList.ReposItems();
            SelectItemCategory("Armor");
        }