14.1 Beta 1 SDK
IGameMenuItemPlugin7.10
public interface Unbroken.LaunchBox.Plugins.IGameMenuItemPlugin
Implement this interface in order to add a game-specific menu item to the right-click menu in LaunchBox and/or the game details menu in Big Box.
Properties
string Caption { get; }System.Drawing.Image IconImage { get; }bool ShowInBigBox { get; }bool ShowInLaunchBox { get; }bool SupportsMultipleGames { get; }
Caption 7.10
string Caption { get; }
Gets a value specifying the text to show on the menu item.
IconImage 7.10
System.Drawing.Image IconImage { get; }
Gets a value specifying the icon image to use for the menu item in LaunchBox. This property is not used in Big Box.
ShowInBigBox 7.10
bool ShowInBigBox { get; }
Gets a value specifying whether to show the menu item in the Big Box game details menu.
ShowInLaunchBox 7.10
bool ShowInLaunchBox { get; }
Gets a value specifying whether to show the menu item in the LaunchBox right-click menu.
SupportsMultipleGames 7.10
bool SupportsMultipleGames { get; }
Gets a value specifying whether the menu item should be accessible when multiple games are selected at once.
Methods
bool GetIsValidForGame(Unbroken.LaunchBox.Plugins.Data.IGame selectedGame)bool GetIsValidForGames(Unbroken.LaunchBox.Plugins.Data.IGame[] selectedGames)void OnSelected(Unbroken.LaunchBox.Plugins.Data.IGame selectedGame)void OnSelected(Unbroken.LaunchBox.Plugins.Data.IGame[] selectedGames)
GetIsValidForGame 7.10
bool GetIsValidForGame(Unbroken.LaunchBox.Plugins.Data.IGame selectedGame)
Used to determine whether the menu item is valid for the selected game. If not valid, the menu item will be disabled in LaunchBox or hidden in Big Box.
selectedGame7.10- The game that is currently selected.
Returns
A value specifying whether the menu item is valid for the selected game.GetIsValidForGames 7.10
bool GetIsValidForGames(Unbroken.LaunchBox.Plugins.Data.IGame[] selectedGames)
Used to determine whether the menu item is valid for the selected games when multiple games are selected. If not valid, the menu item will be disabled in LaunchBox. Multiple selections are currently not used in Big Box.
selectedGames7.10- An array of games that represent all the currently selected games.
Returns
A value specifying whether the menu item is valid for the selected games.OnSelected 7.10
void OnSelected(Unbroken.LaunchBox.Plugins.Data.IGame selectedGame)
Called when the menu item is clicked or selected for a particular game.
selectedGame7.10- The currently-selected game that the menu item was called for.
OnSelected 7.10
void OnSelected(Unbroken.LaunchBox.Plugins.Data.IGame[] selectedGames)
Called when the menu item is clicked or selected for multiple games.
selectedGames7.10- An array of games that represent the currently-selected games that the menu item was called for.