Class Widgets

java.lang.Object
org.sketchy.api.methods.widget.Widgets

public class Widgets extends Object
  • Method Details

    • get

      public static WidgetChild get(int... path)
      get(group, child[, grandchild]).
    • group

      public static Widgets.Widget2 group(int g)
    • getWidget

      public static Widget getWidget(int group)
    • get

      public static WidgetChild get(Filter f)
    • getAllContainingText

      public static List<WidgetChild> getAllContainingText(String text)
    • closeAll

      public static boolean closeAll()
      Closes open interfaces with the Esc key (game option "Esc closes the current interface").
    • getAll

      public static List<WidgetChild> getAll(Filter f)
    • getAllWidgets

      public static List<WidgetChild> getAllWidgets()
    • getWidgets

      public static List<WidgetChild> getWidgets(Filter f)
    • getMatchingWidget

      public static WidgetChild getMatchingWidget(Filter f)
    • get

      public static WidgetChild get(int group, Filter f)
    • getChildWidget

      public static WidgetChild getChildWidget(int group, int child)
    • getWidgetChild

      public static WidgetChild getWidgetChild(int... path)
    • getWidgetChildrenContainingText

      public static List<WidgetChild> getWidgetChildrenContainingText(String text)
    • isVisible

      public static boolean isVisible(int... path)
    • isOpen

      public static boolean isOpen()
      Any interface open in the main area (bank, shop, GE...).
    • isWidgetSelected

      public static boolean isWidgetSelected()
    • getSelectedWidget

      public static WidgetChild getSelectedWidget()
    • getSelected

      public static WidgetChild getSelected()
    • getSelectedWidgetId

      public static int getSelectedWidgetId()
    • getSelectedWidgetIndex

      public static int getSelectedWidgetIndex()
    • setSelectedWidgetId

      public static void setSelectedWidgetId(int id)
      Selection is the game's: setters accepted, no effect.
    • setSelectedWidgetIndex

      public static void setSelectedWidgetIndex(int i)
    • getWidgetXArray

      public static int[] getWidgetXArray()
    • getWidgetYArray

      public static int[] getWidgetYArray()
    • sketchyGroupTexts

      public static List<String> sketchyGroupTexts(int group)
      Sketchy addition: every non-empty text of an interface group, tags removed, in ONE client-thread read. Reading widgets one by one costs a round trip each (seconds for the chatbox); this costs one.