v0.3.1a: updated the examien button toast to better explain it

This commit is contained in:
Evan Debenham 2015-08-21 02:03:37 -04:00 committed by Evan Debenham
parent e853c8c6ab
commit ba2a4f9328
2 changed files with 9 additions and 9 deletions

View File

@ -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 );
}

View File

@ -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";
}
};