v0.3.4: externalized scroll strings
This commit is contained in:
committed by
Evan Debenham
parent
5ab29b50fa
commit
7ee1f86ee2
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.scrolls;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Invisibility;
|
||||
@@ -30,15 +31,9 @@ import com.shatteredpixel.shatteredpixeldungeon.windows.WndOptions;
|
||||
|
||||
public abstract class InventoryScroll extends Scroll {
|
||||
|
||||
protected String inventoryTitle = "Select an item";
|
||||
protected String inventoryTitle = Messages.get(this, "inv_title");
|
||||
protected WndBag.Mode mode = WndBag.Mode.ALL;
|
||||
|
||||
private static final String TXT_WARNING =
|
||||
"Do you really want to cancel this scroll usage? " +
|
||||
"It will be consumed anyway.";
|
||||
private static final String TXT_YES = "Yes, I'm positive";
|
||||
private static final String TXT_NO = "No, I changed my mind";
|
||||
|
||||
@Override
|
||||
protected void doRead() {
|
||||
|
||||
@@ -53,7 +48,8 @@ public abstract class InventoryScroll extends Scroll {
|
||||
}
|
||||
|
||||
private void confirmCancelation() {
|
||||
GameScene.show( new WndOptions( name(), TXT_WARNING, TXT_YES, TXT_NO ) {
|
||||
GameScene.show( new WndOptions( name(), Messages.get(this, "warning"),
|
||||
Messages.get(this, "yes"), Messages.get(this, "no") ) {
|
||||
@Override
|
||||
protected void onSelect( int index ) {
|
||||
switch (index) {
|
||||
|
||||
Reference in New Issue
Block a user