void center_zq_files_dialogs() { jwin_center_dialog(editqt_dlg); jwin_center_dialog(ruleset_dlg); jwin_center_dialog(import_map_bias_dlg); jwin_center_dialog(qtlist_dlg); }
/* enlarge_file_selector: * Enlarges the dialog for Large Mode. -L */ void enlarge_file_selector(int width, int height) { if(file_selector[0].d1==0) { stretch_dialog(file_selector, width, height, 1); } jwin_center_dialog(file_selector); bool show_extlist = file_selector[FS_TYPES].proc != fs_dummy_proc; if(is_large) { large_dialog(file_selector); int bottom = #ifndef HAVE_DIR_LIST file_selector[FS_OK].y; #else file_selector[FS_WIN].y+file_selector[FS_WIN].h-8; #endif file_selector[FS_FILES].dp2=NULL; file_selector[FS_TYPES].y = bottom-file_selector[FS_TYPES].h-5; file_selector[FS_FILES].h=show_extlist ? 152 : 168; file_selector[FS_FILES].y = (show_extlist ? file_selector[FS_TYPES].y:bottom)-(file_selector[FS_FILES].h+5); file_selector[FS_EDIT].y = file_selector[FS_FILES].y-26; ((ListData *)file_selector[FS_FILES].dp)->font = &lfont_l; file_selector[FS_TYPES].dp2=NULL; file_selector[FS_TYPES].h=20; ((ListData *)file_selector[FS_TYPES].dp)->font = &lfont_l; #ifdef HAVE_DIR_LIST file_selector[FS_DISKS].dp2=NULL; file_selector[FS_DISKS].h=20; ((ListData *)file_selector[FS_DISKS].dp)->font = &lfont_l; #endif } }
/* enlarge_file_selector: * Enlarges the dialog for Large Mode. -L */ DIALOG *enlarge_file_selector(int width, int height) { bool show_extlist = file_selector[FS_TYPES].proc != fs_dummy_proc; stretch_dialog(file_selector, width, height, 1); DIALOG *newd = resizeDialog(file_selector, 1.5); jwin_center_dialog(newd); if(is_large()) { int bottom = #ifndef HAVE_DIR_LIST newd[FS_OK].y; #else newd[FS_WIN].y+ newd[FS_WIN].h-8; #endif newd[FS_FILES].dp2=NULL; newd[FS_TYPES].y = bottom- newd[FS_TYPES].h-5; newd[FS_FILES].h=show_extlist ? 152 : 168; newd[FS_FILES].y = (show_extlist ? newd[FS_TYPES].y:bottom)-(newd[FS_FILES].h+5); newd[FS_EDIT].y = newd[FS_FILES].y-26; ((ListData *)newd[FS_FILES].dp)->font = &lfont_l; newd[FS_TYPES].dp2=NULL; newd[FS_TYPES].h=20; ((ListData *)newd[FS_TYPES].dp)->font = &lfont_l; #ifdef HAVE_DIR_LIST newd[FS_DISKS].dp2=NULL; newd[FS_DISKS].h=20; ((ListData *)newd[FS_DISKS].dp)->font = &lfont_l; #endif } return newd; }
void center_zq_rules_dialog() { jwin_center_dialog(animationrules_dlg); jwin_center_dialog(comborules_dlg); jwin_center_dialog(itemrules_dlg); jwin_center_dialog(enemyrules_dlg); jwin_center_dialog(fixesrules_dlg); jwin_center_dialog(miscrules_dlg); jwin_center_dialog(compatrules_dlg); }
void center_zc_init_dialog() { jwin_center_dialog(init_dlg); }