v0.4.1a: unidentified catalog items now have descriptions

This commit is contained in:
Evan Debenham 2016-08-08 16:41:32 -04:00
parent f592d6f42b
commit f4efc1d752

View File

@ -201,8 +201,12 @@ public class WndCatalogs extends WndTabbed {
} }
public boolean onClick( float x, float y ) { public boolean onClick( float x, float y ) {
if (identified && inside( x, y )) { if (inside( x, y )) {
GameScene.show( new WndInfoItem( item ) ); 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; return true;
} else { } else {
return false; return false;