Ejemplo n.º 1
0
        public override void Resize(int x, int y)
        {
            base.Resize(x, y);

            CheckMaterial();

            if (CurrentMaterial.DiffuseTexture == null)
            {
                ShapeBuffer.FilledRect(this, Rect);
            }
            else
            {
                HandleTexturedRect();
            }
        }
Ejemplo n.º 2
0
        public override void Resize(int x, int y)
        {
            if (!string.IsNullOrEmpty(LabelText) && LabelControl == null)
            {
                SetupLabel();
            }

            base.Resize(x, y);

            CheckMaterial();

            if (CurrentMaterial.DiffuseTexture == null)
            {
                ShapeBuffer.FilledRect(this, Rect);
            }
            else
            {
                HandleTexturedRect();
            }
        }
Ejemplo n.º 3
0
        public override void Resize(int x, int y)
        {
            base.Resize(x, y);

            if (TextLabel == null)
            {
                SetupLabel();
            }

            CheckMaterial();

            if (CurrentMaterial.DiffuseTexture == null)
            {
                ShapeBuffer.FilledRect(this, Rect);
            }
            else
            {
                HandleTexturedRect();
            }

            SetCursorPostion();
        }