v3.2.0: wndGuess now shows the item to guess in the title, not stone
This commit is contained in:
+3
-3
@@ -99,14 +99,14 @@ public class StoneOfIntuition extends InventoryStone {
|
|||||||
public WndGuess(final Item item){
|
public WndGuess(final Item item){
|
||||||
|
|
||||||
IconTitle titlebar = new IconTitle();
|
IconTitle titlebar = new IconTitle();
|
||||||
titlebar.icon( new ItemSprite(ItemSpriteSheet.STONE_INTUITION, null) );
|
titlebar.icon( new ItemSprite(item) );
|
||||||
titlebar.label( Messages.titleCase(Messages.get(StoneOfIntuition.class, "name")) );
|
titlebar.label( Messages.titleCase(item.name()) );
|
||||||
titlebar.setRect( 0, 0, WIDTH, 0 );
|
titlebar.setRect( 0, 0, WIDTH, 0 );
|
||||||
add( titlebar );
|
add( titlebar );
|
||||||
|
|
||||||
RenderedTextBlock text = PixelScene.renderTextBlock(6);
|
RenderedTextBlock text = PixelScene.renderTextBlock(6);
|
||||||
text.text( Messages.get(this, "text") );
|
text.text( Messages.get(this, "text") );
|
||||||
text.setPos(0, titlebar.bottom());
|
text.setPos(0, titlebar.bottom()+2);
|
||||||
text.maxWidth( WIDTH );
|
text.maxWidth( WIDTH );
|
||||||
add(text);
|
add(text);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user