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

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

parent 650c9c3d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3797 failed
......@@ -155,13 +155,13 @@ void sort_dirs(int libnum)
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)
{
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
,"Abort Setup Wizard", opt) == 0;
}
......@@ -195,8 +195,7 @@ void cfg_wizard(void)
"Press ~ ENTER ~ to advance through the setup wizard or ~ ESC ~ to abort\n"
"or restart the wizard."
);
if(uifc.list(WIN_SAV | WIN_L2R | WIN_NOBRDR, 0, 12 ,0, NULL, NULL
,"Continue", opt) == -1)
if(uifc.list(WIN_SAV | WIN_L2R | WIN_NOBRDR, 0, 12 ,0, NULL, NULL, NULL, opt) == -1)
continue;
if(edit_sys_name(true) < 1)
continue;
......@@ -253,18 +252,12 @@ void cfg_wizard(void)
"required to run Synchronet - the ultimate choice in BBS software for the\n"
"Internet Age.\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"\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;
if(strcmp(saved_cfg.sys_pass, cfg.sys_pass) != 0)
reencrypt_keys(saved_cfg.sys_pass, cfg.sys_pass);
......
......@@ -231,7 +231,7 @@ int edit_sys_timezone(bool wiz)
;
if(wiz)
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);
if(i==-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