Skip to content
Snippets Groups Projects
Commit 3fd254d2 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Cosmetic improvements to the Setup Wizard, especial for > 80 col screens

parent e2a01274
No related branches found
No related tags found
No related merge requests found
...@@ -155,13 +155,13 @@ void sort_dirs(int libnum) ...@@ -155,13 +155,13 @@ void sort_dirs(int libnum)
void wizard_msg(const char* text) void wizard_msg(const char* text)
{ {
uifc.showbuf(WIN_HLP|WIN_DYN|WIN_L2R, 2, 2, 80, 20, "Setup Wizard", text, NULL, NULL); uifc.showbuf(WIN_HLP|WIN_DYN|WIN_L2R, 2, 2, 78, 20, "Setup Wizard", text, NULL, NULL);
} }
static bool abort_wizard(void) static bool abort_wizard(void)
{ {
char* opt[] = { "Abort", "Restart", NULL }; char* opt[] = { "Abort", "Restart", NULL };
wizard_msg("You can abort the Setup Wizard or restart from the beginning."); wizard_msg("You can abort the Setup Wizard now or restart from the beginning.");
return uifc.list(WIN_SAV | WIN_L2R | WIN_NOBRDR, 0, 10 ,0, NULL, NULL return uifc.list(WIN_SAV | WIN_L2R | WIN_NOBRDR, 0, 10 ,0, NULL, NULL
,"Abort Setup Wizard", opt) == 0; ,"Abort Setup Wizard", opt) == 0;
} }
...@@ -195,8 +195,7 @@ void cfg_wizard(void) ...@@ -195,8 +195,7 @@ void cfg_wizard(void)
"Press ~ ENTER ~ to advance through the setup wizard or ~ ESC ~ to abort\n" "Press ~ ENTER ~ to advance through the setup wizard or ~ ESC ~ to abort\n"
"or restart the wizard." "or restart the wizard."
); );
if(uifc.list(WIN_SAV | WIN_L2R | WIN_NOBRDR, 0, 12 ,0, NULL, NULL if(uifc.list(WIN_SAV | WIN_L2R | WIN_NOBRDR, 0, 12 ,0, NULL, NULL, NULL, opt) == -1)
,"Continue", opt) == -1)
continue; continue;
if(edit_sys_name(true) < 1) if(edit_sys_name(true) < 1)
continue; continue;
...@@ -253,18 +252,12 @@ void cfg_wizard(void) ...@@ -253,18 +252,12 @@ void cfg_wizard(void)
"required to run Synchronet - the ultimate choice in BBS software for the\n" "required to run Synchronet - the ultimate choice in BBS software for the\n"
"Internet Age.\n" "Internet Age.\n"
"\n" "\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"Thank you for choosing Synchronet,\n" "Thank you for choosing Synchronet,\n"
" Rob Swindell (digital man)\n" "\n"
"Rob Swindell (digital man)\n"
); );
if(!uifc.confirm("Save Changes")) char* save_opts[] = { "Save Changes", "Discard Changes", NULL };
if(uifc.list(WIN_SAV | WIN_L2R | WIN_NOBRDR, 0, 14 ,0, NULL, NULL, NULL, save_opts) != 0)
continue; continue;
if(strcmp(saved_cfg.sys_pass, cfg.sys_pass) != 0) if(strcmp(saved_cfg.sys_pass, cfg.sys_pass) != 0)
reencrypt_keys(saved_cfg.sys_pass, cfg.sys_pass); reencrypt_keys(saved_cfg.sys_pass, cfg.sys_pass);
......
...@@ -231,7 +231,7 @@ int edit_sys_timezone(bool wiz) ...@@ -231,7 +231,7 @@ int edit_sys_timezone(bool wiz)
; ;
if(wiz) if(wiz)
mode = wiz_help(uifc.helpbuf); mode = wiz_help(uifc.helpbuf);
i=uifc.list(mode,0,10,0,&i,0 i=uifc.list(mode,0,9,0,&i,0
,"U.S. Time Zone",opt); ,"U.S. Time Zone",opt);
if(i==-1) if(i==-1)
return -1; return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment