/// Draw public override void Draw(SpriteBatch Foreground) { Foreground.Draw(componentTexture, componentRectangle, componentColor[mouseHover ? 1 : 0] * opacity); if (answerText != "") { label.Draw(Foreground); } }
/// Draw public override void Draw(SpriteBatch ForegroundLayer) { if (isWorking) { ForegroundLayer.Draw(componentTexture, componentRectangle, componentColor[mouseHover ? 1 : 0] * opacity); label.Draw(ForegroundLayer); } }
/// Draw public void Draw(SpriteBatch BackgroundLayer, SpriteBatch MediumLayer) { foreach (HButton b in buttons) { b.Draw(BackgroundLayer, MediumLayer); } label.Draw(BackgroundLayer); }