v0.3.4 externalized journal strings

This commit is contained in:
Evan Debenham 2015-12-31 00:13:13 -05:00 committed by Evan Debenham
parent c1d55bcd77
commit c16ae2ac0b
3 changed files with 28 additions and 18 deletions

View File

@ -22,28 +22,27 @@ package com.shatteredpixel.shatteredpixeldungeon;
import java.util.ArrayList;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.watabou.utils.Bundlable;
import com.watabou.utils.Bundle;
public class Journal {
public static enum Feature {
WELL_OF_HEALTH ( "Well of Health" ),
WELL_OF_AWARENESS ( "Well of Awareness" ),
WELL_OF_TRANSMUTATION ( "Well of Transmutation" ),
ALCHEMY ( "Alchemy pot" ),
GARDEN ( "Garden" ),
STATUE ( "Animated statue" ),
public enum Feature {
WELL_OF_HEALTH,
WELL_OF_AWARENESS,
WELL_OF_TRANSMUTATION,
ALCHEMY,
GARDEN,
STATUE,
GHOST ( "Sad ghost" ),
WANDMAKER ( "Old wandmaker" ),
TROLL ( "Troll blacksmith" ),
IMP ( "Ambitious imp" );
GHOST,
WANDMAKER,
TROLL,
IMP;
public String desc;
private Feature( String desc ) {
this.desc = desc;
public String desc() {
return Messages.get(this, name());
}
};

View File

@ -706,3 +706,14 @@ challenges.no_herbalism=Barren land
challenges.swarm_intelligence=Swarm intelligence
challenges.darkness=Into darkness
challenges.no_scrolls=Forbidden runes
journal$feature.well_of_health=Well of Health
journal$feature.well_of_awareness=Well of Awareness
journal$feature.well_of_transmutation=Well of Transmutation
journal$feature.alchemy=Alchemy pot
journal$feature.garden=Garden
journal$feature.statue=Animated statue
journal$feature.ghost=Sad ghost
journal$feature.wandmaker=Old wandmaker
journal$feature.troll=Troll blacksmith
journal$feature.imp=Ambitious imp

View File

@ -88,7 +88,7 @@ public class WndJournal extends Window {
public ListItem( Journal.Feature f, int d ) {
super();
feature.text( f.desc );
feature.text( f.desc() );
feature.measure();
depth.text( Integer.toString( d ) );