Пример #1
0
 public void UpdateProps(ShoulderPadProperties entry)
 {
     this.props                = entry;
     this.label                = entry.label;
     this.shoulderPadType      = entry.shoulderPadType;
     this.shaderType           = entry.shaderType;
     this.bodyspecificTextures = entry.bodyspecificTextures;
     this.padTexPath           = entry.padTexPath;
     if (!entry.label.NullOrEmpty())
     {
         this.label = entry.label;
     }
     this.commonality            = entry.commonality;
     this.northalt               = entry.northtop;
     this.southalt               = entry.southtop;
     this.eastalt                = entry.easttop;
     this.westalt                = entry.westtop;
     this.UseFactionTextures     = entry.UseFactionTextures;
     this.UseFactionColors       = entry.UseFactionColors;
     this.UseVariableTextures    = entry.UseVariableTextures;
     this.UsePrimaryColor        = entry.UsePrimaryColor;
     this.overridePrimaryColor   = entry.overridePrimaryColor;
     this.UseSecondaryColor      = entry.UseSecondaryColor;
     this.overrideSecondaryColor = entry.overrideSecondaryColor;
     this.order    = entry.order;
     this.sublayer = entry.sublayer;
     if (this.UseFactionTextures || this.UseVariableTextures)
     {
         this.defaultOption = entry.defaultOption;
         if (activeOption == null)
         {
             this.activeOption = entry.defaultOption;
         }
     }
 }
Пример #2
0
        public void UpdateProps()
        {
            ShoulderPadProperties newprops = null;

            for (int i = 0; i < Drawer.Props.PauldronEntries.Count; i++)
            {
                ShoulderPadProperties e = Drawer.Props.PauldronEntries[i];
                if ((this.padTexPath == e.padTexPath && this.shoulderPadType == e.shoulderPadType) || (!this.label.NullOrEmpty() && !e.label.NullOrEmpty() && this.label == e.label))
                {
                    newprops = e;
                    break;
                }
            }
            if (newprops == null && Drawer.Props.PauldronEntries.Any(x => x.shoulderPadType == this.shoulderPadType))
            {
                newprops = Drawer.Props.PauldronEntries.Find(x => x.shoulderPadType == this.shoulderPadType);
            }
            if (newprops != null)
            {
                UpdateProps(newprops);
            }
        }
Пример #3
0
 public ShoulderPadEntry(ShoulderPadProperties entry, CompPauldronDrawer drawer)
 {
     UpdateProps(entry);
     this.drawer  = drawer;
     this.apparel = drawer.apparel;
 }