hacked the titlescreen to fix resize-related UI shit

This commit is contained in:
minjaesong
2017-11-01 15:46:09 +09:00
parent b2e0913ff5
commit bb8fc25d14
4 changed files with 15 additions and 9 deletions

View File

@@ -369,7 +369,10 @@ class TitleScreen(val batch: SpriteBatch) : Screen {
if (loadDone) {
// resize UI by re-creating it (!!)
uiMenu.resize(Terrarum.WIDTH, Terrarum.HEIGHT)
uiMenu.setPosition(0, UITitleRemoConRoot.menubarOffY)
//uiMenu.setPosition(0, UITitleRemoConRoot.menubarOffY)
uiMenu.setPosition(0, 0) // shitty hack. Could be:
// 1: Init code and resize code are different
// 2: The UI is coded shit
}
if (lightmapInitialised) {