mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-29 00:25:03 +02:00
Show slightly different texts in watching-menu when no games are available.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@488 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
72bca3161c
commit
b841c2801c
@ -430,11 +430,9 @@ inprogressmenu (int gameid)
|
|||||||
erase ();
|
erase ();
|
||||||
drawbanner (&banner, 1, 1);
|
drawbanner (&banner, 1, 1);
|
||||||
|
|
||||||
|
if (len > 0) {
|
||||||
mvaddstr (3, 1, "The following games are in progress:");
|
mvaddstr (3, 1, "The following games are in progress:");
|
||||||
|
|
||||||
/* clean old games and list good ones */
|
|
||||||
i = 0;
|
|
||||||
|
|
||||||
mvprintw(top_banner_hei,1," ");
|
mvprintw(top_banner_hei,1," ");
|
||||||
if (sortmode == SORTMODE_USERNAME) attron(title_attr);
|
if (sortmode == SORTMODE_USERNAME) attron(title_attr);
|
||||||
mvprintw(top_banner_hei,4,"Username");
|
mvprintw(top_banner_hei,4,"Username");
|
||||||
@ -445,8 +443,7 @@ inprogressmenu (int gameid)
|
|||||||
if (sortmode == SORTMODE_IDLETIME) attron(title_attr);
|
if (sortmode == SORTMODE_IDLETIME) attron(title_attr);
|
||||||
mvprintw(top_banner_hei,58,"Idle time");
|
mvprintw(top_banner_hei,58,"Idle time");
|
||||||
if (sortmode == SORTMODE_IDLETIME) attroff(title_attr);
|
if (sortmode == SORTMODE_IDLETIME) attroff(title_attr);
|
||||||
|
}
|
||||||
/* mvprintw(top_banner_hei,1," Username Game Size Start date & time Idle time");*/
|
|
||||||
|
|
||||||
for (i = 0; i < max_height; i++)
|
for (i = 0; i < max_height; i++)
|
||||||
{
|
{
|
||||||
@ -480,9 +477,11 @@ inprogressmenu (int gameid)
|
|||||||
mvprintw ((btm+top_banner_hei), 1, "(%d-%d of %d)", offset + 1, offset + i, len);
|
mvprintw ((btm+top_banner_hei), 1, "(%d-%d of %d)", offset + 1, offset + i, len);
|
||||||
else
|
else
|
||||||
mvprintw ((btm+top_banner_hei), 1, "(end)");
|
mvprintw ((btm+top_banner_hei), 1, "(end)");
|
||||||
}
|
|
||||||
/*mvprintw ((btm+1+top_banner_hei), 1, "'.' changes sort mode (current: %s)", SORTMODE_NAME[sortmode]);*/
|
|
||||||
mvaddstr ((btm+2+top_banner_hei), 1, "Watch which game? ('?' for help) => ");
|
mvaddstr ((btm+2+top_banner_hei), 1, "Watch which game? ('?' for help) => ");
|
||||||
|
} else {
|
||||||
|
mvprintw(top_banner_hei,4,"Sorry, no games available for viewing.");
|
||||||
|
mvaddstr((btm+2+top_banner_hei), 1, "Press 'q' to return, or '?' for help => ");
|
||||||
|
}
|
||||||
|
|
||||||
refresh ();
|
refresh ();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user