fixed: noclipped player won't move up and down when gamepad is plugged in

This commit is contained in:
minjaesong
2019-04-06 03:58:02 +09:00
parent 968a1a0888
commit a5d33da1c9
3 changed files with 88 additions and 14 deletions

View File

@@ -103,7 +103,7 @@ open class UIItemTextButton(
else inactiveCol
font.draw(batch,
label,
label, //"$label/H:${highlighted.toInt()}, M:${mouseUp.toInt()}",
when (alignment) {
Alignment.CENTRE -> posX.toFloat() + width.minus(textW).div(2) + (preGapX - postGapX).div(2)
Alignment.LEFT -> posX.toFloat() + preGapX