Get rid of the #define(s) in this file, and using enum instead.

Makes it easier to modify/change menu entries and such.

Should not affect code behavior at all.





git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6122 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2008-10-10 20:02:47 +00:00
parent 3e1509e874
commit 0c469ea1f2
1 changed files with 82 additions and 126 deletions

View File

@ -93,10 +93,6 @@ BOOL runGameOptions4Menu (void);
// ////////////////////////////////////////////////////////////////////////////
// defines.
#define FRONTEND_BACKDROP 20000
#define FRONTEND_TOPFORM 20001
#define FRONTEND_TOPFORMX 80
#define FRONTEND_TOPFORMY 10
#define FRONTEND_TOPFORMW 480
@ -109,7 +105,6 @@ BOOL runGameOptions4Menu (void);
#define FRONTEND_TOPFORM_WIDEH 150
#define FRONTEND_BOTFORM 20002
#define FRONTEND_BOTFORMX 80
#define FRONTEND_BOTFORMY 170
@ -120,7 +115,6 @@ BOOL runGameOptions4Menu (void);
#define FRONTEND_BUTWIDTH FRONTEND_BOTFORMW-40 // text button sizes.
#define FRONTEND_BUTHEIGHT 30
#define FRONTEND_POS1X 20 // button positions
#define FRONTEND_POS1Y 10
#define FRONTEND_POS1M 290
@ -149,138 +143,100 @@ BOOL runGameOptions4Menu (void);
#define FRONTEND_POS7Y 250
#define FRONTEND_POS7M 290
#define FRONTEND_SINGLEPLAYER 20003 // title screen
#define FRONTEND_MULTIPLAYER 20004
#define FRONTEND_QUIT 20005
#define FRONTEND_OPTIONS 20006
#define FRONTEND_HOST 20007 //multiplayer screen
#define FRONTEND_JOIN 20008
#define FRONTEND_FORCEEDIT 20009
#define FRONTEND_SKIRMISH 20010
#define FRONTEND_NEWGAME 20011 // single player
#define FRONTEND_LOADGAME 20012
#define FRONTEND_PLAYINTRO 20013
//#define FRONTEND_MOUSESPEED 20014 // options
#define FRONTEND_SCROLLSPEED 20015
#define FRONTEND_3D_FX 20016
#define FRONTEND_FX 20017
#define FRONTEND_MUSIC 20018
#define FRONTEND_TUTORIAL 20019
#define FRONTEND_FASTPLAY 20020
//#define FRONTEND_FOGTYPE 20021
//#define FRONTEND_MOUSESPEED_SL 20021 // options sliders
#define FRONTEND_SCROLLSPEED_SL 20022
#define FRONTEND_3D_FX_SL 20023
#define FRONTEND_FX_SL 20024
#define FRONTEND_MUSIC_SL 20025
#define FRONTEND_SIDETEXT 20026 // side-ee-ways text
#define FRONTEND_SIDEX 44
#define FRONTEND_SIDEY FRONTEND_BOTFORMY
#define FRONTEND_SIDETEXT1 20027 // side-ee-ways text
#define FRONTEND_SIDETEXT2 20028 // side-ee-ways text
#define FRONTEND_SIDETEXT3 20029 // side-ee-ways text
#define FRONTEND_SIDETEXT4 20030 // side-ee-ways text
#define FE_P0 20031
#define FE_P1 20032
#define FE_P2 20033
#define FE_P3 20034
#define FE_P4 20035
#define FE_P5 20036
#define FE_P6 20037
#define FE_P7 20038
#define FRONTEND_VIBRO 20039
#define FRONTEND_VIBRO_BT 20040
#define FRONTEND_CONTROL 20041
#define FRONTEND_CONTROL_BT 20042
#define FRONTEND_DEMO 20056
#define FRONTEND_DEMO1 20057
#define FRONTEND_DEMO2 20058
#define FRONTEND_DEMO3 20059
#define FRONTEND_DEMO4 20060
#define FRONTEND_DEMO5 20061
#define FRONTEND_LOGO 20062
#define FRONTEND_GAMEOPTIONS 20063
#define FRONTEND_TEXTURES 20065
#define FRONTEND_TEXTURES_R 20066
#define FRONTEND_EFFECTS 20067
#define FRONTEND_EFFECTS_R 20068
#define FRONTEND_SUBTITLES 20069
#define FRONTEND_SUBTITLES_R 20070
#define FRONTEND_SHADOWS 20071
#define FRONTEND_SHADOWS_R 20072
#define FRONTEND_LANGUAGE 20051
#define FRONTEND_LANGUAGE_R 20052
#define FRONTEND_COLOUR 20073
#define FRONTEND_DIFFICULTY 20074
#define FRONTEND_DIFFICULTY_R 20075
#define FRONTEND_LOGOW 248
#define FRONTEND_LOGOH 118
#define FRONTENDHELP_SELECT 20076
#define FRONTENDHELP_CANCEL 20077
enum
{
FRONTEND_BACKDROP = 20000,
FRONTEND_TOPFORM,
FRONTEND_BOTFORM,
FRONTEND_LOGO,
FRONTEND_SIDETEXT, // side-ee-ways text
FRONTEND_SIDETEXT1, // side-ee-ways text
FRONTEND_SIDETEXT2, // side-ee-ways text
FRONTEND_SIDETEXT3, // side-ee-ways text
FRONTEND_SIDETEXT4, // side-ee-ways text
FRONTEND_LOADCAM2, // loading via --GAME CAM_2A
FRONTEND_LOADCAM3, // loading via --GAME CAM_3A
// begin menu
FRONTEND_SINGLEPLAYER = 20100, // title screen
FRONTEND_MULTIPLAYER,
FRONTEND_TUTORIAL,
FRONTEND_PLAYINTRO,
FRONTEND_OPTIONS,
FRONTEND_QUIT,
FRONTEND_FASTPLAY, //tutorial menu option
FRONTEND_NEWGAME = 20200, // single player (menu)
FRONTEND_LOADGAME,
FRONTEND_SKIRMISH,
FRONTEND_HOST = 20300, //multiplayer menu options
FRONTEND_JOIN,
FE_P0, // player 0 buton
FE_P1, // player 1 buton
FE_P2, // player 2 buton
FE_P3, // player 3 buton
FE_P4, // player 4 buton
FE_P5, // player 5 buton
FE_P6, // player 6 buton
FE_P7, // player 7 buton
#define FRONTEND_FOGTYPE 20078
#define FRONTEND_FOGTYPE_R 20079
FRONTEND_GAMEOPTIONS = 21000, // Game Options menu 1
FRONTEND_LANGUAGE,
FRONTEND_LANGUAGE_R,
FRONTEND_COLOUR,
FRONTEND_DIFFICULTY,
FRONTEND_DIFFICULTY_R,
FRONTEND_SCROLLSPEED_SL,
FRONTEND_SCROLLSPEED, // screen scroll speed
//#define FRONTEND_MOUSESPEED 20014 // options
//#define FRONTEND_MOUSESPEED_SL 20021 // options sliders
#define FRONTEND_LOADCAM2 20080
#define FRONTEND_LOADCAM3 20081
FRONTEND_GAMEOPTIONS2 = 22000, // Graphics Options Menu 2
FRONTEND_SSHAKE,
FRONTEND_SSHAKE_R,
FRONTEND_FMVMODE,
FRONTEND_FMVMODE_R,
FRONTEND_SUBTITLES,
FRONTEND_SUBTITLES_R,
FRONTEND_SHADOWS,
FRONTEND_SHADOWS_R,
FRONTEND_FOGTYPE,
FRONTEND_FOGTYPE_R,
#define FRONTEND_SCREENSHAKE 20082
#define FRONTEND_SCREENSHAKE_BT 20083
#define FRONTEND_CENTRESCREEN 20084
#define FRONTEND_PADUP 20085
#define FRONTEND_PADDOWN 20086
#define FRONTEND_PADLEFT 20087
#define FRONTEND_PADRIGHT 20088
FRONTEND_GAMEOPTIONS3 = 23000, // Audio Options Menu 3
FRONTEND_3D_FX, // 3d sound volume
FRONTEND_FX, // 2d (voice) sound volume
FRONTEND_MUSIC, // music volume
FRONTEND_3D_FX_SL,
FRONTEND_FX_SL,
FRONTEND_MUSIC_SL,
#define FRONTEND_KEYMAP 20089
FRONTEND_GAMEOPTIONS4 = 24000, // video Options Menu 4
FRONTEND_WINDOWMODE,
FRONTEND_WINDOWMODE_R,
FRONTEND_RESOLUTION,
FRONTEND_RESOLUTION_R,
FRONTEND_TEXTURESZ,
FRONTEND_TEXTURESZ_R,
FRONTEND_TAKESEFFECT,
FRONTEND_VSYNC,
FRONTEND_VSYNC_R,
#define FRONTEND_CURSOR 20090
#define FRONTEND_CURSOR_SL 20091
FRONTEND_GAMEOPTIONS5 = 25000, // Mouse Options Menu 5
FRONTEND_CURSORMODE,
FRONTEND_CURSORMODE_R,
FRONTEND_TRAP,
FRONTEND_TRAP_R,
FRONTEND_MFLIP,
FRONTEND_MFLIP_R,
#define FRONTEND_GAMEOPTIONS2 20092
#define FRONTEND_SSHAKE 20093
#define FRONTEND_SSHAKE_R 20094
#define FRONTEND_MFLIP 20095
#define FRONTEND_MFLIP_R 20096
FRONTEND_KEYMAP = 26000, // Keymap menu
FRONTEND_NOGAMESAVAILABLE = 31666 // Used when no games are available in lobby
#define FRONTEND_GAMEOPTIONS3 20099
};
#define FRONTEND_GAMEOPTIONS4 31415
#define FRONTEND_WINDOWMODE 31416
#define FRONTEND_WINDOWMODE_R 31417
#define FRONTEND_RESOLUTION 31418
#define FRONTEND_RESOLUTION_R 31419
#define FRONTEND_TRAP 31420
#define FRONTEND_TRAP_R 31421
#define FRONTEND_TEXTURESZ 31422
#define FRONTEND_TEXTURESZ_R 31423
#define FRONTEND_TAKESEFFECT 31424
#define FRONTEND_VSYNC 31425
#define FRONTEND_VSYNC_R 31426
#define FRONTEND_FMVMODE 31427
#define FRONTEND_FMVMODE_R 31428
#define FRONTEND_NOGAMESAVAILABLE 31666 // Used when no games are available in lobby
#define FRONTEND_SEQUENCE 20097
#define FRONTEND_SEQUENCE_R 20098
#endif // __INCLUDED_SRC_FRONTEND_H__