Class Tabs

java.lang.Object
net.storm.sdk.widgets.Tabs

public class Tabs extends Object
Provides utility methods for managing game interface tabs.

Tabs are the clickable interface elements at the edges of the game screen that provide access to various game features such as inventory, equipment, skills, prayer, magic, combat options, and more.

This class allows programmatic opening and checking of tabs, which is useful for automation scripts that need to switch between different interface panels.

Example Usage:


 // Open the inventory tab
 Tabs.open(Tab.INVENTORY);

 // Check if the prayer tab is currently open
 if (Tabs.isOpen(Tab.PRAYER)) {
     // The prayer tab is active
 }

 // Switch to equipment tab before checking gear
 if (!Tabs.isOpen(Tab.EQUIPMENT)) {
     Tabs.open(Tab.EQUIPMENT);
 }
 
See Also:
  • Constructor Details

    • Tabs

      public Tabs()
  • Method Details

    • open

      public static void open(Tab tab)
      Opens the specified game tab.

      If the tab is already open, this method may still perform the click action.

      Parameters:
      tab - the tab to open
    • isOpen

      public static boolean isOpen(Tab tab)
      Checks whether the specified tab is currently open and active.
      Parameters:
      tab - the tab to check
      Returns:
      true if the tab is currently open, false otherwise