Originally Posted by
sheepmonger
can you post your
Code:
itemGroup metod
and addChar
Code:
public static void addChar(int ID, int rotation1, int rotation2, int zoom, int contentType) {
RSInterface t = interfaceCache[ID] = new RSInterface();
t.id = ID;
t.parentID = ID;
t.type = 6;
t.atActionType = 0;
t.contentType = contentType;
t.width = 136;
t.height = 168;
t.modelZoom = zoom;
t.modelRotation1 = rotation1;
t.modelRotation2 = rotation2;
t.anInt257 = -1;
t.anInt258 = -1;
}
Code:
public static void itemGroup(int id, int w, int h, int x, int y, boolean drag) {
RSInterface rsi = addInterface(id);
rsi.width = w;
rsi.height = h;
rsi.inv = new int[w * h];
rsi.invStackSizes = new int[w * h];
rsi.usableItemInterface = false;
rsi.isInventoryInterface = false;
rsi.invSpritePadX = x;
rsi.invSpritePadY = y;
rsi.spritesX = new int[20];
rsi.spritesY = new int[20];
rsi.sprites = new Sprite[20];
rsi.aBoolean235 = drag;
rsi.type = 2;
}