update ArenaScene

- support portrait mode for arena battles
- update textratypist to fix text rendering
This commit is contained in:
Anthony Calosa
2023-03-05 02:51:01 +08:00
parent 96c94ffa95
commit 908a55e917
9 changed files with 96 additions and 38 deletions

View File

@@ -407,9 +407,10 @@ public class Controls {
{
if(textraFont==null)
{
textraFont=new Font(getSkin().getFont("default"), 0f, 1.5f, 0f, 0f);
textraFont.addAtlas(Config.instance().getAtlas(Paths.ITEMS_ATLAS));
textraFont.addAtlas(Config.instance().getAtlas(Paths.PIXELMANA_ATLAS));
textraFont=new Font(getSkin().getFont("default"), 0f, 2f, 0f, 0f);
textraFont.integerPosition = false;
textraFont.addAtlas(Config.instance().getAtlas(Paths.ITEMS_ATLAS), 0, 0, 0);
textraFont.addAtlas(Config.instance().getAtlas(Paths.PIXELMANA_ATLAS), 0, -12f, 0);
}
return textraFont;
}