{ "firstDrawDepth", ArgInt, (void *) &appData.drawDepth[0], FALSE, (ArgIniType) 0 },
{ "secondDrawDepth", ArgInt, (void *) &appData.drawDepth[1], FALSE, (ArgIniType) 0 },
{ "memoHeaders", ArgBoolean, (void *) &appData.headers, TRUE, (ArgIniType) FALSE },
+ { "startupMessage", ArgString, (void *) &appData.message, FALSE, (ArgIniType) "" },
+ { "messageSuppress", ArgString, (void *) &appData.suppress, XBOARD, (ArgIniType) "" },
#if ZIPPY
{ "zippyTalk", ArgBoolean, (void *) &appData.zippyTalk, FALSE, (ArgIniType) ZIPPY_TALK },
else {
TimeMark now;
GetTimeMark(&now);
- if(SubtractTimeMarks(&now, &programStartTime) < 1000) {
- DrawSeekBackground(2*squareSize, 3*squareSize, 6*squareSize, 5*squareSize);
- DrawText("Right-clicking dialog texts", 2*squareSize + 5, 3*squareSize + 5, 2);
- DrawText("pops up help on them", 2*squareSize + 5, (int) (3.3*squareSize) + 5, 2);
+ if(repaint && SubtractTimeMarks(&now, &programStartTime) < 1000) {
+ char *p = appData.message, *q;
+ i = 0;
+ while(*p) {
+ q = strchr(p, '\n');
+ if(q) *q = NULLCHAR;
+ if(!strstr(appData.suppress, p)) {
+ if(i == 0) DrawSeekBackground(2*squareSize, 3*squareSize, 6*squareSize, 5*squareSize);
+ DrawText(p, 2*squareSize + 5, (int) ((3 + 0.3*i++)*squareSize) + 5, 2);
+ }
+ if(q) *q++ = '\n'; else q = "";
+ p = q;
+ }
GraphExpose(currBoard, 2*squareSize, 3*squareSize, 4*squareSize, 2*squareSize);
messedUp = TRUE;
} else messedUp = FALSE;
int recentEngines;
char *recentEngineList;
+ char *message;
+ char *suppress;
char *tourneyFile;
char *defName;
char *processes;
} else snprintf(buf, MSG_SIZ, "%s", xboardMan); // use xboard man
f = fopen(buf, "r");
if(f) {
+ char *msg = "Right-clicking menu item or dialog text pops up help on it";
+ ASSIGN(appData.suppress, msg);
if(strstr(buf, ".gz")) { // man file is gzipped
if(!manText[n]) { // unzipped text not buffered yet
snprintf(tidy, MSG_SIZ, "gunzip -c %s", buf);
# end
}
;
+; Anouncement to make at startup
+;
+-startupMessage {Right-clicking menu item or
+dialog text pops up help on it}
+;
; Save user settings.
; Must be last in file to make user options prevail over system-wide settings!
;