Disabled controller support

This commit is contained in:
Anuken 2017-12-24 20:50:00 -05:00
parent 740b996c69
commit 560ab4d379
4 changed files with 30 additions and 15 deletions

View File

@ -84,12 +84,21 @@ project(":core") {
apply plugin: "java"
dependencies {
if(new File('../uCore').exists()){
boolean comp = System.properties["release"] == null || System.properties["release"].equals("false");
if(!comp){
println("NOTICE: Compiling release build.")
}else{
println("Compiling DEBUG build.");
}
if(new File('../uCore').exists() && comp){
compile project(":uCore")
}else{
compile "com.github.anuken:ucore:$uCoreVersion"
}
if(new File('../GDXGifRecorder').exists()) {
if(new File('../GDXGifRecorder').exists() && comp) {
compile project(":GDXGifRecorder")
}
compile "com.badlogicgames.gdx:gdx:$gdxVersion"

View File

@ -57,10 +57,10 @@ public class MindustrySettingsDialog extends SettingsDialog{
menu.row();
menu.addButton("Sound", () -> visible(2));
//if(!Vars.android) {
menu.row();
menu.addButton("Controls", () -> Vars.ui.showControls());
//}
if(!Vars.android) {
menu.row();
menu.addButton("Controls", () -> Vars.ui.showControls());
}
prefs.clearChildren();
prefs.add(menu);

View File

@ -50,8 +50,10 @@ ext.getPlatform = {
if (project.hasProperty("platform")) {
def lc = platform.toLowerCase()
if(lc.equals("windows")){
return "windows64";
if(lc.equals("windows64")) {
return "windows64";
}else if(lc.equals("windows32")){
return "windows32";
}else if(lc.equals("linux")){
return "linux64";
}else if(lc.equals("mac")){

View File

@ -1,11 +1,15 @@
include 'desktop', 'html', 'core', 'android'
if (new File(settingsDir, '../uCore').exists()) {
include ':uCore'
project(':uCore').projectDir = new File(settingsDir, '../uCore')
}
if(System.properties["release"] == null || System.properties["release"].equals("false")){
if (new File(settingsDir, '../uCore').exists()) {
include ':uCore'
project(':uCore').projectDir = new File(settingsDir, '../uCore')
}
if (new File(settingsDir, '../GDXGifRecorder').exists()) {
include ':GDXGifRecorder'
project(':GDXGifRecorder').projectDir = new File(settingsDir, '../GDXGifRecorder')
if (new File(settingsDir, '../GDXGifRecorder').exists()) {
include ':GDXGifRecorder'
project(':GDXGifRecorder').projectDir = new File(settingsDir, '../GDXGifRecorder')
}
}else{
println("Not including local repositories.")
}