v0.4.1a: corrections to inventory window logic
This commit is contained in:
parent
fd520b7f77
commit
57c6abd730
|
@ -570,7 +570,7 @@ public class GameScene extends PixelScene {
|
|||
banner.camera = uiCamera;
|
||||
banner.x = align( uiCamera, (uiCamera.width - banner.width) / 2 );
|
||||
banner.y = align( uiCamera, (uiCamera.height - banner.height) / 3 );
|
||||
add( banner );
|
||||
addToFront( banner );
|
||||
}
|
||||
|
||||
// -------------------------------------------------------
|
||||
|
@ -689,7 +689,7 @@ public class GameScene extends PixelScene {
|
|||
|
||||
public static void show( Window wnd ) {
|
||||
cancelCellSelector();
|
||||
scene.add( wnd );
|
||||
scene.addToFront( wnd );
|
||||
}
|
||||
|
||||
public static void afterObserve() {
|
||||
|
@ -756,7 +756,7 @@ public class GameScene extends PixelScene {
|
|||
WndBag.getBag( WandHolster.class, listener, mode, title ) :
|
||||
WndBag.lastBag( listener, mode, title );
|
||||
|
||||
scene.add( wnd );
|
||||
scene.addToFront( wnd );
|
||||
|
||||
return wnd;
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ public class WndItem extends Window {
|
|||
@Override
|
||||
protected void onClick() {
|
||||
hide();
|
||||
if (owner != null) owner.hide();
|
||||
if (owner != null && owner.parent != null) owner.hide();
|
||||
item.execute( Dungeon.hero, action );
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user