Add MdgaApp.java and run config
This commit is contained in:
18
Projekte/.run/MdgaApp.run.xml
Normal file
18
Projekte/.run/MdgaApp.run.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="MdgaApp" type="Application" factoryName="Application" singleton="false"
|
||||
nameIsGenerated="true">
|
||||
<option name="MAIN_CLASS_NAME" value="pp.mdga.client.MdgaApp"/>
|
||||
<module name="Projekte.mdga.client.main"/>
|
||||
<option name="VM_PARAMETERS" value="-Djava.util.logging.config.file=logging.properties"/>
|
||||
<option name="WORKING_DIRECTORY" value="$MODULE_WORKING_DIR$"/>
|
||||
<extension name="coverage">
|
||||
<pattern>
|
||||
<option name="PATTERN" value="pp.mdga.client.*"/>
|
||||
<option name="ENABLED" value="true"/>
|
||||
</pattern>
|
||||
</extension>
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true"/>
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
||||
22
Projekte/mdga/client/build.gradle
Normal file
22
Projekte/mdga/client/build.gradle
Normal file
@@ -0,0 +1,22 @@
|
||||
plugins {
|
||||
id 'buildlogic.jme-application-conventions'
|
||||
}
|
||||
|
||||
description = 'mdga client'
|
||||
|
||||
dependencies {
|
||||
implementation project(":jme-common")
|
||||
implementation project(":mdga:model")
|
||||
|
||||
implementation libs.jme3.desktop
|
||||
|
||||
runtimeOnly libs.jme3.awt.dialogs
|
||||
runtimeOnly libs.jme3.plugins
|
||||
runtimeOnly libs.jme3.jogg
|
||||
runtimeOnly libs.jme3.testdata
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = 'pp.mdga.client.MdgaApp'
|
||||
applicationName = 'mdga'
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
import com.jme3.app.SimpleApplication;
|
||||
import com.jme3.system.AppSettings;
|
||||
import com.jme3.system.JmeContext;
|
||||
|
||||
public class MdgaApp extends SimpleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
AppSettings settings = new AppSettings(true);
|
||||
settings.setCenterWindow(true);
|
||||
settings.setWidth(1920);
|
||||
settings.setHeight(1080);
|
||||
|
||||
MdgaApp app = new MdgaApp();
|
||||
app.setSettings(settings);
|
||||
app.setShowSettings(false);
|
||||
|
||||
app.start(JmeContext.Type.Display);
|
||||
}
|
||||
|
||||
public void simpleInitApp() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user