= MythUIThemeFormat =
Just to start documenting things.. All numbers that refer to on-screen position/size are automatically adjusted for the UI size. Boolean values can be 'yes', 'no', '1', '0', etc.
== Fonts ==
will be changing slightly.. currently is:
{{{
11
9
13
#ffffff
#000000
2,2
64
#888888
2
64
yes
yes
yes
#444444
}}}
== General widget modifiers ==
Items that are valid for every subtype
{{{
x,y
}}}
Position on screen, relative to parent.
Valid widget types are:
* imagetype
* textarea
* listbutton
* horizontallistbutton
* statetype
== Images ==
Standard image example:
{{{
imagefile.png
width,height
x,y
}}}
* filename is the filename.
* staticsize forces scaling the image to that particular size.
* skipin starts drawing from coords given in the source image.
Animated image example:
{{{
imagefile%1.png
500
}}}
* Loads images imagefile0.png through imagefile30.png, and displays them sequentially 500 msecs apart.
An image must have either a filename or filepattern element. Everything else is optional.
== Text Areas ==
{{{
}}}
* area - area on screen
* value - the text to be displayed
* altarea - alternative area (ie., watch recordings screen, the description is larger if there is no video preview).
* font - name of a pre-defined font
* cutdown - if the text will be cut down ('...' replacing the end) if it's too large to fit, or just cut off
* multiline - wrap text onto multiple lines
* align - possible values are center, right, left, allcenter (v + h), vcenter, hcenter
* colorcycle - oscillate between the start and end values, with X steps in between (approx 30 steps per second).
All values optional except area, font, and value.
== State Types ==
State Types are collections of types that display different states - like the watermark image on the main menus.
By name (valid names depend on context):
{{{
yes
selectimage.png
normalimage.png
}}}
By type (valid types are: 'none', 'off', 'half', full', and what's used depends on context):
{{{
yes
offimage.png
fullimage.png
}}}
* showempty - allow empty states to be displayed (show nothing, that is).
== Button List ==
{{{
x,y,w,h
fontname
fontname
lb-uparrow-reg.png
lb-dnarrow-reg.png
lb-dnarrow-reg.png
lb-dnarrow-sel.png
yes
5
5
yes
}}}
A Horizontal buttonlist has one additional config:
{{{
... same as above ...
3
}}}
= Inheritance =
Widgets can be inherited from previously defined widgets of the same type. For example:
{{{
x,y,w,h
}}}