mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
show in collapsed summary if game is over
This commit is contained in:
parent
1ae2879fb7
commit
1fc286ee95
2 changed files with 5 additions and 1 deletions
|
@ -70,6 +70,8 @@
|
||||||
form a complete game. We'll be in this state as long as the
|
form a complete game. We'll be in this state as long as the
|
||||||
game exists. -->
|
game exists. -->
|
||||||
<string name="summary_relay_connf">Game in play in room \"%s\"</string>
|
<string name="summary_relay_connf">Game in play in room \"%s\"</string>
|
||||||
|
<!-- Final state: game is over. -->
|
||||||
|
<string name="summary_relay_gameoverf">Game over in room \"%s\"</string>
|
||||||
|
|
||||||
<!-- Games that have ended are listed with this string -->
|
<!-- Games that have ended are listed with this string -->
|
||||||
<string name="gameOver">Game over</string>
|
<string name="gameOver">Game over</string>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* -*- compile-command: "cd ../../../../../../; ant debug install"; -*- */
|
/* -*- compile-command: "cd ../../../../../../; ant debug install"; -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright 2009-2010 by Eric House (xwords@eehouse.org). All
|
* Copyright 2009 - 2012 by Eric House (xwords@eehouse.org). All
|
||||||
* rights reserved.
|
* rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
|
@ -153,6 +153,8 @@ public class GameSummary {
|
||||||
fmtID = R.string.summary_relay_conff;
|
fmtID = R.string.summary_relay_conff;
|
||||||
} else if ( anyMissing() ) {
|
} else if ( anyMissing() ) {
|
||||||
fmtID = R.string.summary_relay_waitf;
|
fmtID = R.string.summary_relay_waitf;
|
||||||
|
} else if ( gameOver ) {
|
||||||
|
fmtID = R.string.summary_relay_gameoverf;
|
||||||
} else {
|
} else {
|
||||||
fmtID = R.string.summary_relay_connf;
|
fmtID = R.string.summary_relay_connf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue