Esempio n. 1
0
        public CText(float x, float y, float z, float h, float mw, EAlignment align, EStyle style, string font, SColorF col, string text)
        {
            _Theme       = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText  = false;

            X        = x;
            Y        = y;
            Z        = z;
            Height   = h;
            MaxWidth = mw;
            Align    = align;
            Style    = style;
            Fon      = font;

            Color  = col;
            SColor = new SColorF(col);

            Text = text;

            Selected = false;

            if (MaxWidth > 0)
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, MaxWidth, 3f * CSettings.iRenderH, 0f);
            }
            else
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, 3f * CSettings.iRenderW, 3f * CSettings.iRenderH, 0f);
            }

            Reflection = false;
        }
Esempio n. 2
0
        public CText()
        {
            _Theme       = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText  = false;

            X        = 0f;
            Y        = 0f;
            Z        = 0f;
            Height   = 1f;
            MaxWidth = 0f;
            Bounds   = new SRectF();
            Align    = EAlignment.Left;
            Style    = EStyle.Normal;
            Fon      = "Normal";

            Color            = new SColorF();
            SColor           = new SColorF();
            Reflection       = false;
            ReflectionSpace  = 0f;
            ReflectionHeight = 0f;

            Text     = String.Empty;
            Selected = false;
            Visible  = true;
            Alpha    = 1f;
        }
Esempio n. 3
0
        public CText(float x, float y, float z, EAlignment align, float h, float mw, float r, float g, float b, float a, EStyle style, string font, string text, float rspace, float rheight)
        {
            _Theme       = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText  = false;

            X        = x;
            Y        = y;
            Z        = z;
            Height   = h;
            MaxWidth = mw;
            Align    = align;
            Style    = style;
            Fon      = font;

            Color  = new SColorF(r, g, b, a);
            SColor = new SColorF(r, g, b, a);

            Text = text;

            Selected = false;

            if (MaxWidth > 0)
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, MaxWidth, 3f * CSettings.iRenderH, 0f);
            }
            else
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, 3f * CSettings.iRenderW, 3f * CSettings.iRenderH, 0f);
            }

            Reflection       = true;
            ReflectionSpace  = rspace;
            ReflectionHeight = rheight;
        }
Esempio n. 4
0
        public CText(CText text)
        {
            _Theme       = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText  = false;

            X        = text._X;
            Y        = text._Y;
            Z        = text._Z;
            Height   = text._Height;
            MaxWidth = text._MaxWidth;
            Bounds   = new SRectF(text._Bounds);
            Align    = text._Align;
            HAlign   = text._HAlign;
            Style    = text._Style;
            Fon      = text._Fon;

            Color            = new SColorF(text.Color);
            SColor           = new SColorF(text.SColor);
            Reflection       = text.Reflection;
            ReflectionSpace  = text.ReflectionSpace;
            ReflectionHeight = text.ReflectionHeight;

            Text     = text._Text;
            Selected = text.Selected;
            Visible  = text.Visible;
            Alpha    = text.Alpha;

            EditMode = text.EditMode;
        }
Esempio n. 5
0
        public CText()
        {
            _Theme = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText = false;

            X = 0f;
            Y = 0f;
            Z = 0f;
            Height = 1f;
            MaxWidth = 0f;
            Bounds = new SRectF();
            Align = EAlignment.Left;
            Style = EStyle.Normal;
            Fon = "Normal";

            Color = new SColorF();
            SColor = new SColorF();
            Reflection = false;
            ReflectionSpace = 0f;
            ReflectionHeight = 0f;

            Text = String.Empty;
            Selected = false;
            Visible = true;
            Alpha = 1f;
        }
Esempio n. 6
0
        public CText(float x, float y, float z, EAlignment align, float h, float mw, float r, float g, float b, float a, EStyle style, string font, string text, float rspace, float rheight)
        {
            _Theme = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText = false;

            X = x;
            Y = y;
            Z = z;
            Height = h;
            MaxWidth = mw;
            Align = align;
            Style = style;
            Fon = font;

            Color = new SColorF(r, g, b, a);
            SColor = new SColorF(r, g, b, a);

            text = Text;

            Selected = false;

            if (MaxWidth > 0)
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, MaxWidth, 3f * CSettings.iRenderH, 0f);
            }
            else
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, 3f * CSettings.iRenderW, 3f * CSettings.iRenderH, 0f);
            }

            Reflection = true;
            ReflectionSpace = rspace;
            ReflectionHeight = rheight;
        }
Esempio n. 7
0
        public CText(float x, float y, float z, float h, float mw, EAlignment align, EStyle style, string font, SColorF col, string text)
        {
            _Theme = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText = false;

            X = x;
            Y = y;
            Z = z;
            Height = h;
            MaxWidth = mw;
            Align = align;
            HAlign = EHAlignment.Center;
            Style = style;
            Fon = font;

            Color = col;
            SColor = new SColorF(col);

            Text = text;

            Selected = false;

            if (MaxWidth > 0)
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, MaxWidth, 3f * CSettings.iRenderH, 0f);
            }
            else
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, 3f * CSettings.iRenderW, 3f * CSettings.iRenderH, 0f);
            }

            Reflection = false;
        }
Esempio n. 8
0
        public CText(CText text)
        {
            _Theme = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText = false;

            X = text._X;
            Y = text._Y;
            Z = text._Z;
            Height = text._Height;
            MaxWidth = text._MaxWidth;
            Bounds = new SRectF(text._Bounds);
            Align = text._Align;
            HAlign = text._HAlign;
            Style = text._Style;
            Fon = text._Fon;

            Color = new SColorF(text.Color);
            SColor = new SColorF(text.SColor);
            Reflection = text.Reflection;
            ReflectionSpace = text.ReflectionSpace;
            ReflectionHeight = text.ReflectionHeight;

            Text = text._Text;
            Selected = text.Selected;
            Visible = text.Visible;
            Alpha = text.Alpha;

            EditMode = text.EditMode;
        }