Esempio n. 1
0
 private void SetNotificationItemHook(GenericNotification.orig_SetItem orig, RoR2.UI.GenericNotification self, ItemDef itemDef)
 {
     //self.descriptionText.token = itemDef.descriptionToken;
     orig(self, itemDef);
     if (itemDef.itemIndex == catalogIndex)
     {
         self.descriptionText.token = dynamicPickupText;
     }
 }
Esempio n. 2
0
        private static void SetNotificationItemHook(GenericNotification.orig_SetItem orig,
                                                    RoR2.UI.GenericNotification self,
                                                    ItemDef itemDef)
        {
            orig(self, itemDef);

            if (ItemStatsMod.DetailedPickupDescriptions.Value)
            {
                self.descriptionText.token = itemDef.descriptionToken;
            }
        }