Sorry, it's the older one, my newer one is... I changed the code to this:
public GuiButtonWithImage(int buttonID, int xPos, int yPos, int xOff,int yOff, int type, boolean bank) {
super(buttonID, xPos, yPos, 20, 20, "");
textureOffsetX = xOff;
textureOffsetY = yOff;
if (bank) {
this.type = type;
}
}
Now it does work...