EvilEngine/UIFT: Difference between revisions
Content added Content deleted
Battlepedia>Seil (Created page with "A '''UI Font''' is a text element that is drawn to the screen, on top of everything else in the scene. It can accept user input. ==Format== UI Fonts are Placeable Asset|pla...") |
Battlepedia>Seil No edit summary |
||
Line 27: | Line 27: | ||
| 0x84 || [[AssetID]] ([[TEXT|Text]]) || '''Text'''. |
| 0x84 || [[AssetID]] ([[TEXT|Text]]) || '''Text'''. |
||
|- |
|- |
||
| 0x88 || |
| 0x88 || UIColor || '''Backdrop color'''. |
||
|- |
|- |
||
| 0x8C || UIColor || '''Color''' of the text. |
| 0x8C || UIColor || '''Color''' of the text. |
||
Line 55: | Line 55: | ||
* PadPressRight |
* PadPressRight |
||
* PadPressLeft |
* PadPressLeft |
||
* FontBackdropOn |
|||
* FontBackdropOff |
|||
* UI Select |
* UI Select |
||
* UI Unselect |
* UI Unselect |
Revision as of 03:24, 14 November 2018
A UI Font is a text element that is drawn to the screen, on top of everything else in the scene. It can accept user input.
Format
UI Fonts are placeable assets. Some notes on the 0x54 byte header:
- The rotation, scale, and color are all ignored. By default, the rotation is (0,0,0), scale is (1,1,1), and color is (1,1,1,1).
- The position is measured in screen space. The XY coordinates are measured in pixels, (0,0) being the top left corner of the screen. The Z coordinate represents depth and is used to determine the draw order (a UI Font with a higher depth will be drawn behind one with a lower depth).
- The four asset IDs (0x0C, 0x10, 0x4C, 0x50) are always null. UI Fonts do not use models.
Following the header:
Offset | Type | Description |
---|---|---|
0x54 | int | Unknown. All known possible values: 44, 48, 52, 54, 55, and 60. |
0x58 | short | Width in pixels. |
0x5A | short | Height in pixels. |
0x5C | AssetID (Texture) | Texture. Usually null (except for one instance in mnu4.hip). Unknown whether this is actually used or not. |
0x60 | float[8] | Unknown. Always [0,0,1,0,1,1,0,1] |
0x80 | short[2] | Unknown. |
0x84 | AssetID (Text) | Text. |
0x88 | UIColor | Backdrop color. |
0x8C | UIColor | Color of the text. |
0x90 | short[8] | Unknown. |
0xA0 | int | null |
Events | ||
0xA4 | Event[numberOfEvents] | Events |
Events
- PadPressX
- PadPressSquare
- PadPressO
- PadPressTriangle
- PadPressL1
- PadPressL2
- PadPressR1
- PadPressR2
- PadPressStart
- PadPressSelect
- PadPressUp
- PadPressDown
- PadPressRight
- PadPressLeft
- FontBackdropOn
- FontBackdropOff
- UI Select
- UI Unselect
- UI Focus On
- UI Focus Off
- UI Focus On+Select
- UI Focus Off+Unselect