version 1.5 | | version 1.6 |
---|
| | |
#include "ban.h" | | #include "ban.h" |
//end this section addition | | //end this section addition |
| | |
| | #include "hudmsg.h" //for HUD_max_num_disp |
| | |
#ifdef EDITOR | | #ifdef EDITOR |
#include "editor/editor.h" | | #include "editor/editor.h" |
#endif | | #endif |
| | |
| | |
void d1x_options_menu() | | void d1x_options_menu() |
{ | | { |
newmenu_item m[10]; | | newmenu_item m[12]; |
int i=0; | | int i=0; |
int opt=0; | | int opt=0; |
int inputs,checks,commands; | | int inputs,checks,commands; |
| | |
char smaxfps[4]; | | char smaxfps[4]; |
| | char shudmaxnumdisp[4]; |
char thogdir[64]; | | char thogdir[64]; |
| | |
sprintf(thogdir,AltHogDir); | | sprintf(thogdir,AltHogDir); |
sprintf(smaxfps,"%d",maxfps); | | sprintf(smaxfps,"%d",maxfps); |
| | sprintf(shudmaxnumdisp,"%d",HUD_max_num_disp); |
| | |
| | |
m[opt].type = NM_TYPE_MENU; m[opt].text = "Primary autoselect ordering..."; opt++; | | m[opt].type = NM_TYPE_MENU; m[opt].text = "Primary autoselect ordering..."; opt++; |
| | |
m[opt].type = NM_TYPE_INPUT; m[opt].text = smaxfps; m[opt].text_len=3; opt++; | | m[opt].type = NM_TYPE_INPUT; m[opt].text = smaxfps; m[opt].text_len=3; opt++; |
m[opt].type = NM_TYPE_TEXT; m[opt].text = "Mission Directory"; opt++; | | m[opt].type = NM_TYPE_TEXT; m[opt].text = "Mission Directory"; opt++; |
m[opt].type = NM_TYPE_INPUT; m[opt].text = thogdir; m[opt].text_len=64; opt++; | | m[opt].type = NM_TYPE_INPUT; m[opt].text = thogdir; m[opt].text_len=64; opt++; |
| | m[opt].type = NM_TYPE_TEXT; m[opt].text = "Hud Messages lines (1-80):"; opt++; |
| | m[opt].type = NM_TYPE_INPUT; m[opt].text = shudmaxnumdisp; m[opt].text_len=3; opt++; |
checks=opt; | | checks=opt; |
#ifdef __MSDOS__ | | #ifdef __MSDOS__ |
m[opt].type = NM_TYPE_CHECK; m[opt].text = "Joy is sidewinder"; m[opt].value=Joy_is_Sidewinder; opt++; | | m[opt].type = NM_TYPE_CHECK; m[opt].text = "Joy is sidewinder"; m[opt].value=Joy_is_Sidewinder; opt++; |
| | |
} | | } |
else if(i==inputs+2) | | else if(i==inputs+2) |
cfile_use_alternate_hogdir(thogdir); | | cfile_use_alternate_hogdir(thogdir); |
| | else if(i==inputs+4) |
| | { |
| | HUD_max_num_disp = atoi(shudmaxnumdisp); |
| | if(HUD_max_num_disp < 1||HUD_max_num_disp>HUD_MAX_NUM) |
| | { |
| | nm_messagebox(TXT_ERROR, 1, TXT_OK, "Invalid value for hud lines"); |
| | HUD_max_num_disp=4; |
| | // i=(inputs+4);//??? |
| | } |
| | } |
| | |
| | sprintf(shudmaxnumdisp,"%d",HUD_max_num_disp); |
sprintf(smaxfps,"%d",maxfps); | | sprintf(smaxfps,"%d",maxfps); |
m[inputs+0].text=smaxfps; | | // m[inputs+0].text=smaxfps;//redundant.. its not going anywhere |
sprintf(thogdir,AltHogDir); | | sprintf(thogdir,AltHogDir); |
m[inputs+2].text=thogdir; | | // m[inputs+2].text=thogdir;//redundant |
} | | } |
else | | else |
break; | | break; |