EvilEngine/UIFT: Difference between revisions

Content added Content deleted
Battlepedia>Seil
No edit summary
Battlepedia>Seil
Line 8: Line 8:


==Format==
==Format==
UI Fonts are [[Placeable Asset|placeable assets]]. Some notes on the 0x54 byte header:
UI Fonts are based on [[UI]] assets, which are based on [[Placeable Asset|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 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).
Line 14: Line 14:
* The four asset IDs (0x0C, 0x10, 0x4C, 0x50) are always null. UI Fonts do not use models.
* The four asset IDs (0x0C, 0x10, 0x4C, 0x50) are always null. UI Fonts do not use models.


Following the header:
Notes on the UI data:
* All known possible values for uiFlags: 44, 48, 52, 54, 55, and 60.

Following the placeable header and the UI data:


{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Description
! Offset !! Type !! Variable !! 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]] ([[RWTX|Texture]]) || '''Texture'''. Usually null (except for one instance in mnu4.hip). Unknown whether this is actually used or not.
|-
|-
| 0x80 || short || '''uiFontFlags''' ||
| 0x60 || [[Vector2]] || Texture Coordinate (Top Left)
|-
|-
| 0x82 || byte || '''mode''' ||
| 0x68 || [[Vector2]] || Texture Coordinate (Top Right)
|-
|-
| 0x83 || byte || '''fontID''' || maybe the same as '''Font''' in [[game_object:text_box]]?
| 0x70 || [[Vector2]] || Texture Coordinate (Bottom Right)
|-
|-
| 0x84 || [[AssetID]] ([[TEXT|Text]]) || '''textAssetID''' ||
| 0x78 || [[Vector2]] || Texture Coordinate (Bottom Left)
|-
|-
| 0x80 || short[2] || Unknown.
| 0x88 || [[Color]] || '''bcolor''' ||
|-
|-
| 0x84 || [[AssetID]] ([[TEXT|Text]]) || '''Text'''.
| 0x8C || [[Color]] || '''color''' ||
|-
|-
| 0x88 || [[Color]] || '''Backdrop color'''.
| 0x90 || short[4] || '''inset''' ||
|-
|-
| 0x8C || [[Color]] || '''Color''' of the text.
| 0x98 || short[2] || '''space''' ||
|-
|-
| 0x90 || short[8] || Unknown.
| 0x9C || short[2] || '''cdim''' ||
|-
|-
| 0xA0 || int || null
| 0xA0 || int || '''max_height''' ||
|-
|-
! colspan="3" | Events
! colspan="4" | Events
|-
|-
| 0xA4 || Event[numberOfEvents] || '''[[Events]]'''
| 0xA4 || Event[numberOfEvents] || '''[[Events]]''' ||
|}
|}