Mercurial > mm7
annotate GUIFont.h @ 174:4ae88cd19c30
Обращённый набор изменений: e6db0995ac4b
author | Ritor1 |
---|---|
date | Fri, 15 Feb 2013 10:26:57 +0600 |
parents | 941eb1cc5846 |
children | 304d7afce43f |
rev | line source |
---|---|
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 { | |
170
91fa025e6ca6
font cleaning code
C:\Documents and Settings\Administrator.SDF-1\Application Data\The Bat!
parents:
0
diff
changeset
|
18 |
91fa025e6ca6
font cleaning code
C:\Documents and Settings\Administrator.SDF-1\Application Data\The Bat!
parents:
0
diff
changeset
|
19 //----- (0044C4DE) -------------------------------------------------------- |
91fa025e6ca6
font cleaning code
C:\Documents and Settings\Administrator.SDF-1\Application Data\The Bat!
parents:
0
diff
changeset
|
20 bool IsCharValid(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 | |
170
91fa025e6ca6
font cleaning code
C:\Documents and Settings\Administrator.SDF-1\Application Data\The Bat!
parents:
0
diff
changeset
|
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; | |
170
91fa025e6ca6
font cleaning code
C:\Documents and Settings\Administrator.SDF-1\Application Data\The Bat!
parents:
0
diff
changeset
|
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 | |
170
91fa025e6ca6
font cleaning code
C:\Documents and Settings\Administrator.SDF-1\Application Data\The Bat!
parents:
0
diff
changeset
|
46 GUIFont *LoadFont(const char *pFontFile, const char *pFontPalette, ...); |
91fa025e6ca6
font cleaning code
C:\Documents and Settings\Administrator.SDF-1\Application Data\The Bat!
parents:
0
diff
changeset
|
47 char * FitTextInAWindow(const char *pInString, GUIFont *pFont, GUIWindow *pWindow, unsigned int uX, int a5); |
0 | 48 |
49 extern struct GUIFont *pAutonoteFont; | |
50 extern struct GUIFont *pSpellFont; | |
51 extern struct GUIFont *pFontArrus; | |
52 extern struct GUIFont *pFontLucida; | |
53 extern struct GUIFont *pBook2Font; | |
54 extern struct GUIFont *pBookFont; | |
55 extern struct GUIFont *pFontCreate; | |
56 extern struct GUIFont *pFontCChar; | |
57 extern struct GUIFont *pFontComic; | |
58 extern struct GUIFont *pFontSmallnum; |