]> www.infradead.org Git - users/mchehab/andors-trail.git/commitdiff
Changed wording on the confirmation dialog box when overwriting a previous savegame...
authorOskar Wiksten <oskar.wiksten@gmail.com>
Thu, 18 Oct 2012 06:30:53 +0000 (06:30 +0000)
committerOskar Wiksten <oskar.wiksten@gmail.com>
Thu, 18 Oct 2012 06:30:53 +0000 (06:30 +0000)
AndorsTrail/res/values/strings.xml
AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/LoadSaveActivity.java

index 372c0003b57cc555940153e3ca513f1d7b9448b9..e03f53f71b9203bb48f84cc0ab8a0e0a01ed080e 100644 (file)
        <string name="iteminfo_effect_decrease_use_cost">Lowers AP cost of using items in combat by %1$d AP</string>
        <string name="iteminfo_effect_increase_reequip_cost">Increases AP cost of equipping items in combat by %1$d AP</string>
        <string name="iteminfo_effect_decrease_reequip_cost">Lowers AP cost of equipping items in combat by %1$d AP</string>
+       
+       <string name="loadsave_save_overwrite_confirmation_all">Are you sure you want to overwrite this savegame?</string> 
                
 </resources>
index a8d56d6c808337bfe83331f82404c68d9fa3a381..79c93659f0e7a5dc051a08280d60b51e519348c2 100644 (file)
@@ -107,12 +107,10 @@ public final class LoadSaveActivity extends Activity implements OnClickListener
        public void onClick(View view) {\r
                final int slot = (Integer) view.getTag();\r
                if (requiresConfirmation(slot)) {\r
-                       final String playerName = model.player.actorTraits.name;\r
-                       \r
                        new AlertDialog.Builder(this)\r
                        .setIcon(android.R.drawable.ic_dialog_alert)\r
                        .setTitle(R.string.loadsave_save_overwrite_confirmation_title)\r
-                       .setMessage(getString(R.string.loadsave_save_overwrite_confirmation, Savegames.quickload(this, slot).playerName, playerName))\r
+                       .setMessage(getString(R.string.loadsave_save_overwrite_confirmation_all))\r
                        .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\r
                            @Override\r
                            public void onClick(DialogInterface dialog, int which) {\r