public static void RefreshWidgetStates(this PartyScreenWidget partyScreenWidget, SortMode currentPartyThenByMode)
        {
            List <Widget> allChildren = partyScreenWidget.AllChildren.ToList();
            Widget        partySortOrderOppositeButton = allChildren.FirstOrDefault(x => x.Id == "PartySortOrderOppositeButton");

            partySortOrderOppositeButton?.SetState(currentPartyThenByMode == SortMode.NONE ? "Disabled" : "Default");
        }
Exemple #2
0
 public static void Postfix(PartyScreenWidget __instance)
 {
     States.PartyScreenWidget = __instance;
 }