v0.3.4: externalized ui strings
This commit is contained in:
parent
2776614cd1
commit
b538a00297
|
@ -624,3 +624,8 @@ levels.prisonlevel.bookshelf_desc=This is probably a vestige of a prison library
|
||||||
levels.sewerlevel.water_name=Murky water
|
levels.sewerlevel.water_name=Murky water
|
||||||
levels.sewerlevel.empty_deco_desc=Wet yellowish moss covers the floor.
|
levels.sewerlevel.empty_deco_desc=Wet yellowish moss covers the floor.
|
||||||
levels.sewerlevel.bookshelf_desc=The bookshelf is packed with cheap useless books. Might it burn?
|
levels.sewerlevel.bookshelf_desc=The bookshelf is packed with cheap useless books. Might it burn?
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ui.quickslotbutton.select_item=Select an item to quickslot
|
||||||
|
ui.toolbar.examine_prompt=Press again to search\nPress a cell for info
|
||||||
|
|
|
@ -20,10 +20,9 @@
|
||||||
*/
|
*/
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.ui;
|
package com.shatteredpixel.shatteredpixeldungeon.ui;
|
||||||
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.EquipableItem;
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand;
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica;
|
import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||||
import com.watabou.noosa.Image;
|
import com.watabou.noosa.Image;
|
||||||
import com.watabou.noosa.ui.Button;
|
import com.watabou.noosa.ui.Button;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
|
@ -32,12 +31,9 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene;
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.windows.WndBag;
|
import com.shatteredpixel.shatteredpixeldungeon.windows.WndBag;
|
||||||
|
|
||||||
public class QuickSlotButton extends Button implements WndBag.Listener {
|
public class QuickSlotButton extends Button implements WndBag.Listener {
|
||||||
|
|
||||||
private static final String TXT_SELECT_ITEM = "Select an item to quickslot";
|
|
||||||
|
|
||||||
private static QuickSlotButton[] instance = new QuickSlotButton[4];
|
private static QuickSlotButton[] instance = new QuickSlotButton[4];
|
||||||
private int slotNum;
|
private int slotNum;
|
||||||
|
@ -130,12 +126,12 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
GameScene.selectItem( this, WndBag.Mode.QUICKSLOT, TXT_SELECT_ITEM );
|
GameScene.selectItem( this, WndBag.Mode.QUICKSLOT, Messages.get(this, "select_item") );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean onLongClick() {
|
protected boolean onLongClick() {
|
||||||
GameScene.selectItem( this, WndBag.Mode.QUICKSLOT, TXT_SELECT_ITEM );
|
GameScene.selectItem( this, WndBag.Mode.QUICKSLOT, Messages.get(this, "select_item") );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
*/
|
*/
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.ui;
|
package com.shatteredpixel.shatteredpixeldungeon.ui;
|
||||||
|
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||||
import com.watabou.noosa.Game;
|
import com.watabou.noosa.Game;
|
||||||
import com.watabou.noosa.Gizmo;
|
import com.watabou.noosa.Gizmo;
|
||||||
import com.watabou.noosa.Image;
|
import com.watabou.noosa.Image;
|
||||||
|
@ -277,7 +278,7 @@ public class Toolbar extends Component {
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String prompt() {
|
public String prompt() {
|
||||||
return "Press again to search\nPress a cell for info";
|
return Messages.get(Toolbar.class, "examine_prompt");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user