| 1 |
/*! |
| 2 |
|
| 3 |
\page Game_Controller_List Game Controller List |
| 4 |
\brief **Used to display a list of game controllers, allowing for special effects such as controller highlighting and port selection.** |
| 5 |
|
| 6 |
\tableofcontents |
| 7 |
|
| 8 |
The game controller list is used for displaying a list of game controllers. |
| 9 |
It is provided as a container to allow for special behavior of the inner game |
| 10 |
controllers, such as visualizing the current in-game port for each controller |
| 11 |
in the <b>`GameAgents`</b> dialog. |
| 12 |
|
| 13 |
The control was introduced in v21 to support the new Player Viewer (<b>`GameAgents`</b>) dialog. |
| 14 |
|
| 15 |
|
| 16 |
-------------------------------------------------------------------------------- |
| 17 |
\section Game_Controller_List_sect1 Example |
| 18 |
|
| 19 |
~~~~~~~~~~~~~ |
| 20 |
<control type="gamecontrollerlist"> |
| 21 |
<description>My first game controller list, showing two items: A "controller disconnected" icon and a SNES controller</description> |
| 22 |
<width>192</width> |
| 23 |
<height>96</height> |
| 24 |
<orientation>horizontal</orientation> |
| 25 |
<align>left</align> |
| 26 |
<itemlayout width="96" height="96"> |
| 27 |
<control type="gamecontroller"> |
| 28 |
<texture>$INFO[ListItem.Icon]</texture> |
| 29 |
<controllerid>$INFO[ListItem.Property(controllerid)]</controllerid> |
| 30 |
</control> |
| 31 |
</itemlayout> |
| 32 |
<focusedlayout width="96" height="96"> |
| 33 |
<control type="gamecontroller"> |
| 34 |
<texture>$INFO[ListItem.Icon]</texture> |
| 35 |
<controllerid>$INFO[ListItem.Property(controllerid)]</controllerid> |
| 36 |
</control> |
| 37 |
</focusedlayout> |
| 38 |
<content> |
| 39 |
<item> |
| 40 |
<icon>DefaultAddonNone.png</icon> |
| 41 |
</item> |
| 42 |
<item> |
| 43 |
<property name="controllerid">game.controller.snes</property> |
| 44 |
</item> |
| 45 |
</content> |
| 46 |
</control> |
| 47 |
~~~~~~~~~~~~~ |
| 48 |
|
| 49 |
|
| 50 |
-------------------------------------------------------------------------------- |
| 51 |
\section Game_Controller_sect2 Available tags |
| 52 |
|
| 53 |
The [default control](http://kodi.wiki/view/Default_Control_Tags) tags are |
| 54 |
applicable to this control. Note that each tag is lower case only. This is |
| 55 |
important, as xml tags are case-sensitive. |
| 56 |
|
| 57 |
The game controller list derives from a \ref List_Container "List Container", so |
| 58 |
all list tags and attributes can be used. |
| 59 |
|
| 60 |
In addition, the following game-related tags are available: |
| 61 |
|
| 62 |
| Tag | Description | |
| 63 |
|------------------:|:--------------------------------------------------------------| |
| 64 |
| align | Align controllers to the <b>`left`</b> or <b>`right`</b>, depending on how many in-game ports are available. Only used in-game for list item content provided by core, such as in the Player Viewer (<b>`GameAgents`</b>) dialog. Ignored if static content is provided. |
| 65 |
|
| 66 |
@skinning_v21 Game Controller List was added. |
| 67 |
|
| 68 |
|
| 69 |
-------------------------------------------------------------------------------- |
| 70 |
\section Game_Controller_List_sect3 See also |
| 71 |
|
| 72 |
#### Development: |
| 73 |
|
| 74 |
- [Add-on development](http://kodi.wiki/view/Add-on_development) |
| 75 |
- [Skinning](http://kodi.wiki/view/Skinning) |
| 76 |
|
| 77 |
*/ |