Code:
private void drawMenu() {
int i = menuOffsetX;
int j = menuOffsetY;
int k = menuWidth;
int j1 = super.mouseX;
int k1 = super.mouseY;
int l = menuHeight + 1;
int i1 = 0x5d5447;
int xPos = menuOffsetX;
int yPos = menuOffsetY;
int menuW = menuWidth;
int x = super.mouseX;
int y = super.mouseY;
int menuH = menuHeight + 1;
if (menuScreenArea == 1 && (clientSize > 0)) {
i += 519;// +extraWidth;
j += 168;// +extraHeight;
}
if (menuScreenArea == 2 && (clientSize > 0)) {
j += 338;
}
if (menuScreenArea == 3 && (clientSize > 0)) {
i += 515;
j += 0;
}
if (menuScreenArea == 0) {
j1 -= 4;
k1 -= 4;
}
if (menuScreenArea == 1) {
if (!(clientSize > 0)) {
j1 -= 519;
k1 -= 168;
}
}
if (menuScreenArea == 2) {
if (!(clientSize > 0)) {
j1 -= 17;
k1 -= 338;
}
}
if (menuScreenArea == 3 && !(clientSize > 0)) {
j1 -= 515;
k1 -= 0;
}
// DrawingArea.drawPixels(height, yPos, xPos, color, width);
// DrawingArea.fillPixels(xPos, width, height, color, yPos);
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);
newBoldFont.drawBasicString("Choose Option", xPos + 3, yPos + 14, 0xc6b895, 0, true);
int beforeX = xPos;
for (int index = 0; index < menuActionRow; index++) {
int yOffset = yPos + 31 + (menuActionRow - 1 - index) * 15;
int color = 0xffffff;
if (x > xPos && x < xPos + menuW && y > yOffset - 11 && y < yOffset + 5) {
DrawingArea.drawPixels(15, yOffset - 11, xPos + 3, 0x6f695d, menuWidth - 6);
detectCursor(menuActionName[index]);
color = 0xffff00;
currentActionMenu = index;
}
xPos += 3;
newBoldFont.drawBasicString(menuActionName[index], xPos, yOffset, color, 0, true);
xPos = beforeX;
}
}
Confuses me that everything else works except invy/equiptment