v0.9.3: fixed indicators appearing at the top-left for 1 frame

This commit is contained in:
Evan Debenham 2021-05-19 15:31:59 -04:00
parent c4689905bf
commit 77b023d5f6

View File

@ -683,28 +683,26 @@ public class GameScene extends PixelScene {
float pos = scene.toolbar.top(); float pos = scene.toolbar.top();
scene.attack.setPos( tagLeft, pos - scene.attack.height());
scene.attack.flip(tagLeft == 0);
if (scene.tagAttack){ if (scene.tagAttack){
scene.attack.setPos( tagLeft, pos - scene.attack.height());
scene.attack.flip(tagLeft == 0);
pos = scene.attack.top(); pos = scene.attack.top();
} }
scene.loot.setPos( tagLeft, pos - scene.loot.height() );
scene.loot.flip(tagLeft == 0);
if (scene.tagLoot) { if (scene.tagLoot) {
scene.loot.setPos( tagLeft, pos - scene.loot.height() );
scene.loot.flip(tagLeft == 0);
pos = scene.loot.top(); pos = scene.loot.top();
} }
scene.action.setPos( tagLeft, pos - scene.action.height() );
scene.action.flip(tagLeft == 0);
if (scene.tagAction) { if (scene.tagAction) {
scene.action.setPos( tagLeft, pos - scene.action.height() );
scene.action.flip(tagLeft == 0);
pos = scene.action.top(); pos = scene.action.top();
} }
if (scene.tagResume) { scene.resume.setPos( tagLeft, pos - scene.resume.height() );
scene.resume.setPos( tagLeft, pos - scene.resume.height() ); scene.resume.flip(tagLeft == 0);
scene.resume.flip(tagLeft == 0);
}
} }
@Override @Override