Rev 131 | Rev 150 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 131 | Rev 140 | ||
---|---|---|---|
Line 302... | Line 302... | ||
302 | typedef struct guitext_s |
302 | typedef struct guitext_s |
303 | { |
303 | { |
304 | bool is_displayed; // set to TRUE if this text is displayed |
304 | bool is_displayed; // set to TRUE if this text is displayed |
305 | float xpos_percent; // text's X position, in percents from left to right |
305 | float xpos_percent; // text's X position, in percents from left to right |
306 | float ypos_percent; // text's Y position, in percents from top to bottom |
306 | float ypos_percent; // text's Y position, in percents from top to bottom |
307 | float maxwidth_percent; // text's max width before word wrapping, in percents of draw area width |
307 | float maxwidth_percent; // text's max width before word wrapping, in percents of draw area width (0 meaning "use full width") |
308 | int horizontal_align; // bounding rectangle's horizontal alignment regarding the X position (one of the ALIGN_xxx defines) |
308 | int horizontal_align; // bounding rectangle's horizontal alignment regarding the X position (one of the ALIGN_xxx defines) |
309 | int vertical_align; // bounding rectangle's vertical alignment regarding the Y position (one of the ALIGN_xxx defines) |
309 | int vertical_align; // bounding rectangle's vertical alignment regarding the Y position (one of the ALIGN_xxx defines) |
310 | int text_align; // text's horizontal alignment inside that bounding rectangle |
310 | int text_align; // text's horizontal alignment inside that bounding rectangle |
311 | int font_index; // index of the font with which to display this text |
311 | int font_index; // index of the font with which to display this text |
312 | unsigned long color; // text's color (RGBA) |
312 | unsigned long color; // text's color (RGBA) |
Line 321... | Line 321... | ||
321 | // game user interface definition |
321 | // game user interface definition |
322 | typedef struct gui_s |
322 | typedef struct gui_s |
323 | { |
323 | { |
324 | // IMPORTANT: ensure all guitext_t buffers are freed in Scene_Shutdown() |
324 | // IMPORTANT: ensure all guitext_t buffers are freed in Scene_Shutdown() |
325 | 325 | ||
- | 326 | guibutton_t llarrow; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
|
326 | guibutton_t larrow; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
327 | guibutton_t larrow; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
327 | guibutton_t rarrow; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
328 | guibutton_t rarrow; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
- | 329 | guibutton_t rrarrow; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
|
328 | guitext_t arrow_text; // usually, viewed move number versus the total of moves |
330 | guitext_t arrow_text; // usually, viewed move number versus the total of moves |
329 | guibutton_t newgamebutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
331 | guibutton_t newgamebutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
330 | guibutton_t opengamebutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
332 | guibutton_t opengamebutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
331 | guibutton_t chatbutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
333 | guibutton_t chatbutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
332 | guibutton_t gamesbutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
334 | guibutton_t gamesbutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered |
Line 629... | Line 631... | ||
629 | GLOBAL float lookatpoint_x; |
631 | GLOBAL float lookatpoint_x; |
630 | GLOBAL float lookatpoint_y; |
632 | GLOBAL float lookatpoint_y; |
631 | GLOBAL int current_viewer; |
633 | GLOBAL int current_viewer; |
632 | GLOBAL handlestatus_t handlestatus[9]; // first slot unused |
634 | GLOBAL handlestatus_t handlestatus[9]; // first slot unused |
633 | // dialog boxes and windows |
635 | // dialog boxes and windows |
- | 636 | GLOBAL bool is_dialogbox_displayed; |
|
634 | GLOBAL bool is_dialogbox_about_validated; |
637 | GLOBAL bool is_dialogbox_about_validated; |
635 | GLOBAL bool is_dialogbox_challenge_validated; |
638 | GLOBAL bool is_dialogbox_challenge_validated; |
636 | GLOBAL bool is_dialogbox_changeappearance_validated; |
639 | GLOBAL bool is_dialogbox_changeappearance_validated; |
637 | GLOBAL bool is_dialogbox_comment_validated; |
640 | GLOBAL bool is_dialogbox_comment_validated; |
638 | GLOBAL bool is_dialogbox_endgame_validated; |
641 | GLOBAL bool is_dialogbox_endgame_validated; |
Line 707... | Line 710... | ||
707 | GLOBAL int centermsg_fontindex; |
710 | GLOBAL int centermsg_fontindex; |
708 | GLOBAL int chat_fontindex; |
711 | GLOBAL int chat_fontindex; |
709 | GLOBAL int arrow_fontindex; |
712 | GLOBAL int arrow_fontindex; |
710 | GLOBAL HFONT hFontChat; |
713 | GLOBAL HFONT hFontChat; |
711 | // sprites |
714 | // sprites |
- | 715 | GLOBAL int llarrow_spriteindex; |
|
712 | GLOBAL int larrow_spriteindex; |
716 | GLOBAL int larrow_spriteindex; |
713 | GLOBAL int rarrow_spriteindex; |
717 | GLOBAL int rarrow_spriteindex; |
- | 718 | GLOBAL int rrarrow_spriteindex; |
|
714 | GLOBAL int newgamebutton_spriteindex; |
719 | GLOBAL int newgamebutton_spriteindex; |
715 | GLOBAL int opengamebutton_spriteindex; |
720 | GLOBAL int opengamebutton_spriteindex; |
716 | GLOBAL int chatbutton_spriteindex; |
721 | GLOBAL int chatbutton_spriteindex; |
717 | GLOBAL int gamesbutton_spriteindex; |
722 | GLOBAL int gamesbutton_spriteindex; |
718 | GLOBAL int peoplebutton_spriteindex; |
723 | GLOBAL int peoplebutton_spriteindex; |