v0.4.1a: unidentified catalog items now have descriptions
This commit is contained in:
parent
f592d6f42b
commit
f4efc1d752
|
@ -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 )) {
|
||||||
|
if (identified)
|
||||||
GameScene.show( new WndInfoItem( item ) );
|
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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user