Пример #1
0
 public void SetupPatternTex()
 {
     for (int _idx = 0; _idx < 3; ++_idx)
     {
         PatternInfo pattern = this.itemInfo.colors[_idx].pattern;
         if (!pattern.filePath.IsNullOrEmpty())
         {
             string fileName = Path.GetFileName(pattern.filePath);
             this.SetPatternTex(_idx, UserData.Path + "pattern/" + fileName);
         }
         else
         {
             this.SetPatternTex(_idx, pattern.key);
         }
     }
 }
Пример #2
0
 public OIItemInfo(int _group, int _category, int _no, int _key)
     : base(_key)
 {
     this.group    = _group;
     this.category = _category;
     this.no       = _no;
     this.child    = new List <ObjectInfo>();
     this.colors   = new ColorInfo[4]
     {
         new ColorInfo(),
         new ColorInfo(),
         new ColorInfo(),
         new ColorInfo()
     };
     this.emissionColor       = Utility.ConvertColor((int)byte.MaxValue, (int)byte.MaxValue, (int)byte.MaxValue);
     this.panel               = new PatternInfo();
     this.bones               = new Dictionary <string, OIBoneInfo>();
     this.option              = new List <bool>();
     this.animeNormalizedTime = 0.0f;
 }