@Override public void addTooltip(List<String> list) { if (!isFullyOpened()) { list.add(StringHelper.localize("info.cofh.owner") + ": " + myContainer.getOwnerName()); return; } int x = gui.getMouseX() - currentShiftX; int y = gui.getMouseY() - currentShiftY; if (28 <= x && x < 44 && 20 <= y && y < 36) { list.add(StringHelper.localize("info.cofh.accessPublic")); } else if (48 <= x && x < 64 && 20 <= y && y < 36) { list.add(StringHelper.localize("info.cofh.accessRestricted")); } else if (68 <= x && x < 84 && 20 <= y && y < 36) { list.add(StringHelper.localize("info.cofh.accessPrivate")); } }
@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(24, 16, 16, 20, 64, 24); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); }
return true; if (!isFullyOpened()) { return false;
drawTabIcon(CoreTextures.ICON_ACCESS_PRIVATE); if (!isFullyOpened()) { return;