v0.2.4c: tweaked layout of UI tabs, no more shuffling once they've appeared
This commit is contained in:
parent
cb661755be
commit
3516978165
|
@ -373,10 +373,15 @@ public class GameScene extends PixelScene {
|
||||||
|
|
||||||
if (tagAttack != attack.active || tagLoot != loot.visible || tagResume != resume.visible) {
|
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;
|
tagAttack = attack.active;
|
||||||
tagLoot = loot.visible;
|
tagLoot = loot.visible;
|
||||||
tagResume = resume.visible;
|
tagResume = resume.visible;
|
||||||
|
|
||||||
|
if (atkAppearing || lootAppearing || resAppearing)
|
||||||
layoutTags();
|
layoutTags();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user