LaunchBoxContributors
On this page

IGameBadge10.11

Interface in Unbroken.LaunchBox.Plugins.Data

C#
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 system
  • IndexThe index of where to display the badge in the list
  • NameThe 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

C#
Image DefaultIcon { get; }
The default image icon to display for the badge; can be overridden by the user in the file system

Index

C#
int Index { get; set; }
The index of where to display the badge in the list

Name

C#
string Name { get; }
The user-friendly (and hopefully translated) name of the badge (displays with a tooltip)

UniqueId

C#
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

C#
bool GetAppliesToGame(IGame game)
Gets a value specifying whether or not this badge applies to the specified game
game
The game to check

Returns

A boolean value specifying whether or not this badge applies to the game specified