EvilEngine/DYNA/ui:image: Difference between revisions

Content added Content deleted
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 zUIImageAsset : public zUIAsset
{
public:
unsigned int image;
float u1;
float v1;
float u2;
float v2;
float u3;
float v3;
float u4;
float v4;
float rotation;
unsigned short iflags;
unsigned char addressModeU;
unsigned char addressModeV;
xColor_tag color1;
xColor_tag color2;
xColor_tag color3;
xColor_tag color4;
};
</source>


{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x00 || [[RWTX]] || '''image''' || '''Texture_AssetID'''
| 0x50 || [[RWTX]] || '''image''' || '''Texture_AssetID'''
|-
|-
| 0x04 || float || '''u1''' ||
| 0x54 || f32 || '''u1''' ||
|-
|-
| 0x08 || float || '''v1''' ||
| 0x58 || f32 || '''v1''' ||
|-
|-
| 0x0C || float || '''u2''' ||
| 0x5C || f32 || '''u2''' ||
|-
|-
| 0x10 || float || '''v2''' ||
| 0x60 || f32 || '''v2''' ||
|-
|-
| 0x14 || float || '''u3''' ||
| 0x64 || f32 || '''u3''' ||
|-
|-
| 0x18 || float || '''v3''' ||
| 0x68 || f32 || '''v3''' ||
|-
|-
| 0x1C || float || '''u4''' ||
| 0x6C || f32 || '''u4''' ||
|-
|-
| 0x20 || float || '''v4''' ||
| 0x70 || f32 || '''v4''' ||
|-
|-
| 0x24 || float || '''rotation''' ||
| 0x74 || f32 || '''rotation''' ||
|-
|-
| 0x28 || ushort || '''iflags''' || 1 - Unknown<br>2 - Transparent
| 0x78 || u16 || '''iflags''' || 1 - Unknown<br>2 - Transparent
|-
|-
| 0x2A || char || '''addreasMoveU''' ||
| 0x7A || u8 || '''addreasMoveU''' ||
|-
|-
| 0x2B || char || '''addreasMoveV''' ||
| 0x7B || u8 || '''addreasMoveV''' ||
|-
|-
| 0x2C || color_tag || '''color1''' ||
| 0x7C || [[Color]] || '''color1''' ||
|-
|-
| 0x30 || color_tag || '''color2''' ||
| 0x80 || [[Color]] || '''color2''' ||
|-
|-
| 0x34 || color_tag || '''color3''' ||
| 0x84 || [[Color]] || '''color3''' ||
|-
|-
| 0x38 || color_tag || '''color4''' ||
| 0x88 || [[Color]] || '''color4''' ||
|}
|}