Example #1
0
 private static void Postfix(StoreGui __instance, Trader trader)
 {
     if (OdinPlus.traderNameList.Contains(trader.m_name))
     {
         OdinTrader.TweakGui(__instance, true);
         return;
     }
     return;
 }
Example #2
0
            private static void Prefix(StoreGui __instance)
            {
                var trader = Traverse.Create(__instance).Field <Trader>("m_trader").Value;

                if (OdinPlus.traderNameList.Contains(trader.m_name))
                {
                    OdinTrader.TweakGui(__instance, false);
                    return;
                }
                return;
            }