EvilEngine/UIFT: Difference between revisions

m
Seil moved page UIFT to EvilEngine/UIFT
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...")
 
m (Seil moved page UIFT to EvilEngine/UIFT)
 
(12 intermediate revisions by 3 users not shown)
Line 1:
<onlyinclude>
{{#vardefine:typeid|UIFT}}<nowiki/>
{{#vardefine:name|UI Font}}<nowiki/>
{{#vardefine:type|[[Entity]]}}<nowiki/>
{{#vardefine:basetype|0x21}}<nowiki/>
{{#vardefine:games|Scooby BFBB}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zUIFont.h zUIFont.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}
 
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 based on [[PlaceableUI]] Assetassets, which are based on [[Entity|placeableentity 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).
Line 8 ⟶ 19:
* The four asset IDs (0x0C, 0x10, 0x4C, 0x50) are always null. UI Fonts do not use models.
 
FollowingNotes on the headerUI data:
| 0x54 || int || Unknown.* All known possible values for uiFlags: 44, 48, 52, 54, 55, and 60.
 
Following the placeable header and the UI data:
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x80 || short || '''uiFontFlags''' ||
| 0x54 || int || Unknown. All known possible values: 44, 48, 52, 54, 55, and 60.
|-
| 0x580x82 || shortbyte || '''Widthmode''' in pixels.||
|-
| 0x5A0x83 || shortbyte || '''HeightfontID''' || maybe the same as '''Font''' in pixels.[[game_object:text_box]]?
|-
| 0x5C0x84 || [[AssetID]] ([[RWTXTEXT|TextureText]]) || '''TexturetextAssetID'''. Usually null (except for one instance in mnu4.hip). Unknown whether this is actually used or not.||
|-
| 0x88 || [[Color]] || '''bcolor''' ||
| 0x60 || float[8] || Unknown. Always [0,0,1,0,1,1,0,1]
|-
| 0x800x8C || short[2[Color]] || Unknown.'''color''' ||
|-
| 0x840x90 || short[[AssetID]4] ([[TEXT|Text]]) || '''Textinset'''. ||
|-
| 0x880x98 || byteshort[42] || Unknown.'''space''' ||
|-
| 0x8C0x9C || UIColorshort[2] || '''Colorcdim''' of the text.||
|-
| 0x900xA0 || short[8]int || Unknown.'''max_height''' ||
|-
! colspan="34" | Events
| 0xA0 || int || null
|-
| 0xA4 || Event[numberOfEvents] || '''[[Events]]''' ||
! colspan="3" | Events
|-
| 0xA4 || Event[numberOfEvents] || '''[[Events]]'''
|}
 
Line 55 ⟶ 67:
* PadPressRight
* PadPressLeft
* FontBackdropOn
* FontBackdropOff
* UI Select
* UI Unselect
Line 61 ⟶ 75:
* UI Focus On+Select
* UI Focus Off+Unselect
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]