Subversion Repositories Games.Chess Giants

Rev

Rev 119 | Rev 130 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 124
Line 276... Line 276...
276
// chatter channel reply
276
// chatter channel reply
277
typedef struct ccreply_s
277
typedef struct ccreply_s
278
{
278
{
279
   float arrival_time; // date at which this reply arrived
279
   float arrival_time; // date at which this reply arrived
280
   unsigned long color; // text color (RGBA)
280
   unsigned long color; // text color (RGBA)
281
   wchar_t channelname[64]; // id of the channel this message is sent on
281
   wchar_t channelname[64]; // id of the channel this message is sent on (64 characters max!)
282
   wchar_t nickname[32]; // sender's nickname
282
   wchar_t nickname[32]; // sender's nickname
283
   wchar_t *text; // message text (mallocated)
283
   wchar_t *text; // message text (mallocated)
284
   int text_length; // length of the above text, in characters, NOT including the null terminator
284
   int text_length; // length of the above text, in characters, NOT including the null terminator
285
} ccreply_t;
285
} ccreply_t;
286
 
286
 
Line 292... Line 292...
292
   float left; // position of the top left corner, in percentage of screen width
292
   float left; // position of the top left corner, in percentage of screen width
293
   float top; // position of the top left corner, in percentage of screen height
293
   float top; // position of the top left corner, in percentage of screen height
294
   float width; // button tile width, in percentage of screen width
294
   float width; // button tile width, in percentage of screen width
295
   float height; // button tile height, in percentage of screen height
295
   float height; // button tile height, in percentage of screen height
296
   int sprite_index; // index of the sprite this button displays
296
   int sprite_index; // index of the sprite this button displays
-
 
297
   wchar_t text[64]; // GUI button text (64 characters max!)
297
} guibutton_t;
298
} guibutton_t;
298
 
299
 
299
 
300
 
300
// user interface text field definition
301
// user interface text field definition
301
typedef struct guitext_s
302
typedef struct guitext_s
Line 323... Line 324...
323
   // IMPORTANT: ensure all guitext_t buffers are freed in Scene_Shutdown()
324
   // IMPORTANT: ensure all guitext_t buffers are freed in Scene_Shutdown()
324
 
325
 
325
   guibutton_t larrow; // render state: 0 = invisible, 1 = enabled, 2 = hovered
326
   guibutton_t larrow; // render state: 0 = invisible, 1 = enabled, 2 = hovered
326
   guibutton_t rarrow; // render state: 0 = invisible, 1 = enabled, 2 = hovered
327
   guibutton_t rarrow; // render state: 0 = invisible, 1 = enabled, 2 = hovered
327
   guitext_t arrow_text; // usually, viewed move number versus the total of moves
328
   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
-
 
330
   guibutton_t opengamebutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered
328
   guibutton_t chatbutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered
331
   guibutton_t chatbutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered
329
   guibutton_t gamesbutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered
332
   guibutton_t gamesbutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered
330
   guibutton_t peoplebutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered
333
   guibutton_t peoplebutton; // render state: 0 = invisible, 1 = enabled, 2 = hovered
331
   guitext_t comment_text; // text printed in the comments area
334
   guitext_t comment_text; // text printed in the comments area
332
   guitext_t history_text; // text printed in the moves text area
335
   guitext_t history_text; // text printed in the moves text area
Line 409... Line 412...
409
 
412
 
410
 
413
 
411
// game options definition
414
// game options definition
412
typedef struct options_s
415
typedef struct options_s
413
{
416
{
414
   bool want_fullscreen; // set to TRUE to run in fullscreen mode
417
   bool want_fullscreen; // set to TRUE to run in fullscreen mode (no taskbar)
-
 
418
   bool want_maximized; // set to TRUE to run in maximized window mode
415
   int window_width; // window width when not in fullscreen mode
419
   int window_width; // window width when not in fullscreen mode
416
   int window_height; // window height when not in fullscreen mode
420
   int window_height; // window height when not in fullscreen mode
417
   bool want_sounds; // set to TRUE to enable sounds
421
   bool want_sounds; // set to TRUE to enable sounds
418
   bool want_animations; // set to TRUE to enable part animations
422
   bool want_animations; // set to TRUE to enable part animations
419
   bool want_possiblemoves; // set to TRUE to show possible moves
423
   bool want_possiblemoves; // set to TRUE to show possible moves
Line 667... Line 671...
667
GLOBAL board_t the_board;
671
GLOBAL board_t the_board;
668
GLOBAL scene_t the_scene;
672
GLOBAL scene_t the_scene;
669
// languages
673
// languages
670
GLOBAL language_t *languages; // mallocated
674
GLOBAL language_t *languages; // mallocated
671
GLOBAL int language_count;
675
GLOBAL int language_count;
-
 
676
GLOBAL bool is_language_auto;
672
// online stuff
677
// online stuff
673
GLOBAL wchar_t server_motd[USHRT_MAX];
678
GLOBAL wchar_t server_motd[USHRT_MAX];
674
GLOBAL onlineplayer_t *onlineplayers; // mallocated
679
GLOBAL onlineplayer_t *onlineplayers; // mallocated
675
GLOBAL int onlineplayer_count; // -1 means "reply not arrived"
680
GLOBAL int onlineplayer_count; // -1 means "reply not arrived"
676
GLOBAL bool onlineplayers_updated; // TRUE when display is to be updated
681
GLOBAL bool onlineplayers_updated; // TRUE when display is to be updated
Line 702... Line 707...
702
GLOBAL int arrow_fontindex;
707
GLOBAL int arrow_fontindex;
703
GLOBAL HFONT hFontChat;
708
GLOBAL HFONT hFontChat;
704
// sprites
709
// sprites
705
GLOBAL int larrow_spriteindex;
710
GLOBAL int larrow_spriteindex;
706
GLOBAL int rarrow_spriteindex;
711
GLOBAL int rarrow_spriteindex;
-
 
712
GLOBAL int newgamebutton_spriteindex;
-
 
713
GLOBAL int opengamebutton_spriteindex;
707
GLOBAL int chatbutton_spriteindex;
714
GLOBAL int chatbutton_spriteindex;
708
GLOBAL int gamesbutton_spriteindex;
715
GLOBAL int gamesbutton_spriteindex;
709
GLOBAL int peoplebutton_spriteindex;
716
GLOBAL int peoplebutton_spriteindex;
710
GLOBAL int sepia_spriteindex;
717
GLOBAL int sepia_spriteindex;
711
GLOBAL int spinner_spriteindex[12];
718
GLOBAL int spinner_spriteindex[12];