LaunchBoxContributors
On this page

IGameMenuItem13.3

Interface in Unbroken.LaunchBox.Plugins.Data

C#
public interface IGameMenuItem
This interface is used to create menu items by the IGameMultiMenuItemPlugin interface

Properties

  • CaptionThe string displayed on the menu item
  • ChildrenMenu items under this one (not used in Big Box)
  • EnabledIs the menu item enabled
  • IconThe icon for the item (not used in Big Box)

Caption

C#
string Caption { get; }
The string displayed on the menu item

Children

C#
IEnumerable<IGameMenuItem> Children { get; }
Menu items under this one (not used in Big Box)

Enabled

C#
bool Enabled { get; }
Is the menu item enabled

Icon

C#
Image Icon { get; }
The icon for the item (not used in Big Box)

Methods

  • OnSelectFired when your menu item has been selected by the user. Not used if the item has any children.

OnSelect

C#
void OnSelect(params IGame[] games)
Fired when your menu item has been selected by the user. Not used if the item has any children.
games
The games that were selected when activating your menu item. Will not be null