EvilEngine/DYNA/ui:text: Difference between revisions
< EvilEngine | DYNA
Content added Content deleted
m (Seil moved page DYNA/ui:text to EvilEngine/DYNA/ui:text) |
No edit summary |
||
Line 8: | Line 8: | ||
</onlyinclude> |
</onlyinclude> |
||
{{AutoDynaInfobox}} |
{{AutoDynaInfobox}} |
||
==Format== |
|||
Inherits from [[EvilEngine/DYNA/ui:asset|DYNA/ui:asset]] |
|||
<source lang=cpp> |
|||
class zUITextAsset : public zUIAsset |
|||
{ |
|||
public: |
|||
unsigned int textID; |
|||
unsigned char font; |
|||
unsigned char fontSizeW; |
|||
unsigned char fontSizeH; |
|||
unsigned char fontSpacingX; |
|||
unsigned char fontSpacingY; |
|||
unsigned char textBoxInsetTop; |
|||
unsigned char textBoxInsetLeft; |
|||
unsigned char textBoxInsetRight; |
|||
unsigned char textBoxInsetBottom; |
|||
unsigned char justifyX; |
|||
unsigned char justifyY; |
|||
unsigned char textFlags; |
|||
xColor_tag shadowColor; |
|||
float shadowOffsetX; |
|||
float shadowOffsetY; |
|||
float textScaleX; |
|||
float textScaleY; |
|||
}; |
|||
</source> |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Type !! Variable !! Description |
! Offset !! Type !! Variable !! Description |
||
|- |
|- |
||
| |
| 0x50 || [[TEXT]] || '''textID''' || '''Text_AssetID''' |
||
|- |
|- |
||
| |
| 0x54 || u8 || '''font''' || |
||
|- |
|- |
||
| |
| 0x55 || u8 || '''fontSizeW''' || |
||
|- |
|- |
||
| |
| 0x56 || u8 || '''fontSizeH''' || |
||
|- |
|- |
||
| |
| 0x57 || u8 || '''fontSpacingX''' || |
||
|- |
|- |
||
| |
| 0x58 || u8 || '''fontSpacingY''' || |
||
|- |
|- |
||
| |
| 0x59 || u8 || '''textBoxInsetTop''' || |
||
|- |
|- |
||
| |
| 0x5A || u8 || '''textBoxInsetLeft''' || |
||
|- |
|- |
||
| |
| 0x5B || u8 || '''textBoxInsetRight''' || |
||
|- |
|- |
||
| |
| 0x5C || u8 || '''textBoxInsetBottom''' || |
||
|- |
|- |
||
| |
| 0x5D || u8 || '''justifyX''' || |
||
|- |
|- |
||
| |
| 0x5E || u8 || '''justifyY''' || |
||
|- |
|- |
||
| |
| 0x5F || u8 || '''textFlags''' || |
||
|- |
|- |
||
| |
| 0x60 || [[Color]] || '''shadowColor''' || |
||
|- |
|- |
||
| |
| 0x64 || f32 || '''shadowOffsetX || |
||
|- |
|- |
||
| |
| 0x68 || f32 || '''shadowOffsetY''' || |
||
|- |
|- |
||
| |
| 0x6C || f32 || '''textScaleX''' || |
||
|- |
|- |
||
| |
| 0x70 || f32 || '''textScaleY''' || |
||
|} |
|} |
||
Latest revision as of 16:35, 23 March 2024
ui:text | |
---|---|
Version | 2 |
Hash | 0xBD7646D7 |
Games used | The SpongeBob SquarePants Movie The Incredibles |
Format
Inherits from DYNA/ui:asset
class zUITextAsset : public zUIAsset
{
public:
unsigned int textID;
unsigned char font;
unsigned char fontSizeW;
unsigned char fontSizeH;
unsigned char fontSpacingX;
unsigned char fontSpacingY;
unsigned char textBoxInsetTop;
unsigned char textBoxInsetLeft;
unsigned char textBoxInsetRight;
unsigned char textBoxInsetBottom;
unsigned char justifyX;
unsigned char justifyY;
unsigned char textFlags;
xColor_tag shadowColor;
float shadowOffsetX;
float shadowOffsetY;
float textScaleX;
float textScaleY;
};
Offset | Type | Variable | Description |
---|---|---|---|
0x50 | TEXT | textID | Text_AssetID |
0x54 | u8 | font | |
0x55 | u8 | fontSizeW | |
0x56 | u8 | fontSizeH | |
0x57 | u8 | fontSpacingX | |
0x58 | u8 | fontSpacingY | |
0x59 | u8 | textBoxInsetTop | |
0x5A | u8 | textBoxInsetLeft | |
0x5B | u8 | textBoxInsetRight | |
0x5C | u8 | textBoxInsetBottom | |
0x5D | u8 | justifyX | |
0x5E | u8 | justifyY | |
0x5F | u8 | textFlags | |
0x60 | Color | shadowColor | |
0x64 | f32 | shadowOffsetX | |
0x68 | f32 | shadowOffsetY | |
0x6C | f32 | textScaleX | |
0x70 | f32 | textScaleY |