define.h
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:5k
源码类别:

模拟服务器

开发平台:

Visual C++

  1. #ifndef _LOGIN_DEFINE_H
  2. #define _LOGIN_DEFINE_H
  3. #define BTN_LOGIN_ID 0
  4. #define BTN_NEW_ID 1
  5. #define BTN_CHANGE_ID 2
  6. #define BTN_EXIT_ID 3
  7. #define IMG_IDX_LOGIN_BACK 0
  8. #define IMG_IDX_BTN_NEW 5
  9. #define IMG_IDX_BTN_CHGPASS 8
  10. #define IMG_IDX_BTN_OK 11
  11. #define IMG_IDX_SRVBORDER_LEFT 20
  12. #define IMG_IDX_SRVBORDER_MIDDLE 21
  13. #define IMG_IDX_SRVBORDER_RIGHT 22
  14. #define IMG_IDX_BTN_UP 23
  15. #define IMG_IDX_BTN_ON 24
  16. #define IMG_IDX_BTN_DOWN 25
  17. #define LOGBTN_HEIGHT 26
  18. #define LOGBTN_WIDTH 176
  19. // AVI Screen Rect
  20. #define SCR_LEFT 0
  21. #define SCR_TOP 50 
  22. #define SCR_RIGHT _LOGIN_SCREEN_WIDTH
  23. #define SCR_BOTTOM 410
  24. #define SCR_TOP2 30
  25. #define SCR_BOTTOM2 390
  26. #define PRG_PATCH_FILES 77
  27. #define PRG_NEED_ACCOUNT_CHANGE 88
  28. #define PRG_QUIT 99
  29. #define CONNECT_FAIL 0
  30. #define CONNECT_SUCCESS 1
  31. #define CONNECT_CLOSE 2
  32. #define IMAGE_INDEX_NEWACCOUNT 208
  33. #define IMAGE_INDEX_DOOR_0 35
  34. #define IMAGE_INDEX_SELECT_CHR 18
  35. #define IMAGE_INDEX_MESSAGEBOX_1 206
  36. #define IMAGE_INDEX_MESSAGEBOX_2 213
  37. #define IMAGE_INDEX_LOGINBASE 29
  38. #define IMAGE_INDEX_LOGINBOX 2
  39. #define PUNISHMENT_ID_USING 1 // "泅犁 夯 ID绰 荤侩吝涝聪促."
  40. #define PUNISHMENT_ID_THEFT 2 // "酒捞叼 档侩苞 包访窍咯 拌沥捞 喉钒等 惑怕涝聪促."
  41. #define PUNISHMENT_DISTURB_GAME 3 // "霸烙狼 柳青阑 规秦窍咯 拌沥捞 喉钒等 惑怕涝聪促."
  42. #define PUNISHMENT_BBS_CURSES 4 // "霸矫魄殿俊 垮汲苞 包访窍咯 拌沥捞 喉钒等 惑怕涝聪促."
  43. #define PUNISHMENT_CONFIRMED_CURSES 5 // "惑嚼利牢 垮汲肺 牢窍咯 拌沥捞 喉钒等 惑怕涝聪促."
  44. #define PUNISHMENT_USAGE_BUG 6 // "滚弊甫 捞侩茄 霸烙栏肺 牢窍咯 拌沥捞 喉钒等 惑怕 涝聪促."
  45. #define PUNISHMENT_ASSUMED_GAMEMASTER 7 // "款康磊 荤莫殿俊 包访窍咯 拌沥捞 喉钒等 惑怕涝聪促."
  46. #define PUNISHMENT_SPREAD_FALLACY 8 // "倾困荤角 蜡器殿俊 狼窍咯 拌沥捞 喉钒等 惑怕涝聪促."
  47. //  New
  48. #define POS_ID_TITLE_X 111
  49. #define POS_ID_TITLE_Y 410
  50. #define POS_PASS_TITLE_X 296
  51. #define POS_PASS_TITLE_Y 410
  52. /*#define POS_LOGEXIT_X POS_LOGINBOX_X + 176
  53. #define POS_LOGEXIT_Y POS_LOGINBOX_Y + 227*/
  54. // New Account Dialog Pos
  55. #define ACCOUNT_WIN_POS_X  80
  56. #define ACCOUNT_WIN_POS_Y  61
  57. // New Account Edit Box Position
  58. #define NEW_WIDTH1 114
  59. #define NEW_WIDTH2 47
  60. #define NEW_WIDTH3 160
  61. #define POS_NEW_X1 ACCOUNT_WIN_POS_X + 143
  62. #define POS_NEW_X2 ACCOUNT_WIN_POS_X + 208
  63. #define POS_NEWID_Y ACCOUNT_WIN_POS_Y +  52
  64. #define POS_NEWPASS_Y ACCOUNT_WIN_POS_Y +  72
  65. #define POS_NEWREPASS_Y ACCOUNT_WIN_POS_Y +  92
  66. #define POS_NEWNAME_Y ACCOUNT_WIN_POS_Y + 125
  67. #define POS_NEWSSNO_Y ACCOUNT_WIN_POS_Y + 145
  68. #define POS_NEWBIRTH_Y ACCOUNT_WIN_POS_Y + 165
  69. #define POS_NEWZIPCODE_Y ACCOUNT_WIN_POS_Y + 198
  70. #define POS_NEWADDRESS1_Y ACCOUNT_WIN_POS_Y + 218
  71. #define POS_NEWADDRESS2_Y ACCOUNT_WIN_POS_Y + 238
  72. #define POS_NEWTELNUM_Y ACCOUNT_WIN_POS_Y + 269
  73. #define POS_NEWMOBILE_Y ACCOUNT_WIN_POS_Y + 289
  74. #define POS_NEWEMAIL_Y ACCOUNT_WIN_POS_Y + 309
  75. #define POS_NEWQUIZ1_Y ACCOUNT_WIN_POS_Y + 340
  76. #define POS_NEWANSWER1_Y ACCOUNT_WIN_POS_Y + 361
  77. #define POS_NEWQUIZ2_Y ACCOUNT_WIN_POS_Y + 382
  78. #define POS_NEWANSWER2_Y ACCOUNT_WIN_POS_Y + 403
  79. // New Account Button
  80. #define POS_NEW_OK_POS_X ACCOUNT_WIN_POS_X + 399
  81. #define POS_NEW_OK_POS_Y ACCOUNT_WIN_POS_Y + 422
  82. #define POS_NEW_CANCLE_POS_X ACCOUNT_WIN_POS_X + 506
  83. #define POS_NEW_CANCLE_POS_Y ACCOUNT_WIN_POS_Y + 422
  84. #define POS_NEW_QUIT_POS_X ACCOUNT_WIN_POS_X + 616
  85. #define POS_NEW_QUIT_POS_Y ACCOUNT_WIN_POS_Y + 453
  86. // New Account ex
  87. #define POS_NEWEXP_X ACCOUNT_WIN_POS_X + 378
  88. #define POS_NEWEXP_Y ACCOUNT_WIN_POS_Y + 112
  89. #define NEW_EXP_WIDTH 214
  90. #define NEW_EXP_HEIGHT 457
  91.  
  92. #define POS_MSG_POS_X 100
  93. #define POS_MSG_POS_Y 100
  94. #define LIMIT_USERID 1
  95. #define BTN_EXIT_ID 3
  96. #define BTN_PRE_SERVER_ID 4
  97. #define BTN_NEXT_SERVER_ID 5
  98. #define BTN_SERVER_SELECT_ID 6
  99. #define BTN_NEW_OK_ID 7
  100. #define BTN_NEW_CANCLE_ID 8
  101. #define BTN_NEW_QUIT_ID 9
  102. // NEW
  103. // NEW
  104. #define POS_BTN_NEW_X 50
  105. #define POS_BTN_NEW_Y 440
  106. #define POS_BTN_CHG_X 250
  107. #define POS_BTN_CHG_Y 440
  108. #define POS_BTN_OK_X 450
  109. #define POS_BTN_OK_Y 440
  110. // NEW
  111. // NEW
  112. #define COUNT_BUTTON_PER_COLUME 8
  113. #define MIR2EI_INI_FILE_NAME "mir2ei.ini"
  114. #define MIR2EI_INI_SECTION "Initial"
  115. #define MIR2EI_SRV_SECTION "Server"
  116. #define LOGIN_SETVER_NAME "ServerAddr"
  117. #define LOGIN_SERVER_PORT "Param1"
  118. #define SERVER_COUNT "ServerCount"
  119. #define LOGIN_GATE_SERVER_IP "192.168.0.200"
  120. #define LOGIN_SERVER_PORT_DATA 7000
  121. // File Names
  122. #define IMAGE_INTERFACE_1 ".\Data\Interface1c.wil"
  123. #define IMAGE_INTERFACE_2 ".\Data\Interfacec2.wil"
  124. #define AVI_INTRO_MAIN ".\ei_login.avi"
  125. #define AVI_EI_LOGO ".\ei_logo.avi"
  126. #define MP3_INTRO_MAIN ".\Sound\EI_Login.mp3"
  127. #define BTN_NEW_OK 209
  128. #define BTN_NEW_CANCLE 211
  129. #define BTN_NEW_QUIT 50
  130. #endif // _LOGIN_DEFINE_H