LCDs

From Official Kodi Wiki
Revision as of 16:19, 26 June 2006 by >Dankula
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The LCD.xml file is used for customizing the output of the LCD Display. You can find the LCD Customization file in XBMC\UserData\LCD.xml on your Xbox.

General

The file contains several sections representing each functions:

  • Navigation (Used for Navigation in menus)
  • Music (Used when listening to music)
  • Video (Used when watching videos)
  • General (General Display, when no activity)

Each section describes how the LCD Display will look, when listening to Music, watching Videos, navigating through the menus and for general display.

Each section contains four lines, representing each line on a normal 4x20 LCD Display.


Example

<xml>

 <Music>
    <line>$INFO[LCD.PlayIcon] $INFO[Player.Time]/$INFO[Player.Duration]</line>
    <line>$INFO[MusicPlayer.Title]</line>
    <line>$INFO[MusicPlayer.Artist]</line>
    <line>$INFO[MusicPlayer.Album] ($INFO[MusicPlayer.Year])</line>
 </Music>

</xml>

The Output on the LCD Display for the above example will look like this:

 > 00:42/3:20
 Gold Digger
 Kanye West feat. Jamie Foxx
 Late Registration (2005)

Each line can contain any text and any Infolabels used for skinning. If the output line on the LCD Display contains more than 20 characters (for a standard 4x20 LCD Display) then the complete line gets automatically scrolled through the Display. There is more information on how XBMC parses the <line> tags here.


Variables

Variable $INFO[InfoLabel]
See InfoLabels for a complete list of InfoLabels which you can use for LCD Output.
Variable $LOCALIZE[ID]
You can also use the variable $LOCALIZE[ID] which does a lookup in the language file strings.xml for the [ID] and displays the corresponding text on the LCD Display.


LCD InfoLabels

In addition to the normal InfoLabels, you can use special LCD InfoLabels, which are displaying only the corresponding values without additional text. This is very helpful to display more information in one line at the same time and to avoid scrolling of the specified line.


LCD Infolabel Function
LCD.PlayIcon Displays the Play / Stop / Pause / FF / REW Icon
LCD.ProgressBar Displays a progress bar of the currently played item
LCD.CPUTemperature Displays only the value for CPU Temperature with no additional text
LCD.GPUTemperature Displays only the value for GPU Temperature with no additional text
LCD.FanSpeed Displays only the value for Fan Speed with no additional text
LCD.Date Displays only the current Date with no additional text
LCD.GetFreeSpace(Drive) Displays only the value for remaining free space on the Drive (C, E, F, G) with no additional text


When there is no value available in XBMC for a specific Infolabel when playing back music/videos/etc.., then the line on the LCD Display would be empty.
In this case the next line will be displayed instead of the previous line. This avoids displaying empty lines on the LCD Display.