From ba2a4f93285edec053bfbfe836e3ef96d0316fae Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 21 Aug 2015 02:03:37 -0400 Subject: [PATCH] v0.3.1a: updated the examien button toast to better explain it --- .../shatteredpixeldungeon/ui/Toast.java | 16 ++++++++-------- .../shatteredpixeldungeon/ui/Toolbar.java | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/ui/Toast.java b/src/com/shatteredpixel/shatteredpixeldungeon/ui/Toast.java index 5d25000c0..b5b6d6ed1 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/ui/Toast.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/ui/Toast.java @@ -30,34 +30,34 @@ public class Toast extends Component { private static final float MARGIN_HOR = 2; private static final float MARGIN_VER = 2; - + protected NinePatch bg; protected SimpleButton close; protected BitmapText text; - + public Toast( String text ) { super(); text( text ); - + width = this.text.width() + close.width() + bg.marginHor() + MARGIN_HOR * 3; height = Math.max( this.text.height(), close.height() ) + bg.marginVer() + MARGIN_VER * 2; } - + @Override protected void createChildren() { super.createChildren(); - + bg = Chrome.get( Chrome.Type.TOAST_TR ); add( bg ); - + close = new SimpleButton( Icons.get( Icons.CLOSE ) ) { protected void onClick() { onClose(); }; }; add( close ); - - text = PixelScene.createText( 8 ); + + text = PixelScene.createMultiline(8); add( text ); } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/ui/Toolbar.java b/src/com/shatteredpixel/shatteredpixeldungeon/ui/Toolbar.java index f8b4b98ca..386f58839 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/ui/Toolbar.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/ui/Toolbar.java @@ -305,7 +305,7 @@ public class Toolbar extends Component { } @Override public String prompt() { - return "Select a cell to examine"; + return "Press again to search\nPress a tile to examine"; } };