973 lines
27 KiB
C
973 lines
27 KiB
C
/************************/
|
||
/* menu.h */
|
||
/************************/
|
||
#ifndef _MENU_H_
|
||
#define _MENU_H_
|
||
|
||
#include "pc.h"
|
||
#include "chat.h"
|
||
|
||
#ifdef _TELLCHANNEL //ROG ADD 密语频道
|
||
#include "netproc.h"
|
||
#endif
|
||
|
||
#ifdef _NEW_SYSTEM_MENU
|
||
#define MENU_SYSTEM_0 28
|
||
#else
|
||
#define MENU_SYSTEM_0 9
|
||
#endif
|
||
#define MENU_MAP_0 3
|
||
|
||
#define MAIL_STR_LEN 140 // ???<3F>??<3F>?
|
||
#define MAIL_DATE_STR_LEN 20 // <20><>?<3F>???<3F>?
|
||
#define MAIL_MAX_HISTORY 20 // ?????
|
||
#define MAX_CHAT_REGISTY_STR 8 // ?????<3F>?<3F>???
|
||
|
||
// ??????????<3F><>
|
||
typedef struct{
|
||
int x, y; // <20><>?<3F>
|
||
int defX, defY; // ??????<3F>
|
||
int bmpNo; // ??<3F>?
|
||
int dispPrio; // <20><>?<3F>
|
||
BOOL dragFlag; // ???????
|
||
BOOL mixFlag; // ?<3F>???
|
||
}ITEM_BUFFER;
|
||
|
||
// ???????<3F><>
|
||
typedef struct{
|
||
char str[ MAIL_MAX_HISTORY ][ MAIL_STR_LEN + 1 ]; // ??????<3F>??
|
||
char dateStr[ MAIL_MAX_HISTORY ][ MAIL_DATE_STR_LEN + 1 ]; // <20><>?<3F>??
|
||
int noReadFlag[ MAIL_MAX_HISTORY ]; // ⺶<>????<3F><>??????????<3F>??
|
||
int petLevel[ MAIL_MAX_HISTORY ]; // <20><>??????????<3F>?
|
||
char petName[ MAIL_MAX_HISTORY ][ PET_NAME_LEN + 1 ]; // ????䦶<>
|
||
int itemGraNo[ MAIL_MAX_HISTORY ]; // <20>?????????????<3F>?
|
||
int newHistoryNo; // ?<3F>???<3F>?
|
||
}MAIL_HISTORY;
|
||
|
||
// ?????<3F><>??????<3F>?<3F><>
|
||
typedef struct{
|
||
int sizeX,sizeY; // ???
|
||
int titleNo; // ????<3F>?
|
||
int titleX, titleY; // ??????<3F>
|
||
int mx, my; // ?<3F>?<3F>
|
||
int nowX, nowY; // ?<3F>?????
|
||
int cnt; // ?<3F>?<3F>
|
||
int wndType; // ??????<3F>?
|
||
int hitFlag; // ???<3F><>??䥺?
|
||
int yesDispNo; // ??????<3F><><EFBFBD>?
|
||
int noDispNo; // ???????<3F><><EFBFBD>?
|
||
int boxDispPrio; // ?<3F>?????<3F><>?<3F>??
|
||
int yesNoResult; // YesNo?????:??? ?:???
|
||
}WINDOW_DISP;
|
||
|
||
#if defined(__ALBUM_47)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND_37 498
|
||
#define MAX_PET_KIND_38 521
|
||
#define MAX_PET_KIND_39 540
|
||
#define MAX_PET_KIND_40 542
|
||
#define MAX_PET_KIND_41 543
|
||
#define MAX_PET_KIND_42 545
|
||
#define MAX_PET_KIND_43 549
|
||
#define MAX_PET_KIND_44 551
|
||
#define MAX_PET_KIND_45 553
|
||
#define MAX_PET_KIND_46 555
|
||
//#define MAX_PET_KIND 557
|
||
//#define MAX_PET_KIND 558 // Robin fix
|
||
//#define MAX_PET_KIND 564 // Robin fix
|
||
//#define MAX_PET_KIND 566 // Robin fix
|
||
#define MAX_PET_KIND 570 // Robin fix
|
||
|
||
#elif defined(__ALBUM_46)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND_37 498
|
||
#define MAX_PET_KIND_38 521
|
||
#define MAX_PET_KIND_39 540
|
||
#define MAX_PET_KIND_40 542
|
||
#define MAX_PET_KIND_41 543
|
||
#define MAX_PET_KIND_42 545
|
||
#define MAX_PET_KIND_43 549
|
||
#define MAX_PET_KIND_44 551
|
||
#define MAX_PET_KIND_45 553
|
||
#define MAX_PET_KIND 555
|
||
|
||
#elif defined(__ALBUM_45)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND_37 498
|
||
#define MAX_PET_KIND_38 521
|
||
#define MAX_PET_KIND_39 540
|
||
#define MAX_PET_KIND_40 542
|
||
#define MAX_PET_KIND_41 543
|
||
#define MAX_PET_KIND_42 545
|
||
#define MAX_PET_KIND_43 549
|
||
#define MAX_PET_KIND_44 551
|
||
#define MAX_PET_KIND 553
|
||
|
||
#elif defined(__ALBUM_44)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND_37 498
|
||
#define MAX_PET_KIND_38 521
|
||
#define MAX_PET_KIND_39 540
|
||
#define MAX_PET_KIND_40 542
|
||
#define MAX_PET_KIND_41 543
|
||
#define MAX_PET_KIND_42 545
|
||
#define MAX_PET_KIND_43 549
|
||
#define MAX_PET_KIND 551
|
||
|
||
#elif defined(__ALBUM_43)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND_37 498
|
||
#define MAX_PET_KIND_38 521
|
||
#define MAX_PET_KIND_39 540
|
||
#define MAX_PET_KIND_40 542
|
||
#define MAX_PET_KIND_41 543
|
||
#define MAX_PET_KIND_42 545
|
||
#define MAX_PET_KIND 549
|
||
|
||
#elif defined(__ALBUM_42)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND_37 498
|
||
#define MAX_PET_KIND_38 521
|
||
#define MAX_PET_KIND_39 540
|
||
#define MAX_PET_KIND_40 542
|
||
#define MAX_PET_KIND_41 543
|
||
#define MAX_PET_KIND 545
|
||
|
||
#elif defined(__ALBUM_41)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND_37 498
|
||
#define MAX_PET_KIND_38 521
|
||
#define MAX_PET_KIND_39 540
|
||
#define MAX_PET_KIND_40 542
|
||
#define MAX_PET_KIND 543
|
||
|
||
#elif defined(__ALBUM_40)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND_37 498
|
||
#define MAX_PET_KIND_38 521
|
||
#define MAX_PET_KIND_39 540
|
||
#define MAX_PET_KIND 542
|
||
|
||
#elif defined(__ALBUM_39)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND_37 498
|
||
#define MAX_PET_KIND_38 521
|
||
#define MAX_PET_KIND 540
|
||
|
||
#elif defined(__ALBUM_38)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND_37 498
|
||
#define MAX_PET_KIND 521
|
||
|
||
#elif defined(__ALBUM_37)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND_36 483
|
||
#define MAX_PET_KIND 496
|
||
|
||
#elif defined(__ALBUM_36)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND_35 462
|
||
#define MAX_PET_KIND 483
|
||
#elif defined(__ALBUM_35)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND_34 436
|
||
#define MAX_PET_KIND 462 //460
|
||
|
||
#elif defined(__ALBUM_34)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND_33 432
|
||
#define MAX_PET_KIND 436
|
||
|
||
#elif defined(__ALBUM_33)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND_32 431
|
||
#define MAX_PET_KIND 432
|
||
|
||
#elif defined(__ALBUM_32)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND_15 357
|
||
#define MAX_PET_KIND_16 364
|
||
#define MAX_PET_KIND_17 389
|
||
#define MAX_PET_KIND_18 391
|
||
#define MAX_PET_KIND_19 395
|
||
#define MAX_PET_KIND_20 398
|
||
#define MAX_PET_KIND_21 401
|
||
#define MAX_PET_KIND_22 405
|
||
#define MAX_PET_KIND_23 407
|
||
#define MAX_PET_KIND_24 414
|
||
#define MAX_PET_KIND_25 415
|
||
#define MAX_PET_KIND_26 420
|
||
#define MAX_PET_KIND_27 422
|
||
#define MAX_PET_KIND_28 423
|
||
#define MAX_PET_KIND_29 424
|
||
#define MAX_PET_KIND_30 425
|
||
#define MAX_PET_KIND_31 429
|
||
#define MAX_PET_KIND 431
|
||
|
||
#elif defined(__ALBUM_15)
|
||
#define MAX_PET_KIND_1 124
|
||
#define MAX_PET_KIND_4 224
|
||
#define MAX_PET_KIND_5 228
|
||
#define MAX_PET_KIND_6 229
|
||
#define MAX_PET_KIND_7 230
|
||
#define MAX_PET_KIND_8 237
|
||
#define MAX_PET_KIND_9 240
|
||
#define MAX_PET_KIND_10 297
|
||
#define MAX_PET_KIND_11 301
|
||
#define MAX_PET_KIND_12 305
|
||
#define MAX_PET_KIND_13 306
|
||
#define MAX_PET_KIND_14 353
|
||
#define MAX_PET_KIND 357
|
||
#else
|
||
#define MAX_PET_KIND 10000 // ????<3F>?
|
||
#define MAX_PET_TBL 181 // ???????????
|
||
#endif
|
||
|
||
#define MAX_PET_PAGE_SIZE 8 // ?????<3F><><EFBFBD>????????
|
||
#ifdef _PET_ITEM
|
||
#define MAX_PET_SPECIES 42 // 宠物物种数量
|
||
#endif
|
||
|
||
// ????????????<3F><>?
|
||
enum{
|
||
ANIM_DISP_PET, // ???<3F><>
|
||
ANIM_DISP_PET_SEND, // ???????<3F>???䴘???<3F>
|
||
ANIM_DISP_PET_RECIEVE, // ??????<3F><>???䴘<>??<3F>
|
||
|
||
ANIM_DISP_PET_MAIN, // ?????<3F><><EFBFBD>??
|
||
ANIM_DISP_PET_WALK, // <20>?
|
||
ANIM_DISP_PET_STAND, // <20>?
|
||
ANIM_DISP_PET_ATTACK, // ??
|
||
ANIM_DISP_PET_GUARD, // ???
|
||
ANIM_DISP_PET_DAMAGE, // ????
|
||
ANIM_DISP_PET_DEAD, // ?<3F>
|
||
ANIM_DISP_PET_ITEM, // ???????<3F><>
|
||
|
||
ANIM_DISP_LETTER_MOVE, // <20>??<3F>
|
||
ANIM_DISP_LETTER, // <20>????????
|
||
|
||
ANIM_DISP_MIX_PET_INIT, // ?<3F>??????
|
||
ANIM_DISP_MIX_PET_MOVE, // ?<3F>???<3F>?????<3F>
|
||
ANIM_DISP_MIX_PET_MOJI, // ?<3F>????????????<3F>??
|
||
#ifdef _THEATER
|
||
ANIM_DISP_THEATER_NPC, // 剧场NPC显示
|
||
#endif
|
||
#ifdef _AniCrossFrame // Syu ADD 动画层游过画面生物
|
||
ANIM_DISP_CROSSFRAME = 18,
|
||
#endif
|
||
ANIM_DISP_MIX_PET_END, // ?<3F>????䴘??
|
||
};
|
||
|
||
// ?????<3F><>
|
||
typedef struct{
|
||
char name[ PET_NAME_LEN + 1 ]; // ????䦶<>
|
||
char freeName[ PET_NAME_LEN + 1 ]; // ??????䦶
|
||
int faceGraNo; // ???????????<3F>?
|
||
int level; // ???
|
||
int maxHp; // ?<3F>??
|
||
int str; // ???
|
||
int quick; // <20>??
|
||
int def; // 㘎??
|
||
int earth, water, fire, wind; // 佋???
|
||
int flag; // <20>??????:?????? ?:?? ?:<><EFBC9A><EFBFBD>???<3F>?? ?:<>??? ?
|
||
}PET_ALBUM;
|
||
|
||
// ????????????????<3F><>
|
||
typedef struct{
|
||
int albumNo; // ?????????<3F>?
|
||
char name[ PET_NAME_LEN + 1 ]; // ????䦶<>
|
||
int faceGraNo; // ???????????<3F>?
|
||
}PET_ALBUM_TBL;
|
||
|
||
|
||
// ????????
|
||
extern BOOL TaskBarFlag;
|
||
// ??????
|
||
extern unsigned int MenuToggleFlag;
|
||
// ?????????
|
||
extern ITEM_BUFFER ItemBuffer[];
|
||
// ????????????
|
||
extern int StatusUpPoint;
|
||
// <20><>???<3F>???????<3F>???
|
||
extern BOOL BattlePetReceiveFlag;
|
||
#ifdef _STANDBYPET
|
||
extern BOOL StandbyPetSendFlag;
|
||
#endif
|
||
// ???<3F><>?????<3F>?
|
||
extern int BattlePetReceivePetNo;
|
||
// ??????<3F>??
|
||
extern MAIL_HISTORY MailHistory[];
|
||
// ?????<3F>?<3F>??<3F>??????
|
||
extern STR_BUFFER chatRegistryStr[];
|
||
// ????<3F>?<3F>??
|
||
extern STR_BUFFER MailStr;
|
||
// ??????????????
|
||
extern ACTION *pActMenuWnd3;
|
||
// ?????<3F>?<3F>??<3F>??????
|
||
extern STR_BUFFER chatRegistryStr[];
|
||
// ??????<3F>??<3F>??
|
||
extern STR_BUFFER shougouChange;
|
||
|
||
#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量
|
||
extern STR_BUFFER MymoneyBuffer;
|
||
#endif
|
||
#ifdef _ITEM_JIGSAW
|
||
extern int JigsawIdx;
|
||
void SetJigsaw(int img, char *str);
|
||
#endif
|
||
|
||
typedef enum{
|
||
MAIL_WND_VIEW,
|
||
MAIL_WND_SELECT,
|
||
MAIL_WND_SEND,
|
||
MAIL_WND_PET_SEND,
|
||
MAIL_WND_ITEM,
|
||
MAIL_WND_HISTORY,
|
||
}MAIL_WND_TYPE;
|
||
|
||
extern STR_BUFFER TradeBuffer;
|
||
// ????䦶<><E4A6B6>??<3F>??
|
||
extern STR_BUFFER petNameChange;
|
||
// Terry add 2002/01/04
|
||
#ifdef __EDEN_AUCTION
|
||
extern STR_BUFFER AuctionStr; // 拍卖叙述共,50个字
|
||
extern STR_BUFFER AuctionMoney; // 拍卖价钱最多一百万
|
||
#endif
|
||
// Terry end
|
||
// <20>???????<3F><>?????????<3F>?
|
||
extern int petStatusNo;
|
||
|
||
extern int mailHistoryWndPageNo; // ???????????<3F>?
|
||
extern int mailHistoryWndSelectNo; // <20><>?????䦶<><E4A6B6>?
|
||
//extern int mailReceivePetGraNo; // ??????<3F><>????????????<3F>?
|
||
|
||
// <20><>??<3F><>????????<3F><>?????
|
||
extern int MapWmdFlagBak;
|
||
|
||
// <20><>????????<3F>??????????
|
||
#define RESULT_WND_CLOSE_TIME 300 // ?<3F>
|
||
// <20><>????????<3F>?????????
|
||
extern int ResultWndTimer;
|
||
|
||
// ?<3F><>?????
|
||
extern BOOL ItemMixRecvFlag;
|
||
|
||
// ???????
|
||
extern int MouseCursorFlag;
|
||
#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架
|
||
void TradeTalk ( char *msg ) ;
|
||
#endif
|
||
|
||
void InitItem( int x, int y , BOOL bPetItemFlag);
|
||
|
||
// ?????????? *******************************************************/
|
||
void InitMenu( void );
|
||
|
||
// ??????????? *******************************************************/
|
||
void InitMenu2( void );
|
||
|
||
// ????<3F>??????? *******************************************************/
|
||
BOOL CheckMenuFlag( void );
|
||
|
||
// ?????? ***************************************************************/
|
||
void MenuProc( void );
|
||
|
||
// ?????<3F><>????<3F> ***************************************************/
|
||
ACTION *MakeWindowDisp( int x, int y, int sizeX, int sizeY, int titleNo, int wndType
|
||
#ifdef _NEW_RESOMODE //800 600模式
|
||
, BOOL fixType = TRUE
|
||
#endif
|
||
);
|
||
|
||
// ???<3F><>?????<3F> ******************************************************/
|
||
BOOL MakeHitBox( int x1, int y1, int x2, int y2, int dispPrio );
|
||
|
||
// ???????<3F><> ****************************************************************/
|
||
BOOL SaveMailHistory( int no );
|
||
|
||
// ???????<3F>??? ****************************************************************/
|
||
BOOL LoadMailHistory( void );
|
||
|
||
// ???⺶<>???? ****************************************************************/
|
||
BOOL CheckMailNoReadFlag( void );
|
||
|
||
// ??????????<3F><><EFBFBD>?? **************************************************/
|
||
void InitOhtaParam( void );
|
||
|
||
// <20>?????????<3F> **********************************************************/
|
||
void DeathLetterAction( void );
|
||
|
||
// ?????<3F>?<3F>??<3F><> ****************************************************************/
|
||
BOOL SaveChatRegistyStr( void );
|
||
|
||
// ?????<3F>?<3F>??<3F>??? ****************************************************************/
|
||
BOOL LoadChatRegistyStr( void );
|
||
|
||
// <20>?????????? *****************************************************/
|
||
void CenteringStr( char *inStr, char *outStr, int max );
|
||
|
||
// <20>????????? ****************************************************************/
|
||
void CheckNewPet( int sprNo );
|
||
|
||
// <20><>??<3F>???????? **********************************************************/
|
||
void CheckBattleNewPet( void );
|
||
|
||
// ?????<3F>??? ****************************************************************/
|
||
BOOL LoadAlbum( void );
|
||
|
||
// ?????<3F><> ****************************************************************/
|
||
BOOL SaveAlbum( int no );
|
||
ACTION *MakeAnimDisp( int x, int y, int sprNo, int mode );
|
||
|
||
// Robin 04/16 trade
|
||
void tradeInit( void );
|
||
|
||
void BankmanInit( char* data );
|
||
void BankmanWN( void );
|
||
void closeBankman( void );
|
||
#endif
|
||
|
||
#ifdef _TELLCHANNEL //ROG ADD 密语频道
|
||
void InitSelectChar( char *msg, BOOL endFlag);
|
||
void SelectChar( void );
|
||
void DeathTellChannel( void );
|
||
extern int TalkMode;
|
||
extern char secretName[32];
|
||
#endif
|
||
|
||
|
||
#ifdef _FRIENDCHANNEL //ROG ADD 好友频道
|
||
#define MAX_ROOM_NUM 50
|
||
extern bool setRoomFlag;
|
||
extern bool secretFlag; //密语旗标
|
||
extern int selChar;
|
||
extern ACTION *pChtChanlWnd; //聊天室视窗
|
||
extern ACTION *pSelChanlWnd;
|
||
void SelectChatRoom( void );
|
||
void InitSelChatRoom(char *msg);
|
||
void InitCreateChatRoom(char *msg);
|
||
void ChatRoomWnd(void);
|
||
void initAssentWnd(char *data);
|
||
void AssentWnd(void);
|
||
extern STR_BUFFER chatRoomName; //聊天室名称
|
||
extern ACTION *pSetRoomWnd;
|
||
void setRoomName(void); //设定聊天室名称
|
||
|
||
#endif
|
||
|
||
|
||
/////////////////////////////////////////
|
||
#ifdef _TIMEBAR_FUNCTION
|
||
int SetTimeBarPos(int timBarIdent, int CurPos);
|
||
int SetTimeBar(char *title, int range);
|
||
#endif
|
||
|
||
#ifdef _STANDBYPET
|
||
void send_StandBy_Pet( void);
|
||
#endif
|
||
|
||
#ifdef _NPC_ITEMUP
|
||
void ShowItemup(int value, int x, int y);
|
||
#endif
|
||
|
||
#ifdef _NPC_ITEMUP
|
||
void ShowCounttime(int value, int x, int y);
|
||
#endif
|
||
|
||
#ifdef _NEW_SPEED_
|
||
extern BOOL GameSpeedFlag;
|
||
#endif
|
||
|
||
|