FontIcon Asset

From COD Engine Research
Revision as of 00:54, 21 December 2014 by CraigChrist8239 (talk | contribs)

The fonticon asset was added on Black Ops 2 and appears to hold information pertaining to icons in a font asset. This would explain why Black Ops 2 is the only game with a changed font asset structure. Since this asset is so new, the specifics to it are still unknown.

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;
};