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 */
|
1255
|
15 #pragma warning( push )
|
|
16 #pragma warning( disable : 4200 )
|
0
|
17 #pragma pack(push, 1)
|
|
18 struct GUIFont
|
|
19 {
|
180
|
20
|
|
21 //----- (0044C4DE) --------------------------------------------------------
|
189
|
22 bool IsCharValid(unsigned char c) { return (c >= cFirstChar) && (c <= cLastChar) || (c == '\f') || (c == '\r') || (c == '\t') || (c == '\n');}
|
0
|
23 int AlignText_Center(unsigned int uCenterX, const char *pString);
|
|
24 int GetLineWidth(const char *pString);
|
1160
|
25 int CalcTextHeight(const char *pString, struct GUIWindow *pWindow, int uXOffset, int a5);
|
1168
|
26 int GetStringHeight2(GUIFont *secondFont, const char *text_str, GUIWindow* pWindow, int startX, int a6);
|
1453
|
27 char* GetPageTop(const char *pInString, GUIWindow *pWindow, unsigned int uX, int a5);
|
1160
|
28 void DrawTextLineToBuff(int uColor, int a3, unsigned short* uX_buff_pos, const char *text, int line_width);
|
|
29 void DrawTextLine(unsigned int uDefaultColor, signed int uX, signed int uY, const char *text, int max_len_pix);
|
1168
|
30 void _44D2FD_prolly_draw_credits_entry(GUIFont *pSecondFont, int uFrameX, int uFrameY, unsigned int w, unsigned int h,
|
|
31 unsigned __int16 firstColor, unsigned __int16 secondColor, const char *pString,
|
|
32 unsigned __int16 *pPixels, unsigned int uPixelsWidth);
|
0
|
33
|
1168
|
34 static char * FitTwoFontStringINWindow(const char *pString, GUIFont *pFontMain, GUIFont *pFontSecond, GUIWindow* pWindow, int startPixlOff, int a6);
|
0
|
35
|
1160
|
36 unsigned char cFirstChar; //0
|
|
37 unsigned char cLastChar; //1
|
0
|
38 char field_2;
|
|
39 char field_3;
|
|
40 char field_4;
|
1160
|
41 __int16 uFontHeight; //5-6
|
0
|
42 char field_7;
|
180
|
43 int palletes_count;
|
0
|
44 unsigned __int16 *pFontPalettes[5];
|
|
45 GUICharMetric pMetrics[256];
|
1160
|
46 int font_pixels_offset[256];
|
|
47 unsigned char pFontData[0]; //array of font pixels
|
1255
|
48
|
0
|
49 };
|
|
50 #pragma pack(pop)
|
1255
|
51 #pragma warning( pop )
|
0
|
52
|
180
|
53 GUIFont *LoadFont(const char *pFontFile, const char *pFontPalette, ...);
|
688
|
54 char * FitTextInAWindow(const char *pInString, GUIFont *pFont, GUIWindow *pWindow, signed int uX, int a5);
|
0
|
55
|
175
|
56
|
0
|
57 extern struct GUIFont *pAutonoteFont;
|
|
58 extern struct GUIFont *pSpellFont;
|
|
59 extern struct GUIFont *pFontArrus;
|
|
60 extern struct GUIFont *pFontLucida;
|
|
61 extern struct GUIFont *pBook2Font;
|
|
62 extern struct GUIFont *pBookFont;
|
|
63 extern struct GUIFont *pFontCreate;
|
|
64 extern struct GUIFont *pFontCChar;
|
|
65 extern struct GUIFont *pFontComic;
|
|
66 extern struct GUIFont *pFontSmallnum; |