|
|
@@ -13,12 +13,12 @@ struct CFontDetails |
|
float slant;
|
|
float slant;
|
|
float slantRefX;
|
|
float slantRefX;
|
|
float slantRefY;
|
|
float slantRefY;
|
|
bool justify;
|
|
bool8 justify;
|
|
bool centre;
|
|
bool8 centre;
|
|
bool rightJustify;
|
|
bool8 rightJustify;
|
|
bool background;
|
|
bool8 background;
|
|
bool backgroundOnlyText;
|
|
bool8 backgroundOnlyText;
|
|
bool proportional;
|
|
bool8 proportional;
|
|
float alphaFade;
|
|
float alphaFade;
|
|
CRGBA backgroundColor;
|
|
CRGBA backgroundColor;
|
|
float wrapX;
|
|
float wrapX;
|
|
|
@@ -97,7 +97,7 @@ class CFont |
|
#else
|
|
#else
|
|
static int16 Size[MAX_FONTS][193];
|
|
static int16 Size[MAX_FONTS][193];
|
|
#endif
|
|
#endif
|
|
static int16 NewLine;
|
|
static bool16 NewLine;
|
|
public:
|
|
public:
|
|
static CSprite2d Sprite[MAX_FONTS];
|
|
static CSprite2d Sprite[MAX_FONTS];
|
|
static CFontDetails Details;
|
|
static CFontDetails Details;
|
|
|
@@ -116,8 +116,8 @@ class CFont |
|
static void InitPerFrame(void);
|
|
static void InitPerFrame(void);
|
|
static void PrintChar(float x, float y, wchar c);
|
|
static void PrintChar(float x, float y, wchar c);
|
|
static void PrintString(float x, float y, wchar *s);
|
|
static void PrintString(float x, float y, wchar *s);
|
|
#ifdef XBOX_SUBTITLES
|
|
|
|
static void PrintStringFromBottom(float x, float y, wchar *str);
|
|
static void PrintStringFromBottom(float x, float y, wchar *str);
|
|
|
|
#ifdef XBOX_SUBTITLES
|
|
static void PrintOutlinedString(float x, float y, wchar *str, float outlineStrength, bool fromBottom, CRGBA outlineColor);
|
|
static void PrintOutlinedString(float x, float y, wchar *str, float outlineStrength, bool fromBottom, CRGBA outlineColor);
|
|
#endif
|
|
#endif
|
|
static int GetNumberLines(float xstart, float ystart, wchar *s);
|
|
static int GetNumberLines(float xstart, float ystart, wchar *s);
|
|
|
@@ -142,49 +142,27 @@ class CFont |
|
static void DrawFonts(void);
|
|
static void DrawFonts(void);
|
|
static uint16 character_code(uint8 c);
|
|
static uint16 character_code(uint8 c);
|
|
|
|
|
|
static CFontDetails GetDetails() { return Details; }
|
|
|
|
static void SetScale(float x, float y);
|
|
static void SetScale(float x, float y);
|
|
static void SetSlantRefPoint(float x, float y) { Details.slantRefX = x; Details.slantRefY = y; }
|
|
static void SetSlantRefPoint(float x, float y);
|
|
static void SetSlant(float s) { Details.slant = s; }
|
|
static void SetSlant(float s);
|
|
static void SetJustifyOn(void) {
|
|
static void SetJustifyOn(void);
|
|
Details.justify = true;
|
|
static void SetJustifyOff(void);
|
|
Details.centre = false;
|
|
static void SetRightJustifyOn(void);
|
|
Details.rightJustify = false;
|
|
static void SetRightJustifyOff(void);
|
|
}
|
|
static void SetCentreOn(void);
|
|
static void SetJustifyOff(void) {
|
|
static void SetCentreOff(void);
|
|
Details.justify = false;
|
|
static void SetWrapx(float x);
|
|
Details.rightJustify = false;
|
|
static void SetCentreSize(float s);
|
|
}
|
|
static void SetBackgroundOn(void);
|
|
static void SetRightJustifyOn(void) {
|
|
static void SetBackgroundOff(void);
|
|
Details.rightJustify = true;
|
|
static void SetBackGroundOnlyTextOn(void);
|
|
Details.justify = false;
|
|
static void SetBackGroundOnlyTextOff(void);
|
|
Details.centre = false;
|
|
static void SetPropOn(void);
|
|
}
|
|
static void SetPropOff(void);
|
|
static void SetRightJustifyOff(void) {
|
|
static void SetFontStyle(int16 style);
|
|
Details.rightJustify = false;
|
|
static void SetRightJustifyWrap(float wrap);
|
|
Details.justify = false;
|
|
static void SetAlphaFade(float fade);
|
|
Details.centre = false;
|
|
static void SetDropShadowPosition(int16 pos);
|
|
}
|
|
|
|
static void SetCentreOn(void) {
|
|
|
|
Details.centre = true;
|
|
|
|
Details.justify = false;
|
|
|
|
Details.rightJustify = false;
|
|
|
|
}
|
|
|
|
static void SetCentreOff(void) {
|
|
|
|
Details.centre = false;
|
|
|
|
}
|
|
|
|
static void SetWrapx(float x) { Details.wrapX = x; }
|
|
|
|
static void SetCentreSize(float s) { Details.centreSize = s; }
|
|
|
|
static void SetBackgroundOn(void) { Details.background = true; }
|
|
|
|
static void SetBackgroundOff(void) { Details.background = false; }
|
|
|
|
static void SetBackGroundOnlyTextOn(void) { Details.backgroundOnlyText = true; }
|
|
|
|
static void SetBackGroundOnlyTextOff(void) { Details.backgroundOnlyText = false; }
|
|
|
|
static void SetPropOn(void) { Details.proportional = true; }
|
|
|
|
static void SetPropOff(void) { Details.proportional = false; }
|
|
|
|
static void SetFontStyle(int16 style) { Details.style = style; }
|
|
|
|
static void SetRightJustifyWrap(float wrap) { Details.rightJustifyWrap = wrap; }
|
|
|
|
static void SetAlphaFade(float fade) { Details.alphaFade = fade; }
|
|
|
|
static void SetDropShadowPosition(int16 pos) { Details.dropShadowPosition = pos; }
|
|
|
|
static void SetBackgroundColor(CRGBA col);
|
|
static void SetBackgroundColor(CRGBA col);
|
|
static void SetColor(CRGBA col);
|
|
static void SetColor(CRGBA col);
|
|
static void SetDropColor(CRGBA col);
|
|
static void SetDropColor(CRGBA col);
|
|
|
|