GL11.glDisable(2896 /*GL_LIGHTING*/);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
// Draw scrollbars
if (gs.needsScrollBar(Orientation.HORIZONTAL)) {
Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("textures/gui/container/creative_inventory/tabs.png"));
double scrollX = 0;
double p = (double) scrollLeft / (double) gs.getMaximumScrollPosition(Orientation.HORIZONTAL);
scrollX = 3 + p * (gs.getViewportSize(Orientation.HORIZONTAL) - 16.0 - 6);
RenderUtil.drawGradientRectangle(0, (int) gs.getHeight() - 16, (int) gs.getWidth(), (int) gs.getHeight(), scrollBarColor.toInt(), scrollBarColor2.toInt());
GL11.glColor3f(1.0f, 1.0f, 1.0f);
RenderUtil.drawTexturedModalRectangle((int) scrollX, (int) (gs.getHeight() - 16), 232, 0, 12, 15, 0f);
}
if (gs.needsScrollBar(Orientation.VERTICAL)) {
Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("textures/gui/container/creative_inventory/tabs.png"));
double scrollY = 0;
double p = (double) scrollTop / (double) gs.getMaximumScrollPosition(Orientation.VERTICAL);
scrollY = 3 + p * (gs.getViewportSize(Orientation.VERTICAL) - 16.0 - 6);
RenderUtil.drawGradientRectangle((int) gs.getWidth() - 16, 0, (int) gs.getWidth(), (int) gs.getHeight(), scrollBarColor.toInt(), scrollBarColor2.toInt());
GL11.glColor3f(1.0f, 1.0f, 1.0f);