@Override protected void drawBackground() { super.drawBackground(); if (!isFullyOpened()) { return; } float colorR = (backgroundColor >> 16 & 255) / 255.0F * 0.6F; float colorG = (backgroundColor >> 8 & 255) / 255.0F * 0.6F; float colorB = (backgroundColor & 255) / 255.0F * 0.6F; GlStateManager.color(colorR, colorG, colorB, 1.0F); gui.drawTexturedModalRect(28, 20, 16, 20, 64, 64); gui.drawTexturedModalRect(6, 32, 16, 20, 20, 40); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); }
@Override public void addTooltip(List<String> list) { if (!isFullyOpened()) { list.add(StringHelper.localize("info.cofh.configuration")); return; } int x = gui.getMouseX() - currentShiftX; int y = gui.getMouseY() - currentShiftY; if (8 <= x && x < 24 && 34 <= y && y < 50) { if (myTileControl.hasTransferIn()) { list.add(myTileControl.getTransferIn() ? StringHelper.localize("gui.cofh.transferInEnabled") : StringHelper.localize("gui.cofh.transferInDisabled")); } else { list.add(StringHelper.localize("gui.cofh.transferInUnavailable")); } } else if (8 <= x && x < 24 && 54 <= y && y < 68) { if (myTileControl.hasTransferOut()) { list.add(myTileControl.getTransferOut() ? StringHelper.localize("gui.cofh.transferOutEnabled") : StringHelper.localize("gui.cofh.transferOutDisabled")); } else { list.add(StringHelper.localize("gui.cofh.transferOutUnavailable")); } } }
@Override public boolean onMousePressed(int mouseX, int mouseY, int mouseButton) throws IOException { if (!isFullyOpened()) { return false;
if (!isFullyOpened()) { return;