FontIcon Asset: Difference between revisions

From COD Engine Research
Created page with "__NOTOC__ Category:Assets Category:BO2 The fonticon asset was added on Black Ops 2 and appears to hold information pertaining to icons in a font asset. This would expl..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
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. 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.
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 unknownFontIconStructInternal
struct FontIconName
{
{
   char * unknownString;
   const char *string;
   int unknown;
   int hash;
};
};


struct unknownFontIconStruct
struct FontIconEntry
{
{
   unknownFontIconStructInternal * unknownEmbeddedStruct;
   FontIconName fontIconName;
   Material * unknownMaterial;
   Material *fontIconMaterialHandle;
   char unknown[0xC];
  int fontIconSize;
  float xScale;
  float yScale;
};
 
struct FontIconAlias
{
  int aliasHash;
   int buttonHash;
};
};


Line 20: Line 28:
{
{
   const char * name;
   const char * name;
   unsigned int unknownCount1;
   int numEntries;
   unsigned int unknownCount2;
   int numAliasEntries;
   unknownFontIconStruct * unknownStructArray; //Count = unknownCount1
   FontIconEntry *fontIconEntry;
   char * unknown; //Size = unknownCount2 << 3
   FontIconAlias *fontIconAlias;
};
};
</syntaxhighlight>
</syntaxhighlight>

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