Exemple #1
0
        internal override void Draw()
        {
            base.Draw();

            WWTexture background = null;

            if (isPressed)
            {
                background = backgroundClicked;
            }
            else
            {
                background = backgroundNotClicked;
            }

            if (background == null)
            {
                return;
            }

            Vector2 screenPos = ScreenPosition;

            Color col = Color.FromNonPremultiplied(new Vector4(Vector3.One, CompositeAlpha));

            background.RenderOnScreen(screenPos.X, screenPos.Y, Width, Height, col);

            colText.Render(screenPos.X, screenPos.Y, (float)Width, (float)Height, font, TextAlignHorizontal.Center, col, Color.Yellow);
        }
Exemple #2
0
        internal override void Draw()
        {
            base.Draw();

            Vector2 screenPos = ScreenPosition;

            Color col       = Color.FromNonPremultiplied(new Vector4(Vector3.One, CompositeAlpha));
            Color hotKeyCol = Color.Yellow;

            colText.Render(screenPos.X, screenPos.Y, (float)Width, (float)Height, font, TextAlign, col, hotKeyCol);
        }