コード例 #1
0
 static void Postfix(SG_Shop_Screen __instance, StarSystem ___theSystem, SimGameState ___simState, HBSDOTweenStoreTypeToggle ___FactionStoreButton, GameObject ___LowRepFactionOverlay, GameObject ___SystemStoreButtonHoldingObject, GameObject ___FactionStoreButtonHoldingObject)
 {
     try {
         if (___simState.IsFactionAlly(___theSystem.Owner, null))
         {
             ___FactionStoreButton.FillInByFaction(___simState, ___theSystem.Owner);
             ___SystemStoreButtonHoldingObject.SetActive(true);
             ___FactionStoreButtonHoldingObject.SetActive(true);
             ___FactionStoreButton.SetState(ButtonState.Enabled, false);
             ___LowRepFactionOverlay.SetActive(false);
         }
     }
     catch (Exception e) {
         PersistentMapClient.Logger.LogError(e);
     }
 }