Example #1
0
        public static bool SetupTargetedOfferCrateRewardDisplay(RewardVO rewardVO, UXLabel itemLabel, UXSprite itemSprite)
        {
            if (string.IsNullOrEmpty(rewardVO.CrateReward))
            {
                return(false);
            }
            CrateVO optional = Service.Get <IDataController>().GetOptional <CrateVO>(rewardVO.CrateReward);

            if (optional != null)
            {
                itemLabel.Text = LangUtils.GetCrateDisplayName(optional);
                RewardUtils.SetCrateIcon(itemSprite, optional, AnimState.Closed);
                return(true);
            }
            return(false);
        }
Example #2
0
 public unsafe static long $Invoke10(long instance, long *args)
 {
     RewardUtils.SetCrateIcon((UXSprite)GCHandledObjects.GCHandleToObject(*args), (CrateVO)GCHandledObjects.GCHandleToObject(args[1]), (AnimState)(*(int *)(args + 2)));
     return(-1L);
 }