示例#1
0
 static void Postfix(SGNavigationButton __instance, LocalizableText ___text, List <SGNavFlyoutButton> ___FlyoutButtonList, int ___flyoutButtonCount)
 {
     Mod.Log.Trace?.Write($"SGNB:RFTP - entered button {___text.GetParsedText()} with {___flyoutButtonCount} flyout buttons for ID: {__instance.ID}");
     if (__instance.ID != DropshipLocation.CPT_QUARTER && !___text.text.Contains("CMD Staff"))
     {
         foreach (SGNavFlyoutButton flyoutButton in ___FlyoutButtonList)
         {
             flyoutButton.gameObject.SetActive(false);
         }
     }
 }