protected override void updateRenderGroup(Game game, RenderGroup renderGroup) { renderGroup.addGuiRectangle(buttonDown ? bounds : (bounds - buttonOffset), ColorMaker.gray(.3f)); renderGroup.addGuiRectangle(bounds + buttonOffset, ColorMaker.gray(.2f)); renderGroup.addGuiText((buttonDown ? bounds.position : (bounds.position - buttonOffset)) + bounds.halfSize + new Vector2(-(renderGroup.stringSize(text) / 2), -4), text, ColorMaker.white); }
protected override void updateRenderGroup(Game game, RenderGroup renderGroup) { renderGroup.addGuiRectangle(bounds, ColorMaker.black, RenderGroup.makeTextureCoords(0, 0)); }