Interfaces
IMenuService
Handles the UI menus.
Methods
Register
Registers a menu of the given
UpdateMenuItem
Updated a menu item's property value.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player whose menu item needs to be updated. |
| item | Expression<Func<TMenu, MenuItem>> | The property's menu item. |
| property | Expression<Func<MenuItem, TProperty>> | The property. |
| value | TProperty | The new value. |
UpdateMenuItem
Updated a menu item's property value.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player whose menu item needs to be updated. |
| item | MenuItem | The menu item to update. |
| property | Expression<Func<MenuItem, TProperty>> | The property. |
| value | TProperty | The new value. |
UpdateMenuListItem
Updated a menu list item's property value.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player whose menu item needs to be updated. |
| item | Expression<Func<TMenu, MenuListItem>> | The property's menu list item. |
| property | Expression<Func<MenuListItem, TProperty>> | The property. |
| value | TProperty | The new value. |
UpdateMenuListItem
Updated a menu list item's property value.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player whose menu item needs to be updated. |
| item | MenuListItem | The menu list item to update. |
| property | Expression<Func<MenuListItem, TProperty>> | The property. |
| value | TProperty | The new value. |
UpdateMenuListOption
Updates a menu list item's option property value.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | A. |
| item | Expression<Func<TMenu, MenuListItem>> | B. |
| index | int | C. |
| property | Expression<Func<MenuListOption, TProperty>> | D. |
| value | TProperty | AA. |
AddMenuItem
Adds a menu item to the menu of the given
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player. |
| item | MenuItem | The item to add. |
Returns
| Name | Type |
|---|---|
| string | The ID of the item. |
RemoveMenuItem
Removes a menu item from the menu of the given
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player. |
| item | MenuItem | The ID of the item to remove. |