From 35169781656788097282ac5bd38bc985751fceef Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 8 Mar 2015 16:39:16 -0400 Subject: [PATCH] v0.2.4c: tweaked layout of UI tabs, no more shuffling once they've appeared --- .../shatteredpixeldungeon/scenes/GameScene.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java b/src/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java index 7d3be072a..008969ad5 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java @@ -373,11 +373,16 @@ public class GameScene extends PixelScene { if (tagAttack != attack.active || tagLoot != loot.visible || tagResume != resume.visible) { + boolean atkAppearing = attack.active && !tagAttack; + boolean lootAppearing = loot.visible && !tagLoot; + boolean resAppearing = resume.visible && !tagResume; + tagAttack = attack.active; tagLoot = loot.visible; tagResume = resume.visible; - layoutTags(); + if (atkAppearing || lootAppearing || resAppearing) + layoutTags(); } cellSelector.enable(Dungeon.hero.ready);