| ANSWER TO EXERCISE 92 | |
|
First put the directive Replace DrawStatusLine; before including the library; define the global variable invisible_status somewhere. Then give the following redefinition:
[ DrawStatusLine i width posa posb;
if (invisible_status==1) return;
@split_window 1; @set_window 1; @set_cursor 1 1; style reverse;
width = 0->33; posa = width-26; posb = width-13;
spaces (width-1);
@set_cursor 1 2; PrintShortName(location);
if (width > 76)
{ @set_cursor 1 posa; print "Score: ", sline1;
@set_cursor 1 posb; print "Moves: ", sline2;
}
if (width > 63 && width <= 76)
{ @set_cursor 1 posb; print sline1, "/", sline2;
}
@set_cursor 1 1; style roman; @set_window 0;
];
|