コード例 #1
0
 public override TriColorGraphic GetColoredVersion(
     Shader newShader,
     Color newColor,
     Color newColorTwo,
     Color newColorThree)
 {
     return(TriColorGraphicDatabase.Get <TriColorGraphic_Multi>(this.path, newShader, this.drawSize, newColor, newColorTwo, newColorThree, this.data));
 }
コード例 #2
0
 public virtual TriColorGraphic GetCopy(Vector2 newDrawSize)
 {
     return(TriColorGraphicDatabase.Get(this.GetType(),
                                        this.path,
                                        this.Shader,
                                        newDrawSize,
                                        this.color,
                                        this.colorTwo,
                                        this.colorThree));
 }
コード例 #3
0
 public static TriColorGraphic Get(
     System.Type graphicClass,
     string path,
     Shader shader,
     Vector2 drawSize,
     Color color,
     Color colorTwo,
     Color colorThree)
 {
     return(TriColorGraphicDatabase.Get(graphicClass, path, shader, drawSize, color, colorTwo, colorThree, (GraphicData)null, (List <ShaderParameter>)null));
 }
コード例 #4
0
 public Graphic GetNakedGraphic(BodyTypeDef bodyType, Shader shader, Color skinColor, Color skinColorSecond, Color skinColorThird, string userpath, string gender) =>
 TriColorGraphicDatabase.Get(typeof(Graphic_Multi), GetNakedPath(bodyType, userpath, this.useGenderedBodies ? gender : ""), shader, Vector2.one,
                             skinColor, skinColorSecond, skinColorThird, data: null, shaderParameters: null);