IGameBadge10.11
Interface in Unbroken.LaunchBox.Plugins.Data
public interface IGameBadge
Represents a badge that can be displayed on games; can be implemented as a plugin and will be automatically added to LaunchBox
Properties
DefaultIconThe default image icon to display for the badge; can be overridden by the user in the file systemIndexThe index of where to display the badge in the listNameThe user-friendly (and hopefully translated) name of the badge (displays with a tooltip)UniqueIdThe unique ID/never-changing name of the badge; used for XML settings saving and image file lookups
DefaultIcon
Image DefaultIcon { get; }
The default image icon to display for the badge; can be overridden by the user in the file system
Index
int Index { get; set; }
The index of where to display the badge in the list
Name
string Name { get; }
The user-friendly (and hopefully translated) name of the badge (displays with a tooltip)
UniqueId
string UniqueId { get; }
The unique ID/never-changing name of the badge; used for XML settings saving and image file lookups
Methods
GetAppliesToGameGets a value specifying whether or not this badge applies to the specified game
GetAppliesToGame
bool GetAppliesToGame(IGame game)
Gets a value specifying whether or not this badge applies to the specified game
game- The game to check