# FavItemsMenu

* <mark style="color:purple;">radialMenuSize:</mark> Amount of items that can be pinned to favorite.
* <mark style="color:purple;">buttonPrefab:</mark> [FavItemSlot ](https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/content/03.-content/03.2-fav-menu/favitemslot)to instantiate at the radial menu.
* <mark style="color:purple;">menuRadius</mark>: Defines the size of the Menu in the UI
* <mark style="color:purple;">highlightText</mark>: When hovering an Item, this text displays its Name
* <mark style="color:purple;">highlightIcon</mark>: When hovering an Item, this text displays its Icon

***

### Getters | FavItemsMenu.cs&#x20;

> <mark style="color:orange;">RadialMenuSize</mark>
>
> Amount of [FavItemSlots ](https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/content/03.-content/03.2-fav-menu/favitemslot)in the Menu.

### Functions | FavItemsMenu.cs

> <mark style="color:green;">CreateMenu()</mark>
>
> Generates and Populates the Radial Menu

> <mark style="color:green;">ContainsItemReferenceInPinned(FavItemReference favItemReference)</mark>
>
> Check if any existing FavItemReference in the already pinned favorites matches the passed favItemReference

> <mark style="color:green;">AddItemReferenceToPinned(FavItemReference favItemReference)</mark>
>
> Add a new reference ( passed favItemReference ) to the Menu.

> <mark style="color:green;">UnpinFromFavMenu(InventorySlot slot)</mark>
>
> Unpins an Inventory Slot from the favoritesList

> <mark style="color:green;">UnpinBasedOnIndex(int slotIndex)</mark>
>
> Unpins an Inventory Slot from the favoritesList based on the index it occupies in favoritesList

> <mark style="color:green;">Highlight(FavItemReference favItemReference)</mark>
>
> Highlight a Favorite Item and display its Icon & Name

> <mark style="color:green;">Unhighlight(int slotIndex)</mark>
>
> Unhighlights a Favorite Item.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>FavItemReference</td><td><a href="favitemsmenu/favitemreference">favitemreference</a></td></tr></tbody></table>
