Code:
public void processRightClick459() {
if (activeInterfaceType != 0)
return;
menuActionName[0] = "Cancel";
menuActionID[0] = 1107;
menuActionRow = 1;
if (fullscreenInterfaceID != -1) {
anInt886 = 0;
anInt1315 = 0;
buildInterfaceMenu(8,
RSInterface.interfaceCache[fullscreenInterfaceID],
super.mouseX, 8, super.mouseY, 0);
if (anInt886 != anInt1026) {
anInt1026 = anInt886;
}
if (anInt1315 != anInt1129) {
anInt1129 = anInt1315;
}
return;
}
buildSplitPrivateChatMenu();
anInt886 = 0;
if (super.mouseX > 4 && super.mouseY > 4 && super.mouseX < 516
&& super.mouseY < 338)
if (openInterfaceID != -1)
buildInterfaceMenu(4,
RSInterface.interfaceCache[openInterfaceID],
super.mouseX, 4, super.mouseY, 0);
else
build3dScreenMenu();
if (anInt886 != anInt1026)
anInt1026 = anInt886;
anInt886 = 0;
if (super.mouseX > 553 && super.mouseY > 205 && super.mouseX < 743
&& super.mouseY < 466)
if (invOverlayInterfaceID != -1)
buildInterfaceMenu(553,
RSInterface.interfaceCache[invOverlayInterfaceID],
super.mouseX, 205, super.mouseY, 0);
else if (tabInterfaceIDs[tabID] != -1)
buildInterfaceMenu(553,
RSInterface.interfaceCache[tabInterfaceIDs[tabID]],
super.mouseX, 205, super.mouseY, 0);
if (anInt886 != anInt1048) {
needDrawTabArea = true;
anInt1048 = anInt886;
}
if (anInt1315 != anInt1129) {
anInt1129 = anInt1315;
}
anInt886 = 0;
anInt1315 = 0;
/* Chat area clicking */
if (super.mouseX > 17 && super.mouseY > 357 && super.mouseX < 496
&& super.mouseY < 453)
if (backDialogID != -1)
buildInterfaceMenu(17,
RSInterface.interfaceCache[backDialogID], super.mouseX,
357, super.mouseY, 0);
else if (super.mouseY < 434 && super.mouseX < 426)
buildChatAreaMenu(super.mouseY - 357);
if (backDialogID != -1 && anInt886 != anInt1039) {
inputTaken = true;
anInt1039 = anInt886;
}
if (super.mouseX >= 515 && super.mouseY >= 0 && super.mouseX <= 765
&& super.mouseY <= 167)
if (openInterfaceID != -1)
buildInterfaceMenu(0,
RSInterface.interfaceCache[openInterfaceID],
super.mouseX, 0, super.mouseY, 0);
if (anInt886 != anInt1026)
anInt1026 = anInt886;
anInt886 = 0;
processMinimapActions459();
boolean flag = false;
while (!flag) {
flag = true;
for (int j = 0; j < menuActionRow - 1; j++)
if (menuActionID[j] < 1000 && menuActionID[j + 1] > 1000) {
String s = menuActionName[j];
menuActionName[j] = menuActionName[j + 1];
menuActionName[j + 1] = s;
int k = menuActionID[j];
menuActionID[j] = menuActionID[j + 1];
menuActionID[j + 1] = k;
k = menuActionCmd2[j];
menuActionCmd2[j] = menuActionCmd2[j + 1];
menuActionCmd2[j + 1] = k;
k = menuActionCmd3[j];
menuActionCmd3[j] = menuActionCmd3[j + 1];
menuActionCmd3[j + 1] = k;
k = menuActionCmd1[j];
menuActionCmd1[j] = menuActionCmd1[j + 1];
menuActionCmd1[j + 1] = k;
flag = false;
}
}
}
I actually figured it out to be in this method
Code:
private void drawMenu(int xOffSet, int yOffSet) {
//if (Config.NewCursors) {
super.setCursor(0);
//}
int xPos = menuOffsetX - (xOffSet - 4);
int yPos = (-yOffSet + 4) + menuOffsetY;
int menuW = menuWidth;
int menuH = menuHeight + 1;
inputTaken = true;
tabAreaAltered = true;
DrawingArea.drawPixels(menuH - 4, yPos + 2, xPos, 0x706a5e, menuW);
DrawingArea.drawPixels(menuH - 2, yPos + 1, xPos + 1, 0x706a5e,
menuW - 2);
DrawingArea.drawPixels(menuH, yPos, xPos + 2, 0x706a5e, menuW - 4);
DrawingArea.drawPixels(menuH - 2, yPos + 1, xPos + 3, 0x2d2822,
menuW - 6);
DrawingArea.drawPixels(menuH - 4, yPos + 2, xPos + 2, 0x2d2822,
menuW - 4);
DrawingArea.drawPixels(menuH - 6, yPos + 3, xPos + 1, 0x2d2822,
menuW - 2);
DrawingArea.drawPixels(menuH - 22, yPos + 19, xPos + 2, 0x524a3d,
menuW - 4);
DrawingArea.drawPixels(menuH - 22, yPos + 20, xPos + 3, 0x524a3d,
menuW - 6);
DrawingArea.drawPixels(menuH - 23, yPos + 20, xPos + 3, 0x2b271c,
menuW - 6);
DrawingArea.fillPixels(xPos + 3, menuW - 6, 1, 0x2a291b, yPos + 2);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x2a261b, yPos + 3);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x252116, yPos + 4);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x211e15, yPos + 5);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x1e1b12, yPos + 6);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x1a170e, yPos + 7);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 2, 0x15120b, yPos + 8);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x100d08, yPos + 10);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x090a04, yPos + 11);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x080703, yPos + 12);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x090a04, yPos + 13);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x070802, yPos + 14);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x090a04, yPos + 15);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x070802, yPos + 16);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x090a04, yPos + 17);
DrawingArea.fillPixels(xPos + 2, menuW - 4, 1, 0x2a291b, yPos + 18);
DrawingArea.fillPixels(xPos + 3, menuW - 6, 1, 0x564943, yPos + 19);
chatTextDrawingArea.method385(0xc6b895, "Choose Option", yPos + 14,
xPos + 3);
int mouseX = super.mouseX - (xOffSet);
int mouseY = (-yOffSet) + super.mouseY;
for (int l1 = 0; l1 < menuActionRow; l1++) {
int textY = yPos + 31 + (menuActionRow - 1 - l1) * 15;
int disColor = 0xc6b895;
if (mouseX > xPos && mouseX < xPos + menuW && mouseY > textY - 13
&& mouseY < textY + 3) {
DrawingArea.drawPixels(15, textY - 11, xPos + 3, 0x6f695d,
menuWidth - 6);
disColor = 0xeee5c6;
}
chatTextDrawingArea.method389(true, xPos + 3, disColor,
menuActionName[l1], textY);
}
}
As soon as I uncomment that method it doesn't drop in frames but if I comment it out it will.