v0.3.4 externalized journal strings
This commit is contained in:
parent
c1d55bcd77
commit
c16ae2ac0b
|
@ -22,28 +22,27 @@ package com.shatteredpixel.shatteredpixeldungeon;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||||
import com.watabou.utils.Bundlable;
|
import com.watabou.utils.Bundlable;
|
||||||
import com.watabou.utils.Bundle;
|
import com.watabou.utils.Bundle;
|
||||||
|
|
||||||
public class Journal {
|
public class Journal {
|
||||||
|
|
||||||
public static enum Feature {
|
public enum Feature {
|
||||||
WELL_OF_HEALTH ( "Well of Health" ),
|
WELL_OF_HEALTH,
|
||||||
WELL_OF_AWARENESS ( "Well of Awareness" ),
|
WELL_OF_AWARENESS,
|
||||||
WELL_OF_TRANSMUTATION ( "Well of Transmutation" ),
|
WELL_OF_TRANSMUTATION,
|
||||||
ALCHEMY ( "Alchemy pot" ),
|
ALCHEMY,
|
||||||
GARDEN ( "Garden" ),
|
GARDEN,
|
||||||
STATUE ( "Animated statue" ),
|
STATUE,
|
||||||
|
|
||||||
GHOST ( "Sad ghost" ),
|
GHOST,
|
||||||
WANDMAKER ( "Old wandmaker" ),
|
WANDMAKER,
|
||||||
TROLL ( "Troll blacksmith" ),
|
TROLL,
|
||||||
IMP ( "Ambitious imp" );
|
IMP;
|
||||||
|
|
||||||
public String desc;
|
public String desc() {
|
||||||
|
return Messages.get(this, name());
|
||||||
private Feature( String desc ) {
|
|
||||||
this.desc = desc;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -706,3 +706,14 @@ challenges.no_herbalism=Barren land
|
||||||
challenges.swarm_intelligence=Swarm intelligence
|
challenges.swarm_intelligence=Swarm intelligence
|
||||||
challenges.darkness=Into darkness
|
challenges.darkness=Into darkness
|
||||||
challenges.no_scrolls=Forbidden runes
|
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
|
|
@ -88,7 +88,7 @@ public class WndJournal extends Window {
|
||||||
public ListItem( Journal.Feature f, int d ) {
|
public ListItem( Journal.Feature f, int d ) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
feature.text( f.desc );
|
feature.text( f.desc() );
|
||||||
feature.measure();
|
feature.measure();
|
||||||
|
|
||||||
depth.text( Integer.toString( d ) );
|
depth.text( Integer.toString( d ) );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user