0
|
1 #pragma once
|
|
2
|
|
3
|
|
4 /* 171 */
|
|
5 #pragma pack(push, 1)
|
|
6 struct GUICharMetric
|
|
7 {
|
|
8 unsigned int uLeftSpacing;
|
|
9 unsigned int uWidth;
|
|
10 unsigned int uRightSpacing;
|
|
11 };
|
|
12 #pragma pack(pop)
|
|
13
|
|
14 /* 170 */
|
|
15 #pragma pack(push, 1)
|
|
16 struct GUIFont
|
|
17 {
|
180
|
18
|
|
19 //----- (0044C4DE) --------------------------------------------------------
|
189
|
20 bool IsCharValid(unsigned char c) { return (c >= cFirstChar) && (c <= cLastChar) || (c == '\f') || (c == '\r') || (c == '\t') || (c == '\n');}
|
0
|
21 int AlignText_Center(unsigned int uCenterX, const char *pString);
|
|
22 int GetLineWidth(const char *pString);
|
|
23 int CalcTextHeight(const char *pString, struct GUIWindow *pWindow, int a4, int a5);
|
|
24 int GetStringHeight2(GUIFont *a2, const char *Str, int a4, int a5, int a6);
|
|
25 int _44C6C2(const char *pInString, GUIWindow *pWindow, unsigned int uX, int a5);
|
|
26 void _44D0B5(int a2, int a3, int a4, const char *pString, int a6);
|
|
27 void DrawTextLine(unsigned int uDefaultColor, signed int uX, signed int uY, const char *Str, int a6);
|
|
28 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);
|
|
29
|
180
|
30 static char * _44C933(const char *pString, GUIFont *pFont, GUIFont *a3, int a4, int a5, int a6);
|
0
|
31
|
|
32 unsigned char cFirstChar;
|
|
33 unsigned char cLastChar;
|
|
34 char field_2;
|
|
35 char field_3;
|
|
36 char field_4;
|
|
37 __int16 uFontHeight;
|
|
38 char field_7;
|
180
|
39 int palletes_count;
|
0
|
40 unsigned __int16 *pFontPalettes[5];
|
|
41 GUICharMetric pMetrics[256];
|
|
42 int field_C20[256];
|
|
43 };
|
|
44 #pragma pack(pop)
|
|
45
|
180
|
46 GUIFont *LoadFont(const char *pFontFile, const char *pFontPalette, ...);
|
|
47 char * FitTextInAWindow(const char *pInString, GUIFont *pFont, GUIWindow *pWindow, unsigned int uX, int a5);
|
0
|
48
|
175
|
49
|
0
|
50 extern struct GUIFont *pAutonoteFont;
|
|
51 extern struct GUIFont *pSpellFont;
|
|
52 extern struct GUIFont *pFontArrus;
|
|
53 extern struct GUIFont *pFontLucida;
|
|
54 extern struct GUIFont *pBook2Font;
|
|
55 extern struct GUIFont *pBookFont;
|
|
56 extern struct GUIFont *pFontCreate;
|
|
57 extern struct GUIFont *pFontCChar;
|
|
58 extern struct GUIFont *pFontComic;
|
|
59 extern struct GUIFont *pFontSmallnum; |