GameWindow Control: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 13: Line 13:
</control>
</control>
</syntaxhighlight>
</syntaxhighlight>
=== Available tags and attributes ===
In addition to the [[Default Control Tags|default control tags]], the following tags are available. Note that each tag is '''lower case only.''' This is important, as xml tags are case-sensitive.
{| class="prettytable"
! Tag !! Description
|-
|  '''videofilter'''
|  Used video filter (eg. Bilinear)
|-
|  '''stretchmode'''
|  Stretch mode value (eg. Normal, Fullscreen, Original size)
|-
|  '''rotation'''
|  Screen rotation value (eg. 90°, 180°)
|}
<section end="main content" />
<section end="main content" />



Latest revision as of 21:36, 26 October 2018

The GameWindow a screenshot of the currently playing game, with the filter, stretch mode and rotation settings applied.

Example

<control type="gamewindow">
    <left>10</left>
    <top>10</top>
    <width>444</width>
    <height>250</height>
    <videofilter>$INFO[ListItem.Property(game.videofilter)]</videofilter>
    <stretchmode>$INFO[ListItem.Property(game.stretchmode)]</stretchmode>
    <rotation>$INFO[ListItem.Property(game.videorotation)]</rotation>
</control>


Available tags and attributes

In addition to the default control tags, the following tags are available. Note that each tag is lower case only. This is important, as xml tags are case-sensitive.

Tag Description
videofilter Used video filter (eg. Bilinear)
stretchmode Stretch mode value (eg. Normal, Fullscreen, Original size)
rotation Screen rotation value (eg. 90°, 180°)


See also

Development: