add a newbie-info for new-from menuitem. Still need one for reset.

This commit is contained in:
Andy2 2011-06-13 18:47:42 -07:00
parent a318021308
commit d470a1c1e0
3 changed files with 16 additions and 2 deletions

View file

@ -68,6 +68,7 @@
<string name="key_notagain_dicts">key_notagain_dicts</string>
<string name="key_notagain_arrow">key_notagain_arrow</string>
<string name="key_notagain_turnchanged">key_notagain_turnchanged</string>
<string name="key_notagain_newfrom">key_notagain_newfrom</string>
<!-- other -->
<string name="default_host">eehouse.org</string>

View file

@ -524,6 +524,10 @@
the scoreboard to get details about that player\'s most recent
move.</string>
<string name="not_again_newfrom">Create a new ready-to-play game
using all the settings from this one. That is, treat this game
as a template.</string>
<string name="relay_game_explainf">To start a basic networked two-player
game in %s:</string>

View file

@ -468,8 +468,17 @@ public class GamesList extends XWListActivity
break;
case R.id.list_item_new_from:
String newName = GameUtils.dupeGame( this, path );
invalPath = newName;
Runnable proc = new Runnable() {
public void run() {
String newName =
GameUtils.dupeGame( GamesList.this, path );
if ( null != m_adapter ) {
m_adapter.inval( newName );
}
}
};
showNotAgainDlgThen( R.string.not_again_newfrom,
R.string.key_notagain_newfrom, proc );
break;
case R.id.list_item_copy: