예제 #1
0
        public override void SetAlignment(YxEAlignment alignment)
        {
            if (Label == null)
            {
                return;
            }
            switch (alignment)
            {
            case YxEAlignment.Automatic:
                break;

            case YxEAlignment.Left:
                Label.alignment = TextAnchor.MiddleLeft;
                break;

            case YxEAlignment.Center:
                Label.alignment = TextAnchor.MiddleCenter;
                break;

            case YxEAlignment.Right:
                Label.alignment = TextAnchor.MiddleRight;
                break;

            case YxEAlignment.Justified:
                break;
            }
        }
예제 #2
0
        public override void SetAlignment(YxEAlignment yxEAlignment)
        {
            var label = Label;

            if (label == null)
            {
                return;
            }
            label.alignment = (NGUIText.Alignment)(int) yxEAlignment;
        }
예제 #3
0
 public override void SetAlignment(YxEAlignment alignment)
 {
     throw new System.NotImplementedException();
 }
예제 #4
0
 public override void SetAlignment(YxEAlignment alignment)
 {
 }