Rev 179 | Rev 187 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 179 | Rev 185 | ||
|---|---|---|---|
| Line 298... | Line 298... | ||
| 298 | float left; // position of the top left corner, in percentage of screen width |
298 | float left; // position of the top left corner, in percentage of screen width |
| 299 | float top; // position of the top left corner, in percentage of screen height |
299 | float top; // position of the top left corner, in percentage of screen height |
| 300 | float width; // button tile width, in percentage of screen width |
300 | float width; // button tile width, in percentage of screen width |
| 301 | float height; // button tile height, in percentage of screen height |
301 | float height; // button tile height, in percentage of screen height |
| 302 | int sprite_index; // index of the sprite this button displays |
302 | int sprite_index; // index of the sprite this button displays |
| - | 303 | wchar_t *font_face; // name of the font with which to display this text (should point to a static string) |
|
| - | 304 | float font_sizepct; // size of the font with which to display this text, in percentage of window height |
|
| - | 305 | bool is_bold; // set to TRUE if the font is to be displayed in bold weight |
|
| - | 306 | bool is_italic; // set to TRUE if the font is to be displayed in italic typeface |
|
| 303 | wchar_t text[64]; // GUI button text (64 characters max!) |
307 | wchar_t text[64]; // GUI button text (64 characters max!) |
| 304 | } guibutton_t; |
308 | } guibutton_t; |
| 305 | 309 | ||
| 306 | 310 | ||
| 307 | // user interface text field definition |
311 | // user interface text field definition |
| Line 312... | Line 316... | ||
| 312 | float ypos_percent; // text's Y position, in percents from top to bottom |
316 | float ypos_percent; // text's Y position, in percents from top to bottom |
| 313 | float maxwidth_percent; // text's max width before word wrapping, in percents of draw area width (0 meaning "use full width") |
317 | float maxwidth_percent; // text's max width before word wrapping, in percents of draw area width (0 meaning "use full width") |
| 314 | int horizontal_align; // bounding rectangle's horizontal alignment regarding the X position (one of the ALIGN_xxx defines) |
318 | int horizontal_align; // bounding rectangle's horizontal alignment regarding the X position (one of the ALIGN_xxx defines) |
| 315 | int vertical_align; // bounding rectangle's vertical alignment regarding the Y position (one of the ALIGN_xxx defines) |
319 | int vertical_align; // bounding rectangle's vertical alignment regarding the Y position (one of the ALIGN_xxx defines) |
| 316 | int text_align; // text's horizontal alignment inside that bounding rectangle |
320 | int text_align; // text's horizontal alignment inside that bounding rectangle |
| - | 321 | wchar_t *font_face; // name of the font with which to display this text (should point to a static string) |
|
| 317 |
|
322 | float font_sizepct; // size of the font with which to display this text, in percentage of window height |
| - | 323 | bool is_bold; // set to TRUE if the font is to be displayed in bold weight |
|
| - | 324 | bool is_italic; // set to TRUE if the font is to be displayed in italic typeface |
|
| 318 | unsigned long color; // text's color (RGBA) |
325 | unsigned long color; // text's color (RGBA) |
| 319 | wchar_t *buffer; // text printed in this area of the screen (mallocated) |
326 | wchar_t *buffer; // text printed in this area of the screen (mallocated) |
| 320 | int buffer_size; // size of the text buffer |
327 | int buffer_size; // size of the text buffer |
| 321 | float appear_time; // date at which this text was put |
328 | float appear_time; // date at which this text was put |
| 322 | float disappear_time; // date at which this text should disappear |
329 | float disappear_time; // date at which this text should disappear |
| Line 710... | Line 717... | ||
| 710 | GLOBAL smiley_t *smilies; // mallocated |
717 | GLOBAL smiley_t *smilies; // mallocated |
| 711 | GLOBAL int smiley_count; |
718 | GLOBAL int smiley_count; |
| 712 | // PGN games |
719 | // PGN games |
| 713 | GLOBAL pgngame_t *games; // mallocated |
720 | GLOBAL pgngame_t *games; // mallocated |
| 714 | GLOBAL int game_count; |
721 | GLOBAL int game_count; |
| 715 | // fonts |
722 | // GDI fonts |
| 716 | GLOBAL int players_fontindex; |
- | |
| 717 | GLOBAL int centermsg_fontindex; |
- | |
| 718 | GLOBAL int chat_fontindex; |
- | |
| 719 | GLOBAL int arrow_fontindex; |
- | |
| 720 | GLOBAL HFONT hFontChat; |
723 | GLOBAL HFONT hFontChat; |
| 721 | // sprites |
724 | // sprites |
| 722 | GLOBAL int llarrow_spriteindex; |
725 | GLOBAL int llarrow_spriteindex; |
| 723 | GLOBAL int larrow_spriteindex; |
726 | GLOBAL int larrow_spriteindex; |
| 724 | GLOBAL int rarrow_spriteindex; |
727 | GLOBAL int rarrow_spriteindex; |