annotate GUIFont.h @ 617:f2697c2b4109

Billboards are now rendered in BLV
author Nomad
date Fri, 08 Mar 2013 15:52:47 +0200
parents 038a4d09406f
children c0bfb386b15f
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4 /* 171 */
Ritor1
parents:
diff changeset
5 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
6 struct GUICharMetric
Ritor1
parents:
diff changeset
7 {
Ritor1
parents:
diff changeset
8 unsigned int uLeftSpacing;
Ritor1
parents:
diff changeset
9 unsigned int uWidth;
Ritor1
parents:
diff changeset
10 unsigned int uRightSpacing;
Ritor1
parents:
diff changeset
11 };
Ritor1
parents:
diff changeset
12 #pragma pack(pop)
Ritor1
parents:
diff changeset
13
Ritor1
parents:
diff changeset
14 /* 170 */
Ritor1
parents:
diff changeset
15 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
16 struct GUIFont
Ritor1
parents:
diff changeset
17 {
180
c5bd7a825ef2 come back
Ritor1
parents: 178
diff changeset
18
c5bd7a825ef2 come back
Ritor1
parents: 178
diff changeset
19 //----- (0044C4DE) --------------------------------------------------------
189
038a4d09406f new texts file, fix text rendender error
Gloval
parents: 180
diff changeset
20 bool IsCharValid(unsigned char c) { return (c >= cFirstChar) && (c <= cLastChar) || (c == '\f') || (c == '\r') || (c == '\t') || (c == '\n');}
0
Ritor1
parents:
diff changeset
21 int AlignText_Center(unsigned int uCenterX, const char *pString);
Ritor1
parents:
diff changeset
22 int GetLineWidth(const char *pString);
Ritor1
parents:
diff changeset
23 int CalcTextHeight(const char *pString, struct GUIWindow *pWindow, int a4, int a5);
Ritor1
parents:
diff changeset
24 int GetStringHeight2(GUIFont *a2, const char *Str, int a4, int a5, int a6);
Ritor1
parents:
diff changeset
25 int _44C6C2(const char *pInString, GUIWindow *pWindow, unsigned int uX, int a5);
Ritor1
parents:
diff changeset
26 void _44D0B5(int a2, int a3, int a4, const char *pString, int a6);
Ritor1
parents:
diff changeset
27 void DrawTextLine(unsigned int uDefaultColor, signed int uX, signed int uY, const char *Str, int a6);
Ritor1
parents:
diff changeset
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);
Ritor1
parents:
diff changeset
29
180
c5bd7a825ef2 come back
Ritor1
parents: 178
diff changeset
30 static char * _44C933(const char *pString, GUIFont *pFont, GUIFont *a3, int a4, int a5, int a6);
0
Ritor1
parents:
diff changeset
31
Ritor1
parents:
diff changeset
32 unsigned char cFirstChar;
Ritor1
parents:
diff changeset
33 unsigned char cLastChar;
Ritor1
parents:
diff changeset
34 char field_2;
Ritor1
parents:
diff changeset
35 char field_3;
Ritor1
parents:
diff changeset
36 char field_4;
Ritor1
parents:
diff changeset
37 __int16 uFontHeight;
Ritor1
parents:
diff changeset
38 char field_7;
180
c5bd7a825ef2 come back
Ritor1
parents: 178
diff changeset
39 int palletes_count;
0
Ritor1
parents:
diff changeset
40 unsigned __int16 *pFontPalettes[5];
Ritor1
parents:
diff changeset
41 GUICharMetric pMetrics[256];
Ritor1
parents:
diff changeset
42 int field_C20[256];
Ritor1
parents:
diff changeset
43 };
Ritor1
parents:
diff changeset
44 #pragma pack(pop)
Ritor1
parents:
diff changeset
45
180
c5bd7a825ef2 come back
Ritor1
parents: 178
diff changeset
46 GUIFont *LoadFont(const char *pFontFile, const char *pFontPalette, ...);
c5bd7a825ef2 come back
Ritor1
parents: 178
diff changeset
47 char * FitTextInAWindow(const char *pInString, GUIFont *pFont, GUIWindow *pWindow, unsigned int uX, int a5);
0
Ritor1
parents:
diff changeset
48
175
304d7afce43f Обращённый набор изменений: 941eb1cc5846
Ritor1
parents: 171
diff changeset
49
0
Ritor1
parents:
diff changeset
50 extern struct GUIFont *pAutonoteFont;
Ritor1
parents:
diff changeset
51 extern struct GUIFont *pSpellFont;
Ritor1
parents:
diff changeset
52 extern struct GUIFont *pFontArrus;
Ritor1
parents:
diff changeset
53 extern struct GUIFont *pFontLucida;
Ritor1
parents:
diff changeset
54 extern struct GUIFont *pBook2Font;
Ritor1
parents:
diff changeset
55 extern struct GUIFont *pBookFont;
Ritor1
parents:
diff changeset
56 extern struct GUIFont *pFontCreate;
Ritor1
parents:
diff changeset
57 extern struct GUIFont *pFontCChar;
Ritor1
parents:
diff changeset
58 extern struct GUIFont *pFontComic;
Ritor1
parents:
diff changeset
59 extern struct GUIFont *pFontSmallnum;