FontIcon Asset: Difference between revisions
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
[[Category:Assets]] | [[Category:Assets]] | ||
[[Category:BO2]] | [[Category:BO2]] | ||
The fonticon asset was added on Black Ops 2 and appears to hold information pertaining to icons in a font asset | The fonticon asset was added on Black Ops 2 and appears to hold information pertaining to icons in a font asset. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
struct FontIconName | struct FontIconName | ||
Latest revision as of 01:09, 21 December 2014
The fonticon asset was added on Black Ops 2 and appears to hold information pertaining to icons in a font asset.
struct FontIconName
{
const char *string;
int hash;
};
struct FontIconEntry
{
FontIconName fontIconName;
Material *fontIconMaterialHandle;
int fontIconSize;
float xScale;
float yScale;
};
struct FontIconAlias
{
int aliasHash;
int buttonHash;
};
struct FontIcon
{
const char * name;
int numEntries;
int numAliasEntries;
FontIconEntry *fontIconEntry;
FontIconAlias *fontIconAlias;
};