Clone() public method

public Clone ( ) : TextStyle
return TextStyle
Esempio n. 1
0
        public UIChatBalloon(UIChatPanel owner)
        {
            Owner = owner;
            var gfx = Content.Content.Get().UIGraphics;
            //TODO: switch entire ui onto real content system

            BPointerBottom = GetTexture(0x1AF0856DDBAC);
            BPointerSide = GetTexture(0x1B00856DDBAC);
            BTiles = GetTexture(0x1B10856DDBAC);

            if (!ProcessedBGFX)
            {
                ProcessedBGFX = true;
                AlphaCopy(BPointerBottom);
                AlphaCopy(BPointerSide);
                AlphaCopy(BTiles);
            }

            BodyTextStyle = TextStyle.DefaultLabel.Clone();
            BodyTextStyle.Size = 10;
            BodyTextStyle.Color = new Color(240, 240, 48);

            ShadowStyle = BodyTextStyle.Clone();
            ShadowStyle.Color = Color.Black;
        }
Esempio n. 2
0
        public static TextStyle Create(Color color, int size, bool shadow = false)
        {
            var style = DefaultLabel.Clone();

            style.Color  = color;
            style.Size   = size;
            style.Shadow = shadow;
            return(style);
        }