// WORLD: public static bool IsWorldWindowState(Interactor intr, WorldWindowState desiredState) { switch (desiredState) { case WorldWindowState.Inventory: //return Screen.ImageSearch(intr, "InventoryWindowTitle").Found; // Search for either the VIP or Bags tab instead of title (title is unreliable): return(Screen.ImageSearch(intr, "InventoryTabActiveVip", "InventoryTabActiveBags").Found); default: return(false); } }
// WORLD: public static bool IsWorldWindowState(Interactor intr, WorldWindowState desiredState) { switch (desiredState) { case WorldWindowState.Inventory: //return Screen.ImageSearch(intr, "InventoryWindowTitle").Found; // Search for either the VIP or Bags tab instead of title (title is unreliable): return Screen.ImageSearch(intr, "InventoryTabActiveVip", "InventoryTabActiveBags").Found; default: return false; } }