News About Download Screenshots Documentation ROCK Linux

Welcome to LVP

ROCK Linux Logo
stupid LVP image

Please select your movie

Navigation

<item type="button">...</item>

The tag <item type="button"> displays a button at the screen.

 

It takes the following parameters, one per line:

  • <color ... />
    Specifies the color the button will have. Takes three arguments r="" g="" and b="" specifying the red green and blue value respectively as a floating point decimal between 0.0 and 1.0.
    Examples:
    <color r="1.0" g="0.5" b="0.5" />
    Bright Red
    <color r="0.0" g="0.0" b="1.0" >
    Blue
  • <mousecolor ... />
    Specifies the color the button will have while the mouse is hovering above it. Takes three arguments r="" g="" and b="" specifying the red green and blue value respectively as a floating point decimal between 0.0 and 1.0.
    Examples:
    <mousecolor r="1.0" g="0.5" b="0.5" />
    Bright Red
    <mousecolor r="0.0" g="0.0" b="1.0" >
    Blue
  • <textcolor ... />
    Specifies the color the button's text will have. Takes three arguments r="" g="" and b="" specifying the red green and blue value respectively as a floating point decimal between 0.0 and 1.0.
    Examples:
    <textcolor r="1.0" g="0.5" b="0.5" />
    Bright Red
    <textcolor r="0.0" g="0.0" b="1.0" >
    Blue
  • <position ... />
    Specifies the center of the button. Takes two arguments x="" and y="" specifying the X and Y coordinates respectively as a floating point value.
    Examples:
    <position x="0.0" y="0.0" />
    Places the button at the center of the screen
    <position x="-40.0" y="-40.0" />
    Places the button in the top left part of the screen.
    <position x="40.0" y="40.0" />
    Places the button in the lower right part of the screen.
  • <size ... />
    Specifies the size of the button. Takes two arguments w="" and h="" specifying the width and height respectively as a floating point value.
    Examples:
    <size w="40.0" h="20.0" />
    Makes the button twice as wide as it its height.
    <size w="10.0" h="50" />
    Makes the button a thin, vertical line.
  • <text>...</text>
    Specifies the text to be displayed on to of the button.
    Examples:
    <text>Hello World!</text>
    Displays "Hello World!"
  • <action>...</action>
    Specifies the action that is to be taken when the button is pressed.
    Examples:
    <action>/usr/bin/mplayer -fs -zoom '/data/video/trailer/Return of the King.avi'</action>
    Uses /usr/bin/mplayer to play the file '/data/video/trailer/Return of the King.avi' in fullscreen mode with software zooming if necessary (note that -fs and -zoom are parameters to mplayer and NOT LVP)
Design © Clifford Wolf <clifford at clifford dot at>
LVP © Benjamin Schieder <blindcoder at scavenger dot homeip dot net>