def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens( "AnchorAweigh.Icon_Resources.Icon_Oil", "AnchorAweigh.Icon_Resources.Icon_Money", "AnchorAweigh.Icon_Resources.Icon_Diamond", "AnchorAweigh.Button_MainBattleLine", "AnchorAweigh.Label_WeighAnchor", ) return cls.compare_with_pixels(window, points_to_check)
def get_fleet_formation(cls, window) -> Optional[str]: if cls.is_strategy_popup(window): for state in ("State_SingleLineAssault", "State_DoubleLineAdvance", "State_CircularDefense"): points_to_check = am.eigens( f"Campaign.Button_Strategy.State_Expanded.Button_SwitchFormation.{state}" ) if cls.compare_with_pixels(window, points_to_check): return state return None
def show_duty(cls, window): btn = "PopupFleetSelect.Button_ChangeDuty" res = 0b0 s0, s1 = (cls.compare_with_pixels( window, am.eigens(f"{btn}.Submarine.{state}")) for state in ("Button_AutoEngage", "Button_StandBy")) if s0 and (not s1): res |= 0b1 elif (not s0) and s1: res |= (0b1 << 1) for idx, state in enumerate(("Button_StandBy", "Button_AllBattle", "Button_Flagship", "Button_NormalBattle"), start=2): if cls.compare_with_pixels( window, am.eigens(f"{btn}.NormalFleet.{state}")) is True: res |= (0b1 << idx) return res
def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens("Campaign.Popup_GetShip", ) return cls.compare_with_pixels(window, points_to_check)
def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens( "Popup_Information.AutoBattle", "Popup_Information.AutoBattle.Button_Ensure", ) return cls.compare_with_pixels(window, points_to_check)
def is_commissions_all_folded(cls, window): points_to_check = am.eigens( "Main.Button_Commission.Popup_Commission.State_AllFolded", ) return cls.compare_with_pixels(window, points_to_check)
def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens( "Main.Button_Commission.Popup_Commission.Label_Commission", ) return cls.compare_with_pixels(window, points_to_check)
def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens("Battle.Button_Pause", ) return cls.compare_with_pixels(window, points_to_check)
def is_strategy_popup(cls, window): points_to_check = am.eigens("Campaign.Button_Strategy.State_Expanded") return cls.compare_with_pixels(window, points_to_check)
def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens( "AnchorAweigh.Button_RescueSOS.Popup_RescueSOS", ) return cls.compare_with_pixels(window, points_to_check)
def _is_fixed_fleet(cls, window): points_to_check = am.eigens( "PopupFleetSelect.Button_ChangeFormation", ) return cls.compare_with_pixels(window, points_to_check)
def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens( "PopupFleetSelect.Label_FleetSelect", "PopupFleetSelect.Label_Marine", ) return cls.compare_with_pixels(window, points_to_check)
def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens( "Scene_DelegationList.Label_Delegation", "Scene_DelegationList.Label_AvailableFleets", ) return cls.compare_with_pixels(window, points_to_check)
def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens( "AfterBattle.Checkpoint_01.Label_Checkpoint", ) return cls.compare_with_pixels(window, points_to_check)
def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens( "CampaignChapter.Label_TotalRewards_with_META", "CampaignChapter.Label_TotalRewards_with_META.Button_GoAgain", ) return cls.compare_with_pixels(window, points_to_check)
def is_formation_locked(cls, window): points_to_check = am.eigens("Campaign.Button_FormationLock.State_On") return cls.compare_with_pixels(window, points_to_check)
def is_signal_found(cls, window): points_to_check = am.eigens( "AnchorAweigh.Button_RescueSOS.Popup_RescueSOS.Button_Chapter03.State_SignalFound", ) return cls.compare_with_pixels(window, points_to_check)
def at_this_scene_impl(cls, window) -> bool: points_to_check = am.eigens( "PopupStageInfo.Label_WeighAnchor", "PopupStageInfo.Button_ImmediateStart", ) return cls.compare_with_pixels(window, points_to_check)
def is_auto_submarine_off(cls, window) -> bool: points_to_check = am.eigens( "BeforeBattle.Formation.Automation.Button_AutoSubmarine.State_Off") return cls.compare_with_pixels(window, points_to_check)