void\r
CreateDialogTemplate(int *layoutList, int nr, Option *optionList)\r
{\r
- int i, ii, j, x=1, y=0, maxY=0, buttonRows, breakPoint = -1, k=0;\r
+ int i, ii, j, x=1, y=0, maxY=0, buttonRows, breakPoint = 1000, k=0;\r
\r
template.header.cdit = 0;\r
template.header.cx = 307;\r
\r
int MatchOK()\r
{\r
- if(autoinc) appData.loadGameIndex = appData.loadPositionIndex = -(twice + 1);\r
+ if(autoinc) appData.loadGameIndex = appData.loadPositionIndex = -(twice + 1); else\r
if(!appData.loadGameFile[0]) appData.loadGameIndex = -2*twice; // kludge to pass value of "twice" for use in GUI book\r
if(swiss) { appData.defaultMatchGames = 1; appData.tourneyType = -1; }\r
if(CreateTourney(tfName) && !matchMode) { // CreateTourney reloads original settings if file already existed\r
return matchMode || !appData.participants[0]; // if we failed to create and are not in playing, forbid popdown if there are participants\r
}\r
\r
+void PseudoOK(HWND hDlg)\r
+{\r
+ void (*saveOK)();\r
+ saveOK = okFunc; okFunc = 0;\r
+ GetOptionValues(hDlg, activeCps, activeList);\r
+ EndDialog( hDlg, 0 );\r
+ comboCallback = NULL; activeCps = NULL;\r
+\r
+ if(autoinc) appData.loadGameIndex = appData.loadPositionIndex = -(twice + 1); else\r
+ if(!appData.loadGameFile[0]) appData.loadGameIndex = -2*twice; // kludge to pass value of "twice" for use in GUI book\r
+ if(swiss) { appData.defaultMatchGames = 1; appData.tourneyType = -1; }\r
+}\r
+\r
char *GetParticipants(HWND hDlg)\r
{\r
int len = GetWindowTextLength(GetDlgItem(hDlg, 2001+2*0)) + 1;\r
{ 0, 0, 0, NULL, (void*) &TimeControlOptionsPopup, "", NULL, Button, N_("Time Control...") },\r
{ 0, 0, 0, NULL, (void*) &UciOptionsPopup, "", NULL, Button, N_("Common Engine...") },\r
{ 0, 0, 0, NULL, (void*) &Inspect, "", NULL, Button, N_("Clone Tourney") },\r
+ { 0, 0, 0, NULL, (void*) &PseudoOK, "", NULL, Button, N_("Continue Later") },\r
{ 0, 0, 0, NULL, (void*) &MatchOK, "", NULL, EndMark , "" }\r
};\r
\r