v0.2.4c: tweaked layout of UI tabs, no more shuffling once they've appeared

This commit is contained in:
Evan Debenham 2015-03-08 16:39:16 -04:00
parent cb661755be
commit 3516978165

View File

@ -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);