v0.3.4: tweaked window hiding order in wnditem

This commit is contained in:
Evan Debenham 2016-01-29 20:42:24 -05:00 committed by Evan Debenham
parent 25200b2075
commit d3273054ee

View File

@ -20,8 +20,8 @@
*/
package com.shatteredpixel.shatteredpixeldungeon.windows;
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene;
@ -74,9 +74,9 @@ public class WndItem extends Window {
RedButton btn = new RedButton( Messages.get(item, "ac_" + action), 8 ) {
@Override
protected void onClick() {
item.execute( Dungeon.hero, action );
hide();
owner.hide();
item.execute( Dungeon.hero, action );
};
};
btn.setSize( btn.reqWidth(), BUTTON_HEIGHT );