Exemple #1
0
 /// <summary>
 /// 设置Label字体的描边.
 /// </summary>
 void SetLabelOutlineColor()
 {
     if (label != null)
     {
         if (bShowOutLine && OutlineColor != TxtOutlineColor.None)
         {
             label.effectStyle    = UILabel.Effect.Outline;
             label.effectColor    = ColorSet.getOutlineColor(OutlineColor);
             label.effectDistance = new Vector2(0.78f, 0.5f);
         }
         else
         {
             label.effectStyle = UILabel.Effect.None;
         }
     }
 }