Brlyt Documentation
From WADder Wiki
Contents |
brylt files
A guide to working with these files is maintained here.
lyt1
Defines the screen resolution to print the elements on.
- <a> counter, purpose unknown
- <size> Screen resolution in pixels
- <width> Width in pixels
- <height> Height in pixels
txl1
Lists the associated image names
- <entries> Generic entry header
- <name> Lists the filename of the associated images
- <entries> Generic entry header
fnl1
Specifies a brfont file for use in plain text rendering
- <entries>
mat1
Defines the materials. Materials are essentially layers containing specified elements. Material entries contain images and other elements, which must be specified in txl1. Materials do not need to contain images, and can contain data for overlays, strokes, text or other animation effects.
- <entries name=""> Defines the name of a material sheet
- <colors> Specifies colours to apply to the element
- <forecolor> Four sequential tags from 0 to 255 representing RGBA values. Multiplies the color over the black part of the Alpha Channel.
- <backcolor> Four sequential tags from 0 to 255 representing RGBA values. Multiplies the color over the white part of the Alpha Channel.
- <unk2> Four sequential tags from 0 to 255 representing RGBA values. Unconfirmed as representing unknown color values within an image.
- <tev_k> Four sequential tags from 0x00000000 to 0xFFFFFFFF. Defines the vertex colours. Essentially, the colours of each corner.
- <flags> A 4 byte flag. Unknown values.
- <texture name=""> Image file from the txl1, if there is one
- <wrap_s> Open_GL wrap tag for X
- <wrap_t> Open_GL wrap tag for Y
- 00 = No wrap. Repeats edges if picture is too small. (Clamp)
- 01 = Repeats. Continuously repeats the image across the panel while keeping orientation. (Repeat)
- 02 = Mirrors. Mirrors across the panel, print the following image as a reverse of the previous. (Mirror)
- 03 = MaxTex. I.... don't know what this is.
- <texture_coords> Specifies values to apply to element, change if using wrap tags.
- <x1> = usually set to 0.0000000000
- <y1> = usually set to 0.0000000000
- <angle> = usually set to 0.0000000000
- <x2> = usually set to 1.0000000000, if using <wrap_s> enter the amount of times the image needs to repeat to fill.
- <y2> = usually set to 1.0000000000, if using <wrap_t> enter the amount of times the image needs to repeat to fill.
- <uaX> Unknown tags, where X represents a value. Contains some sort of data tags.
- <colors> Specifies colours to apply to the element
- <entries name=""> Defines the name of a material sheet
pan1
Defines the panes. Each brlyt must contain a RootPane as the base, with other panes placed on top. Panels can contain multiple materials for manipulation by the brlan file. Each pan1 is associated with a pas1 and a pae1 file. Pan1 tags are also found within all sections associated with pan1. Referred for size constraints.
- <flags> Flags to determine the type of panel. This alters how the images are rendered in widescreen and 4:3.
- <flags>01-04</flags> - used for RootPane? Unknown effect
- <flags>03-04</flags> - Does not adjust pane - x dimensions are fat on widescreen and normal on 4:3
- <flags>05-04</flags> - Reduces x dimensions to 75% when Wii is set to widescreen mode, no adjustment for 4:3
- "x dimensions" includes image width and x coordinates. If you have a pane and a child pane there is no need to use 05-04 on both of them, otherwise it doubles up and the image will be too narrow even on widescreen TV.
- To be confirmed - using these flags appropriately an image can be set to resize to fit 16:9 and 4:3 or is can be set to be cropped to fit a 4:3 screen. This behaviour is seen in Lonpos (WiiWare) icon and banner.
- <alpha> Displays the alpha range. If unsure, keep this value as FF-00
- <coords> Defines the location of the center of the pane relative to the parent pane. RootPane is relative to the size of the screen.
- <x><y><z> x, y, and z co-ordinates in pixels
- <flip> Flips the panel.
- <x><y> x and y reflection point in pixels
- <rotate> Rotates the image, measured in degree. Support positive and negative degrees.
- <zoom> Resizes the image by multipliers. 1.0 = Normal size, 2.0 = x2 size, 0.5 = Half size, etc.
- <x><y> x and y multipliers
- <size> Determines the size in pixels of the pane. Should not be smaller than any associated image, or larger than the screen resolution.
- <width> Width in pixels
- <height> Height in pixels
pas1
Marks the beginning of a panel. Subsequent tags will be contained on the panel.
pic1
An element for use within a panel structure. Identifies a picture.
- Common elements to pan1 (all)
- <tpl name=""> Defines the name of the material sheet referring to the desired image.
- <colors>
- <vtx> Four sequential tags from 0x00000000 to 0xFFFFFFFF. Vertex colours, leave at 0xFFFFFFFF if unsure.
- <coordinates> Please see: brlyt coordinates
txt1
An element for use within a panel structure. Identifies text.
- Common elements to pan1 (all)
- <length> Number of characters in hex. Not certain why it repeats it twice.
- Index number for the font
- <xsize> Unconfirmed. Suspect spacing in pixels.
- <ysize> Unconfirmed. Suspect leading in pixels.
- <charsize> Uncofirmed. Likely size of the characters.
- <linesize> Unconfirmed. Likely either line maximum dimension or baseline.
- <unk> Unknown
- <color> Color in hex. RRBBGGAA, where R = Red, B = Blue, G = Green, and A = Alpha. Not certain why this repeats.
- <text> The text line in UTF16 Big Endian hex.
bnd1
An element for use within the panel structure. Unknown use.
- Common elements to pan1 (all)
- no other tags
pae1
Marks the end of a panel. Nested panels become child panels.
grp1
Defines a group of panels and/or materials.
- <subs> Contains group members
- A specific group member, referenced by name.
- <subs> Contains group members
grs1
Deliminates a group of groups. No tags.
gre1
Defines the end of a group of groups.
===Sample xmlyt===
