Jump to content

Tabs


Recommended Posts

Posted

So when the inventory tab is open, I want to draw a rectangle around a certain slot.

here's my code

if(Tab.INVENTORY.isOpen(null)) {
			Rectangle slot = client.getInventory().getDestinationForSlot(1);
			g.drawRect(slot.x, slot.y, slot.width, slot.height);
		}

isOpen requires a paramater of the type RS2InterfaceChild, I've got no clue as to what to put for the parameter. Can somebody help me?

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...