Beispiel #1
0
        public void InitMaterialList(MaterialStorage materialStorage)
        {
            List <MaterialRecord> materialRecords = materialStorage.MaterialRecordList;

            materialList.Clear();
            materialList.AddItems(materialRecords.Count);
            for (int i = 0; i < materialRecords.Count; i++)
            {
                GUI_ExoFabMaterialEntry item = materialList.Entries[i] as GUI_ExoFabMaterialEntry;
                item.ReInit(materialRecords[i]);
            }
        }
Beispiel #2
0
        public void InitMaterialList(MaterialStorage materialStorage)
        {
            var materialRecords = materialStorage.MaterialList;

            materialList.Clear();
            materialList.AddItems(materialRecords.Count);
            var i = 0;

            foreach (var material in materialRecords.Keys)
            {
                GUI_ExoFabMaterialEntry item = materialList.Entries[i] as GUI_ExoFabMaterialEntry;
                item.ReInit(material, materialRecords[material]);
                i++;
            }
        }