view GUIFont.h @ 39:c3a02d80c84c

no skill screen crash
author zipi
date Sun, 20 Jan 2013 19:32:08 +0000
parents 9c0607679772
children 91fa025e6ca6
line wrap: on
line source

#pragma once


/*  171 */
#pragma pack(push, 1)
struct GUICharMetric
{
  unsigned int uLeftSpacing;
  unsigned int uWidth;
  unsigned int uRightSpacing;
};
#pragma pack(pop)

/*  170 */
#pragma pack(push, 1)
struct GUIFont
{
  bool IsCharValid(char c);
  int AlignText_Center(unsigned int uCenterX, const char *pString);
  int GetLineWidth(const char *pString);
  int CalcTextHeight(const char *pString, struct GUIWindow *pWindow, int a4, int a5);
  int GetStringHeight2(GUIFont *a2, const char *Str, int a4, int a5, int a6);
  int _44C6C2(const char *pInString, GUIWindow *pWindow, unsigned int uX, int a5);
  void _44D0B5(int a2, int a3, int a4, const char *pString, int a6);
  void DrawTextLine(unsigned int uDefaultColor, signed int uX, signed int uY, const char *Str, int a6);
  void _44D2FD_prolly_draw_credits_entry(GUIFont *pFont, int Str, int a4, unsigned int w, unsigned int h, unsigned __int16 a7, unsigned __int16 a8, const char *pString, unsigned __int16 *pPixels, unsigned int uPixelsWidth);

  static char *__fastcall _44C933(const char *pString, GUIFont *pFont, GUIFont *a3, int a4, int a5, int a6);

  unsigned char cFirstChar;
  unsigned char cLastChar;
  char field_2;
  char field_3;
  char field_4;
  __int16 uFontHeight;
  char field_7;
  int field_8;
  unsigned __int16 *pFontPalettes[5];
  GUICharMetric pMetrics[256];
  int field_C20[256];
};
#pragma pack(pop)





extern struct GUIFont *pAutonoteFont;
extern struct GUIFont *pSpellFont;
extern struct GUIFont *pFontArrus;
extern struct GUIFont *pFontLucida;
extern struct GUIFont *pBook2Font;
extern struct GUIFont *pBookFont;
extern struct GUIFont *pFontCreate;
extern struct GUIFont *pFontCChar;
extern struct GUIFont *pFontComic;
extern struct GUIFont *pFontSmallnum;