fixing list UI's colours; buildingmaker palette wip

This commit is contained in:
minjaesong
2019-02-14 15:55:31 +09:00
parent 72dbc18128
commit fcf9aa1b79
14 changed files with 229 additions and 64 deletions

View File

@@ -329,19 +329,32 @@ public class AppLoader implements ApplicationListener {
try {
gamepad = new XinputControllerAdapter(XInputDevice.getDeviceFor(0));
}
catch (Throwable e) { }
catch (Throwable e) {
gamepad = null;
}
// nullify if not actually connected
if (!((XinputControllerAdapter) gamepad).getC().isConnected()) {
gamepad = null;
}
}
if (gamepad == null) {
try {
gamepad = new GdxControllerAdapter(Controllers.getControllers().get(0));
}
catch (Throwable e) { }
catch (Throwable e) {
gamepad = null;
}
}
if (gamepad != null) {
environment = RunningEnvironment.CONSOLE;
}
else {
environment = RunningEnvironment.PC;
}
// make loading list