mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-09 02:23:53 +07:00
Created :tools subproject default configs
This commit is contained in:
parent
f32356ccfb
commit
a1b3d83422
BIN
tools/assets/ic_launcher_128.png
Normal file
BIN
tools/assets/ic_launcher_128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
tools/assets/ic_launcher_16.png
Normal file
BIN
tools/assets/ic_launcher_16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
tools/assets/ic_launcher_32.png
Normal file
BIN
tools/assets/ic_launcher_32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
@ -22,6 +22,9 @@ subprojects {
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'application'
|
||||
|
||||
sourceSets.main.resources.srcDirs += project(':tools').file('assets')
|
||||
idea.module.resourceDirs += project(':tools').file('assets')
|
||||
|
||||
dependencies {
|
||||
implementation project(':core')
|
||||
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
|
||||
@ -35,4 +38,27 @@ subprojects {
|
||||
dependencies {
|
||||
testImplementation 'junit:junit:4.12'
|
||||
}
|
||||
|
||||
run {
|
||||
ignoreExitValue true
|
||||
|
||||
// Required to run LWJGL3 java apps on MacOS
|
||||
if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.MAC_OS) {
|
||||
jvmArgs += "-XstartOnFirstThread"
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveBaseName = project.name
|
||||
duplicatesStrategy DuplicatesStrategy.EXCLUDE
|
||||
dependsOn configurations.runtimeClasspath
|
||||
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
manifest {
|
||||
attributes 'Main-Class': application.mainClass
|
||||
}
|
||||
|
||||
doLast {
|
||||
file(archiveFile).setExecutable(true, false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,26 +1 @@
|
||||
application {
|
||||
mainClass = 'com.riiablo.FontMetricsTool'
|
||||
}
|
||||
|
||||
run {
|
||||
workingDir = rootProject.file('assets').path
|
||||
setIgnoreExitValue(true)
|
||||
|
||||
// Required to run LWJGL3 java apps on MacOS
|
||||
if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.MAC_OS) {
|
||||
jvmArgs += "-XstartOnFirstThread"
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveBaseName = project.name
|
||||
dependsOn configurations.runtimeClasspath
|
||||
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
manifest {
|
||||
attributes 'Main-Class': application.mainClass
|
||||
}
|
||||
|
||||
doLast {
|
||||
file(archiveFile).setExecutable(true, false)
|
||||
}
|
||||
}
|
||||
application.mainClassName = 'com.riiablo.FontMetricsTool'
|
||||
|
@ -8,6 +8,7 @@ import com.kotcrab.vis.ui.widget.spinner.Spinner;
|
||||
|
||||
import com.badlogic.gdx.Application;
|
||||
import com.badlogic.gdx.ApplicationAdapter;
|
||||
import com.badlogic.gdx.Files.FileType;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.assets.AssetManager;
|
||||
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
|
||||
@ -52,6 +53,9 @@ public class FontMetricsTool extends ApplicationAdapter {
|
||||
FileHandle d2Home = homeDirs.first();
|
||||
|
||||
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
|
||||
config.addIcon("ic_launcher_16.png", FileType.Internal);
|
||||
config.addIcon("ic_launcher_32.png", FileType.Internal);
|
||||
config.addIcon("ic_launcher_128.png", FileType.Internal);
|
||||
config.title = TAG;
|
||||
config.resizable = true;
|
||||
config.width = 800;
|
||||
|
@ -1,26 +1 @@
|
||||
application {
|
||||
mainClass = 'com.riiablo.map.MapViewer'
|
||||
}
|
||||
|
||||
run {
|
||||
workingDir = rootProject.file('assets').path
|
||||
setIgnoreExitValue(true)
|
||||
|
||||
// Required to run LWJGL3 java apps on MacOS
|
||||
if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.MAC_OS) {
|
||||
jvmArgs += "-XstartOnFirstThread"
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveBaseName = project.name
|
||||
dependsOn configurations.runtimeClasspath
|
||||
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
manifest {
|
||||
attributes 'Main-Class': application.mainClass
|
||||
}
|
||||
|
||||
doLast {
|
||||
file(archiveFile).setExecutable(true, false)
|
||||
}
|
||||
}
|
||||
application.mainClassName = 'com.riiablo.map.MapViewer'
|
||||
|
@ -18,6 +18,7 @@ import net.mostlyoriginal.api.event.common.EventSystem;
|
||||
|
||||
import com.badlogic.gdx.Application;
|
||||
import com.badlogic.gdx.ApplicationAdapter;
|
||||
import com.badlogic.gdx.Files.FileType;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.Input;
|
||||
import com.badlogic.gdx.InputAdapter;
|
||||
@ -184,6 +185,9 @@ public class MapViewer extends ApplicationAdapter {
|
||||
|
||||
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
|
||||
config.title = "Map Viewer";
|
||||
config.addIcon("ic_launcher_16.png", FileType.Internal);
|
||||
config.addIcon("ic_launcher_32.png", FileType.Internal);
|
||||
config.addIcon("ic_launcher_128.png", FileType.Internal);
|
||||
config.resizable = true;
|
||||
config.vSyncEnabled = false;
|
||||
config.width = 1280; // 1280
|
||||
|
Loading…
Reference in New Issue
Block a user