> For the complete documentation index, see [llms.txt](https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/content/03.-content/03.2-fav-menu/favitemsmenu.md).

# FavItemsMenu

FavItemsMenu manages the creation and navigation of the Radial Menu. It also handles adding, referencing, and removing FavItemReferences for each FavItemSlot.

* <mark style="color:purple;">radialMenuSize:</mark> Amount of items that can be pinned to favorite.
* <mark style="color:purple;">buttonPrefab:</mark> [FavItemSlot ](/inventory-pro-add-on-documentation/content/03.-content/03.2-fav-menu/favitemslot.md)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 ](/inventory-pro-add-on-documentation/content/03.-content/03.2-fav-menu/favitemslot.md)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="/inventory-pro-add-on-documentation/content/03.-content/03.2-fav-menu/favitemsmenu/favitemreference.md">FavItemReference</a></td></tr></tbody></table>
