public void LoadItem(RewardCategory rewardCategory, DReward rewardData, bool allowMemberLockOverlay = false, bool showItemName = false) { this.rewardCategory = rewardCategory; this.rewardData = rewardData; if (rewardCategory == RewardCategory.fabrics) { loadItemIconContainer(fabricIconKey); } else if (rewardCategory == RewardCategory.partySupplies || rewardCategory == RewardCategory.consumables || rewardCategory == RewardCategory.musicTracks || rewardCategory == RewardCategory.iglooSlots || rewardCategory == RewardCategory.decorationInstances || rewardCategory == RewardCategory.decorationPurchaseRights || rewardCategory == RewardCategory.structureInstances || rewardCategory == RewardCategory.structurePurchaseRights) { loadItemIconContainer(prefabIconKey); } else { loadItemIconContainer(itemIconKey); } if (allowMemberLockOverlay) { object obj = rewardData.UnlockID; if (obj == null) { obj = rewardData.EquipmentRequest.definitionId; } bool flag = Service.Get <CPDataEntityCollection>().IsLocalPlayerMember() || !RewardUtils.IsRewardMemberOnly(rewardCategory, obj); MemberLockOverlay.SetActive(!flag); } this.showItemName = showItemName; }