v3.2.0: wndGuess now shows the item to guess in the title, not stone

This commit is contained in:
Evan Debenham
2025-07-30 13:33:43 -04:00
parent bdf0c79e02
commit 4bbd803d8b

View File

@@ -99,14 +99,14 @@ public class StoneOfIntuition extends InventoryStone {
public WndGuess(final Item item){
IconTitle titlebar = new IconTitle();
titlebar.icon( new ItemSprite(ItemSpriteSheet.STONE_INTUITION, null) );
titlebar.label( Messages.titleCase(Messages.get(StoneOfIntuition.class, "name")) );
titlebar.icon( new ItemSprite(item) );
titlebar.label( Messages.titleCase(item.name()) );
titlebar.setRect( 0, 0, WIDTH, 0 );
add( titlebar );
RenderedTextBlock text = PixelScene.renderTextBlock(6);
text.text( Messages.get(this, "text") );
text.setPos(0, titlebar.bottom());
text.setPos(0, titlebar.bottom()+2);
text.maxWidth( WIDTH );
add(text);