Ejemplo n.º 1
0
 public void addLabel(string text, Color color, ESleekSide side)
 {
     this.sideLabel = new SleekLabel();
     if (side == ESleekSide.LEFT)
     {
         this.sideLabel.positionOffset_X = -205;
         this.sideLabel.fontAlignment    = 5;
     }
     else if (side == ESleekSide.RIGHT)
     {
         this.sideLabel.positionOffset_X = 5;
         this.sideLabel.positionScale_X  = 1f;
         this.sideLabel.fontAlignment    = 3;
     }
     this.sideLabel.positionOffset_Y = -20;
     this.sideLabel.positionScale_Y  = 0.5f;
     this.sideLabel.sizeOffset_X     = 200;
     this.sideLabel.sizeOffset_Y     = 40;
     if (color != Color.white)
     {
         this.sideLabel.foregroundTint  = ESleekTint.NONE;
         this.sideLabel.foregroundColor = color;
     }
     this.sideLabel.text = text;
     this.add(this.sideLabel);
 }
Ejemplo n.º 2
0
 public void addLabel(string text, ESleekSide side)
 {
     this.addLabel(text, Color.white, side);
 }