From f4efc1d752dab330f622b84d0e517dacfeb3d775 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 8 Aug 2016 16:41:32 -0400 Subject: [PATCH] v0.4.1a: unidentified catalog items now have descriptions --- .../shatteredpixeldungeon/windows/WndCatalogs.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndCatalogs.java b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndCatalogs.java index 7cf3e20ad..5ec30ff17 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndCatalogs.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndCatalogs.java @@ -201,8 +201,12 @@ public class WndCatalogs extends WndTabbed { } public boolean onClick( float x, float y ) { - if (identified && inside( x, y )) { - GameScene.show( new WndInfoItem( item ) ); + if (inside( x, y )) { + if (identified) + GameScene.show( new WndInfoItem( item ) ); + else + GameScene.show( new WndTitledMessage( new ItemSprite(ItemSpriteSheet.SOMETHING, null), + Messages.titleCase(item.trueName()), item.desc() )); return true; } else { return false;