public override void Draw(Renderer renderer) { RenderHelper.SmartDrawRectangle(texture, 5, (int)position.X + buttonOffset, (int)position.Y, (int)size.X - buttonOffset - 5, (int)size.Y, Color.White * 0.6f, renderer); RenderHelper.SmartDrawRectangle(texture, 5, (int)position.X, (int)position.Y, buttonOffset, (int)size.Y, Color.White * 0.6f, renderer); b_Key.Draw(renderer); b_Text.Draw(renderer); base.Draw(renderer); }
public override void Draw(Renderer renderer) { if (yes == null) { yes = ResourceManager.Load <Texture2D>("GUI/Elements/Check"); no = ResourceManager.Load <Texture2D>("GUI/Elements/Cross"); } Main.renderer.Draw(bcheck.Text == "x" ? yes : no, new Rectangle( (int)bcheck.position.X, (int)bcheck.position.Y, (int)bcheck.size.X, (int)bcheck.size.Y), Color.White); base.Draw(renderer); if (!enabled) { Main.renderer.Draw(GraphicsEngine.pixel, new Rectangle((int)position.X, (int)position.Y, (int)size.X, (int)bcheck.size.Y), Color.Gray * 0.7f); } ltext.Draw(renderer); //bcheck.Draw(renderer); }