test
7
.gitignore
vendored
@ -1,9 +1,8 @@
|
||||
.idea/
|
||||
out/
|
||||
G-Earth2.iml
|
||||
bin/
|
||||
**/target/
|
||||
/G-WinMem/.vs
|
||||
/G-WinMem/x64
|
||||
/G-WinMem/G-WinMem/x64
|
||||
/Extensions/
|
||||
G-Earth.iml
|
||||
/G-EarthWindows.iml
|
||||
*.iml
|
||||
|
110
Extensions/AdminOnConnect/pom.xml
Normal file
@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>AdminOnConnect</artifactId>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<version>0.0.1-beta</version>
|
||||
|
||||
<parent>
|
||||
<groupId>G-Earth</groupId>
|
||||
<artifactId>G-Earth-Parent</artifactId>
|
||||
<version>0.0.1-beta</version>
|
||||
</parent>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<!-- Embedded FXML and CSS resources -->
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.fxml</include>
|
||||
<include>**/*.css</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.7.0</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/bin/lib</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.5</version>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/bin</outputDirectory>
|
||||
<archive>
|
||||
<manifest>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
<addClasspath>true</addClasspath>
|
||||
<mainClass>extensions.adminonconnect.AdminOnConnect</mainClass>
|
||||
<useUniqueVersions>false</useUniqueVersions>
|
||||
<classpathPrefix>lib/</classpathPrefix>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
</manifest>
|
||||
</archive>
|
||||
<finalName>${artifactId}</finalName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>G-Earth</groupId>
|
||||
<artifactId>G-Earth-UI</artifactId>
|
||||
<version>0.0.1-beta</version>
|
||||
<!--<scope>provided</scope>-->
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
@ -1,16 +1,14 @@
|
||||
package g_earth.extensions.examples.adminonconnect;
|
||||
package extensions.adminonconnect;
|
||||
|
||||
import g_earth.extensions.Extension;
|
||||
import g_earth.extensions.ExtensionInfo;
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.HPacket;
|
||||
import gearth.extensions.Extension;
|
||||
import gearth.extensions.ExtensionInfo;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.HPacket;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 26/06/18.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@ExtensionInfo(
|
||||
Title = "Always admin!",
|
||||
Description = "Gives you admin permission on connect",
|
135
Extensions/BlockReplacePackets/pom.xml
Normal file
@ -0,0 +1,135 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>BlockReplacePackets</artifactId>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<version>0.0.1-beta</version>
|
||||
|
||||
<parent>
|
||||
<groupId>G-Earth</groupId>
|
||||
<artifactId>G-Earth-Parent</artifactId>
|
||||
<version>0.0.1-beta</version>
|
||||
</parent>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<!-- Embedded FXML and CSS resources -->
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.fxml</include>
|
||||
<include>**/*.css</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.7.0</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/bin/lib</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.5</version>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/bin</outputDirectory>
|
||||
<archive>
|
||||
<manifest>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
<addClasspath>true</addClasspath>
|
||||
<mainClass>extensions.blockreplacepackets.BlockAndReplacePackets</mainClass>
|
||||
<useUniqueVersions>false</useUniqueVersions>
|
||||
<classpathPrefix>lib/</classpathPrefix>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
</manifest>
|
||||
</archive>
|
||||
<finalName>${artifactId}</finalName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<outputDirectory>${project.parent.basedir}/bin</outputDirectory>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>extensions.blockreplacepackets.BlockAndReplacePackets</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
<finalName>BlockAndReplacePackets</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>G-Earth</groupId>
|
||||
<artifactId>G-Earth-UI</artifactId>
|
||||
<version>0.0.1-beta</version>
|
||||
<!--<scope>provided</scope>-->
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
@ -1,5 +1,6 @@
|
||||
package g_earth.extensions.examples.blockreplacepackets;
|
||||
package extensions.blockreplacepackets;
|
||||
|
||||
import gearth.ui.GEarthController;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
@ -7,9 +8,8 @@ import javafx.scene.control.Button;
|
||||
import javafx.scene.control.ComboBox;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.stage.Stage;
|
||||
import g_earth.extensions.ExtensionForm;
|
||||
import g_earth.extensions.ExtensionInfo;
|
||||
import g_earth.ui.GEarthController;
|
||||
import gearth.extensions.ExtensionForm;
|
||||
import gearth.extensions.ExtensionInfo;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 22/09/18.
|
@ -12,7 +12,7 @@
|
||||
<?import javafx.scene.layout.GridPane?>
|
||||
<?import javafx.scene.layout.RowConstraints?>
|
||||
|
||||
<TabPane prefHeight="255.0" prefWidth="580.0" tabClosingPolicy="UNAVAILABLE" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="g_earth.extensions.examples.blockreplacepackets.BlockAndReplacePackets">
|
||||
<TabPane prefHeight="255.0" prefWidth="580.0" tabClosingPolicy="UNAVAILABLE" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="extensions.blockreplacepackets.BlockAndReplacePackets">
|
||||
<tabs>
|
||||
<Tab text="Block/replace packet">
|
||||
<content>
|
133
Extensions/SpeechColorizer/pom.xml
Normal file
@ -0,0 +1,133 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>SpeechColorizer</artifactId>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<version>0.0.1-beta</version>
|
||||
|
||||
<parent>
|
||||
<groupId>G-Earth</groupId>
|
||||
<artifactId>G-Earth-Parent</artifactId>
|
||||
<version>0.0.1-beta</version>
|
||||
</parent>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<!-- Embedded FXML and CSS resources -->
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.fxml</include>
|
||||
<include>**/*.css</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.7.0</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/bin/lib</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.5</version>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/bin</outputDirectory>
|
||||
<archive>
|
||||
<manifest>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
<addClasspath>true</addClasspath>
|
||||
<mainClass>extensions.speechcolorizer.SpeechColorizer</mainClass>
|
||||
<useUniqueVersions>false</useUniqueVersions>
|
||||
<classpathPrefix>lib/</classpathPrefix>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
</manifest>
|
||||
</archive>
|
||||
<finalName>${artifactId}</finalName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<outputDirectory>${project.parent.basedir}/target/bin</outputDirectory>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>extensions.speechcolorizer.SpeechColorizer</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>G-Earth</groupId>
|
||||
<artifactId>G-Earth-UI</artifactId>
|
||||
<version>0.0.1-beta</version>
|
||||
<!--<scope>provided</scope>-->
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
@ -1,9 +1,9 @@
|
||||
package g_earth.extensions.examples.speechcolorizer;
|
||||
package extensions.speechcolorizer;
|
||||
|
||||
import g_earth.extensions.Extension;
|
||||
import g_earth.extensions.ExtensionInfo;
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.HPacket;
|
||||
import gearth.extensions.Extension;
|
||||
import gearth.extensions.ExtensionInfo;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.HPacket;
|
||||
|
||||
import java.util.Random;
|
||||
|
140
G-Earth-UI/pom.xml
Normal file
@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>G-Earth-UI</artifactId>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<version>0.0.1-beta</version>
|
||||
|
||||
<parent>
|
||||
<groupId>G-Earth</groupId>
|
||||
<artifactId>G-Earth-Parent</artifactId>
|
||||
<version>0.0.1-beta</version>
|
||||
</parent>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<!-- Embedded FXML and CSS resources -->
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.fxml</include>
|
||||
<include>**/*.css</include>
|
||||
<include>**/*.png</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.7.0</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- this would copy dependencies if we were building a non-standalone JAR -->
|
||||
<plugin>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/bin/lib</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- this builds a non-standalone JAR file -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.5</version>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/bin</outputDirectory>
|
||||
<archive>
|
||||
<manifest>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
<addClasspath>true</addClasspath>
|
||||
<classpathPrefix>lib/</classpathPrefix>
|
||||
<mainClass>gearth.Main</mainClass>
|
||||
<useUniqueVersions>false</useUniqueVersions>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<outputDirectory>${project.parent.basedir}/bin</outputDirectory>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>gearth.Main</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
<finalName>G-Earth-${project.version}</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.json</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
<version>20180813</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.fxmisc.richtext</groupId>
|
||||
<artifactId>richtextfx</artifactId>
|
||||
<version>0.9.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
3
G-Earth-UI/src/META-INF/MANIFEST.MF
Normal file
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: gearth.Main
|
||||
|
@ -1,4 +1,4 @@
|
||||
package g_earth;
|
||||
package gearth;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.application.Platform;
|
||||
@ -6,7 +6,7 @@ import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
import g_earth.ui.GEarthController;
|
||||
import gearth.ui.GEarthController;
|
||||
|
||||
// run as root issue Invalid MIT-MAGIC-COOKIE-1 key fix: https://stackoverflow.com/questions/48139447/invalid-mit-magic-cookie-1-key
|
||||
|
@ -1,8 +1,8 @@
|
||||
package g_earth.extensions;
|
||||
package gearth.extensions;
|
||||
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.HPacket;
|
||||
import g_earth.ui.extensions.Extensions;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.HPacket;
|
||||
import gearth.ui.extensions.Extensions;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.Socket;
|
||||
@ -134,7 +134,7 @@ public abstract class Extension {
|
||||
onEndConnection();
|
||||
}
|
||||
else if (packet.headerId() == Extensions.OUTGOING_MESSAGES_IDS.FLAGSCHECK) {
|
||||
// body = an array of G-Earths main flags
|
||||
// body = an array of G-Earths gearth flags
|
||||
if (flagRequestCallback != null) {
|
||||
int arraysize = packet.readInteger();
|
||||
String[] gEarthArgs = new String[arraysize];
|
@ -1,10 +1,10 @@
|
||||
package g_earth.extensions;
|
||||
package gearth.extensions;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.application.Platform;
|
||||
import javafx.stage.Stage;
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.HPacket;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.HPacket;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 22/09/18.
|
@ -1,4 +1,4 @@
|
||||
package g_earth.extensions;
|
||||
package gearth.extensions;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
@ -1,4 +1,4 @@
|
||||
package g_earth.extensions.extra;
|
||||
package gearth.extensions.extra;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 22/09/18.
|
@ -1,49 +1,48 @@
|
||||
package g_earth.misc;
|
||||
package gearth.misc;
|
||||
|
||||
import g_earth.Main;
|
||||
import org.json.simple.JSONObject;
|
||||
import org.json.simple.parser.JSONParser;
|
||||
import org.json.simple.parser.ParseException;
|
||||
import gearth.Main;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 28/09/18.
|
||||
*/
|
||||
public class Cacher {
|
||||
|
||||
private static final String CACHEFILENAME = "cache.json";
|
||||
private static final String CACHE_FILENAME = "cache.json";
|
||||
|
||||
private static String getCacheDir() {
|
||||
return new File(Main.class.getProtectionDomain().getCodeSource().getLocation().getPath()).getParent();
|
||||
}
|
||||
|
||||
private static boolean cacheFileExists() {
|
||||
File f = new File(getCacheDir(), CACHEFILENAME);
|
||||
File f = new File(getCacheDir(), CACHE_FILENAME);
|
||||
return (f.exists() && !f.isDirectory());
|
||||
}
|
||||
|
||||
private static JSONObject getCacheContents() {
|
||||
if (cacheFileExists()) {
|
||||
try {
|
||||
File f = new File(getCacheDir(), CACHEFILENAME);
|
||||
File f = new File(getCacheDir(), CACHE_FILENAME);
|
||||
String contents = String.join("\n", Files.readAllLines(f.toPath()));
|
||||
|
||||
JSONParser parser = new JSONParser();
|
||||
return (JSONObject) parser.parse(contents);
|
||||
} catch (IOException | ParseException e) {
|
||||
return new JSONObject(contents);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return new JSONObject();
|
||||
}
|
||||
private static void updateCache(JSONObject contents) {
|
||||
try (FileWriter file = new FileWriter(new File(getCacheDir(), CACHEFILENAME))) {
|
||||
try (FileWriter file = new FileWriter(new File(getCacheDir(), CACHE_FILENAME))) {
|
||||
|
||||
file.write(contents.toJSONString());
|
||||
file.write(contents.toString());
|
||||
file.flush();
|
||||
|
||||
} catch (IOException e) {
|
||||
@ -53,16 +52,24 @@ public class Cacher {
|
||||
|
||||
public static void put(String key, Object val) {
|
||||
JSONObject object = getCacheContents();
|
||||
if (object.containsKey(key)) object.remove(key);
|
||||
if (object.has(key)) object.remove(key);
|
||||
|
||||
object.put(key, val);
|
||||
updateCache(object);
|
||||
}
|
||||
|
||||
public static Object get(String key) {
|
||||
JSONObject object = getCacheContents();
|
||||
|
||||
return object.get(key);
|
||||
if (object.has(key)) return object.get(key);
|
||||
else return null;
|
||||
}
|
||||
|
||||
public static List<Object> getList(String key) {
|
||||
JSONObject object = getCacheContents();
|
||||
if (object.has(key)) return ((JSONArray)object.get(key)).toList();
|
||||
else return null;
|
||||
}
|
||||
|
||||
public static void clear() {
|
||||
updateCache(new JSONObject());
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package g_earth.misc;
|
||||
package gearth.misc;
|
||||
|
||||
import javafx.scene.Group;
|
||||
import javafx.scene.Node;
|
@ -1,4 +1,4 @@
|
||||
package g_earth.misc;
|
||||
package gearth.misc;
|
||||
|
||||
public class OSValidator {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package g_earth.misc;
|
||||
package gearth.misc;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 14/06/18.
|
@ -1,12 +1,13 @@
|
||||
package g_earth.protocol;
|
||||
package gearth.protocol;
|
||||
|
||||
import g_earth.misc.Cacher;
|
||||
import g_earth.protocol.hostreplacer.HostReplacer;
|
||||
import g_earth.protocol.hostreplacer.HostReplacerFactory;
|
||||
import g_earth.protocol.memory.Rc4Obtainer;
|
||||
import g_earth.protocol.packethandler.Handler;
|
||||
import g_earth.protocol.packethandler.IncomingHandler;
|
||||
import g_earth.protocol.packethandler.OutgoingHandler;
|
||||
import gearth.misc.Cacher;
|
||||
import gearth.protocol.hostreplacer.HostReplacer;
|
||||
import gearth.protocol.hostreplacer.HostReplacerFactory;
|
||||
import gearth.protocol.memory.Rc4Obtainer;
|
||||
import gearth.protocol.packethandler.Handler;
|
||||
import gearth.protocol.packethandler.IncomingHandler;
|
||||
import gearth.protocol.packethandler.OutgoingHandler;
|
||||
import org.json.JSONArray;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.InetAddress;
|
||||
@ -78,11 +79,11 @@ public class HConnection {
|
||||
autoDetectHosts.add("game-tr.habbo.com:30000");
|
||||
autoDetectHosts.add("game-us.habbo.com:38101");
|
||||
|
||||
List<String> additionalCachedHotels = (List<String>) Cacher.get(HOTELS_CACHE_KEY);
|
||||
List<Object> additionalCachedHotels = Cacher.getList(HOTELS_CACHE_KEY);
|
||||
if (additionalCachedHotels != null) {
|
||||
for (String additionalHotel : additionalCachedHotels) {
|
||||
for (Object additionalHotel : additionalCachedHotels) {
|
||||
if (!autoDetectHosts.contains(additionalHotel)) {
|
||||
autoDetectHosts.add(additionalHotel);
|
||||
autoDetectHosts.add((String)additionalHotel);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -123,7 +124,7 @@ public class HConnection {
|
||||
|
||||
// manual method
|
||||
public void prepare(String domain, int port) {
|
||||
List<String> additionalCachedHotels = (List<String>) Cacher.get(HOTELS_CACHE_KEY);
|
||||
List<Object> additionalCachedHotels = Cacher.getList(HOTELS_CACHE_KEY);
|
||||
if (additionalCachedHotels == null) {
|
||||
additionalCachedHotels = new ArrayList<>();
|
||||
}
|
||||
@ -132,7 +133,6 @@ public class HConnection {
|
||||
Cacher.put(HOTELS_CACHE_KEY, additionalCachedHotels);
|
||||
}
|
||||
|
||||
|
||||
List<String> potentialHost = new ArrayList<>();
|
||||
potentialHost.add(domain+":"+port);
|
||||
prepare(potentialHost);
|
||||
@ -171,7 +171,7 @@ public class HConnection {
|
||||
}
|
||||
}
|
||||
|
||||
List<String> additionalCachedHotels = (List<String>) Cacher.get(HOTELS_CACHE_KEY);
|
||||
List<Object> additionalCachedHotels = Cacher.getList(HOTELS_CACHE_KEY);
|
||||
if (additionalCachedHotels != null) {
|
||||
for (String host : willremove) {
|
||||
additionalCachedHotels.remove(host);
|
@ -1,6 +1,6 @@
|
||||
package g_earth.protocol;
|
||||
package gearth.protocol;
|
||||
|
||||
import g_earth.misc.StringifyAble;
|
||||
import gearth.misc.StringifyAble;
|
||||
|
||||
public class HMessage implements StringifyAble {
|
||||
|
||||
@ -75,7 +75,7 @@ public class HMessage implements StringifyAble {
|
||||
return message.hPacket.equals(hPacket) && (side == message.side) && (index == message.index);
|
||||
}
|
||||
|
||||
// public static void main(String[] args) {
|
||||
// public static void gearth(String[] args) {
|
||||
// HPacket packet3 = new HPacket(81, new byte[]{0,0,0,1,0,0});
|
||||
//
|
||||
// HPacket packet = new HPacket(82, new byte[]{0,0,0,1,0,0});
|
@ -1,6 +1,6 @@
|
||||
package g_earth.protocol;
|
||||
package gearth.protocol;
|
||||
|
||||
import g_earth.misc.StringifyAble;
|
||||
import gearth.misc.StringifyAble;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.nio.ByteBuffer;
|
@ -1,4 +1,4 @@
|
||||
package g_earth.protocol;
|
||||
package gearth.protocol;
|
||||
|
||||
public interface StateChangeListener {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package g_earth.protocol;
|
||||
package gearth.protocol;
|
||||
|
||||
public interface TrafficListener {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package g_earth.protocol.crypto;
|
||||
package gearth.protocol.crypto;
|
||||
/*
|
||||
* Copyright (C) 2003 Clarence Ho (clarence@clarenceho.net)
|
||||
* All rights reserved.
|
@ -1,4 +1,4 @@
|
||||
package g_earth.protocol.hostreplacer;
|
||||
package gearth.protocol.hostreplacer;
|
||||
|
||||
public interface HostReplacer {
|
||||
|
@ -1,6 +1,6 @@
|
||||
package g_earth.protocol.hostreplacer;
|
||||
package gearth.protocol.hostreplacer;
|
||||
|
||||
import g_earth.misc.OSValidator;
|
||||
import gearth.misc.OSValidator;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 04/04/18.
|
@ -1,4 +1,4 @@
|
||||
package g_earth.protocol.hostreplacer;
|
||||
package gearth.protocol.hostreplacer;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.ArrayList;
|
@ -1,4 +1,4 @@
|
||||
package g_earth.protocol.hostreplacer;
|
||||
package gearth.protocol.hostreplacer;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 04/04/18.
|
@ -1,15 +1,15 @@
|
||||
package g_earth.protocol.memory;
|
||||
package gearth.protocol.memory;
|
||||
|
||||
import g_earth.protocol.HConnection;
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.HPacket;
|
||||
import g_earth.protocol.crypto.RC4;
|
||||
import g_earth.protocol.memory.habboclient.HabboClient;
|
||||
import g_earth.protocol.memory.habboclient.HabboClientFactory;
|
||||
import g_earth.protocol.packethandler.Handler;
|
||||
import g_earth.protocol.packethandler.IncomingHandler;
|
||||
import g_earth.protocol.packethandler.OutgoingHandler;
|
||||
import g_earth.protocol.packethandler.PayloadBuffer;
|
||||
import gearth.protocol.HConnection;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.HPacket;
|
||||
import gearth.protocol.crypto.RC4;
|
||||
import gearth.protocol.memory.habboclient.HabboClient;
|
||||
import gearth.protocol.memory.habboclient.HabboClientFactory;
|
||||
import gearth.protocol.packethandler.Handler;
|
||||
import gearth.protocol.packethandler.IncomingHandler;
|
||||
import gearth.protocol.packethandler.OutgoingHandler;
|
||||
import gearth.protocol.packethandler.PayloadBuffer;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
@ -1,6 +1,6 @@
|
||||
package g_earth.protocol.memory.habboclient;
|
||||
package gearth.protocol.memory.habboclient;
|
||||
|
||||
import g_earth.protocol.HConnection;
|
||||
import gearth.protocol.HConnection;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -1,9 +1,9 @@
|
||||
package g_earth.protocol.memory.habboclient;
|
||||
package gearth.protocol.memory.habboclient;
|
||||
|
||||
import g_earth.misc.OSValidator;
|
||||
import g_earth.protocol.HConnection;
|
||||
import g_earth.protocol.memory.habboclient.linux.LinuxHabboClient;
|
||||
import g_earth.protocol.memory.habboclient.windows.WindowsHabboClient;
|
||||
import gearth.misc.OSValidator;
|
||||
import gearth.protocol.HConnection;
|
||||
import gearth.protocol.memory.habboclient.linux.LinuxHabboClient;
|
||||
import gearth.protocol.memory.habboclient.windows.WindowsHabboClient;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 13/06/18.
|
@ -1,7 +1,7 @@
|
||||
package g_earth.protocol.memory.habboclient.linux;
|
||||
package gearth.protocol.memory.habboclient.linux;
|
||||
|
||||
import g_earth.protocol.HConnection;
|
||||
import g_earth.protocol.memory.habboclient.HabboClient;
|
||||
import gearth.protocol.HConnection;
|
||||
import gearth.protocol.memory.habboclient.HabboClient;
|
||||
|
||||
import java.io.*;
|
||||
import java.nio.file.Files;
|
@ -1,4 +1,4 @@
|
||||
package g_earth.protocol.memory.habboclient.linux;
|
||||
package gearth.protocol.memory.habboclient.linux;
|
||||
|
||||
public class LinuxMemorySnippet {
|
||||
long offset;
|
@ -1,12 +1,10 @@
|
||||
package g_earth.protocol.memory.habboclient.windows;
|
||||
package gearth.protocol.memory.habboclient.windows;
|
||||
|
||||
|
||||
import g_earth.misc.Cacher;
|
||||
import g_earth.protocol.HConnection;
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.TrafficListener;
|
||||
import g_earth.protocol.memory.habboclient.HabboClient;
|
||||
import org.json.simple.JSONObject;
|
||||
import gearth.misc.Cacher;
|
||||
import gearth.protocol.HConnection;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.memory.habboclient.HabboClient;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
@ -24,22 +22,16 @@ public class WindowsHabboClient extends HabboClient {
|
||||
super(connection);
|
||||
|
||||
connection.addTrafficListener(0, message -> {
|
||||
if (message.getDestination() == HMessage.Side.TOSERVER && message.getPacket().headerId() == PRODUCTIONID) {
|
||||
if (message.getDestination() == HMessage.Side.TOSERVER && message.getPacket().headerId() == PRODUCTION_ID) {
|
||||
production = message.getPacket().readString();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private static final int PRODUCTIONID = 4000;
|
||||
private static final String OFFSETS_CACHE_KEY = "RC4Offsets";
|
||||
private static final int PRODUCTION_ID = 4000;
|
||||
private String production = "";
|
||||
|
||||
private String getOffsetsCacheKey() {
|
||||
return "RC4Offsets";
|
||||
}
|
||||
|
||||
private String getOffsetsRevision() {
|
||||
return production;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<byte[]> getRC4cached() {
|
||||
@ -59,15 +51,16 @@ public class WindowsHabboClient extends HabboClient {
|
||||
}
|
||||
|
||||
private ArrayList<String> readPossibleBytes(boolean useCache) throws IOException, URISyntaxException {
|
||||
ProcessBuilder pb = null;
|
||||
JSONObject revisionList = (JSONObject) Cacher.get(getOffsetsCacheKey());
|
||||
ProcessBuilder pb;
|
||||
|
||||
JSONObject revisionList = (JSONObject) Cacher.get(OFFSETS_CACHE_KEY);
|
||||
if (revisionList == null) {
|
||||
Cacher.put(getOffsetsCacheKey(), new JSONObject());
|
||||
revisionList = (JSONObject) Cacher.get(getOffsetsCacheKey()); // refresh
|
||||
Cacher.put(OFFSETS_CACHE_KEY, new JSONObject());
|
||||
revisionList = (JSONObject) Cacher.get(OFFSETS_CACHE_KEY);
|
||||
}
|
||||
|
||||
List<String> cachedOffsets = (List<String>) revisionList.get(getOffsetsRevision());
|
||||
assert revisionList != null;
|
||||
List<Object> cachedOffsets = revisionList.getJSONArray(production).toList();
|
||||
StringJoiner joiner = new StringJoiner(" ");
|
||||
|
||||
if (useCache) {
|
||||
@ -75,8 +68,8 @@ public class WindowsHabboClient extends HabboClient {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (String s : cachedOffsets) {
|
||||
joiner.add(s);
|
||||
for (Object s : cachedOffsets) {
|
||||
joiner.add((String)s);
|
||||
}
|
||||
}
|
||||
|
||||
@ -109,8 +102,9 @@ public class WindowsHabboClient extends HabboClient {
|
||||
possibleData.add(line);
|
||||
}
|
||||
}
|
||||
revisionList.put(getOffsetsRevision(), cachedOffsets);
|
||||
Cacher.put(getOffsetsCacheKey(), revisionList);
|
||||
|
||||
revisionList.put(production, cachedOffsets);
|
||||
Cacher.put(OFFSETS_CACHE_KEY, revisionList);
|
||||
p.destroy();
|
||||
return possibleData;
|
||||
}
|
||||
@ -130,7 +124,7 @@ public class WindowsHabboClient extends HabboClient {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static byte[] hexStringToByteArray(String s) {
|
||||
private static byte[] hexStringToByteArray(String s) {
|
||||
int len = s.length();
|
||||
byte[] data = new byte[len / 2];
|
||||
for (int i = 0; i < len; i += 2) {
|
@ -1,4 +1,4 @@
|
||||
package g_earth.protocol.packethandler;
|
||||
package gearth.protocol.packethandler;
|
||||
|
||||
|
||||
public interface BufferListener {
|
@ -1,9 +1,9 @@
|
||||
package g_earth.protocol.packethandler;
|
||||
package gearth.protocol.packethandler;
|
||||
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.HPacket;
|
||||
import g_earth.protocol.TrafficListener;
|
||||
import g_earth.protocol.crypto.RC4;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.HPacket;
|
||||
import gearth.protocol.TrafficListener;
|
||||
import gearth.protocol.crypto.RC4;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
@ -1,8 +1,8 @@
|
||||
package g_earth.protocol.packethandler;
|
||||
package gearth.protocol.packethandler;
|
||||
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.HPacket;
|
||||
import g_earth.protocol.TrafficListener;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.HPacket;
|
||||
import gearth.protocol.TrafficListener;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
@ -1,7 +1,7 @@
|
||||
package g_earth.protocol.packethandler;
|
||||
package gearth.protocol.packethandler;
|
||||
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.HPacket;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.HPacket;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
@ -1,6 +1,6 @@
|
||||
package g_earth.protocol.packethandler;
|
||||
package gearth.protocol.packethandler;
|
||||
|
||||
import g_earth.protocol.HPacket;
|
||||
import gearth.protocol.HPacket;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
@ -7,7 +7,7 @@
|
||||
|
||||
<!--maxHeight="19.0" minHeight="19.0"-->
|
||||
|
||||
<VBox xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="g_earth.ui.GEarthController">
|
||||
<VBox xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.GEarthController">
|
||||
<Pane fx:id="mover" maxHeight="0.0" minHeight="0.0" prefWidth="200.0" />
|
||||
<TabPane fx:id="tabBar" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" prefHeight="295.0" prefWidth="565.0" tabClosingPolicy="UNAVAILABLE">
|
||||
<tabs>
|
@ -1,18 +1,18 @@
|
||||
package g_earth.ui;
|
||||
package gearth.ui;
|
||||
|
||||
import javafx.scene.control.Tab;
|
||||
import javafx.scene.control.TabPane;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.stage.Stage;
|
||||
import g_earth.protocol.HConnection;
|
||||
import g_earth.ui.connection.Connection;
|
||||
import g_earth.ui.extensions.Extensions;
|
||||
import g_earth.ui.info.Info;
|
||||
import g_earth.ui.injection.Injection;
|
||||
import g_earth.ui.logger.Logger;
|
||||
import g_earth.ui.scheduler.Scheduler;
|
||||
import g_earth.ui.settings.Settings;
|
||||
import g_earth.ui.tools.Tools;
|
||||
import gearth.protocol.HConnection;
|
||||
import gearth.ui.connection.Connection;
|
||||
import gearth.ui.extensions.Extensions;
|
||||
import gearth.ui.info.Info;
|
||||
import gearth.ui.injection.Injection;
|
||||
import gearth.ui.logger.Logger;
|
||||
import gearth.ui.scheduler.Scheduler;
|
||||
import gearth.ui.settings.Settings;
|
||||
import gearth.ui.tools.Tools;
|
||||
|
||||
public class GEarthController {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package g_earth.ui;
|
||||
package gearth.ui;
|
||||
|
||||
|
||||
import g_earth.protocol.HConnection;
|
||||
import gearth.protocol.HConnection;
|
||||
|
||||
public class SubForm {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.buttons;
|
||||
package gearth.ui.buttons;
|
||||
|
||||
import javafx.event.EventHandler;
|
||||
import javafx.scene.Cursor;
|
||||
@ -18,8 +18,8 @@ public class BoxButton extends StackPane {
|
||||
|
||||
//paths zijn relatief aan deze classpath
|
||||
public BoxButton(String imageName, String imageOnHoverName) {
|
||||
this.image = new Image(getClass().getResourceAsStream("files" + File.separator + imageName));
|
||||
this.imageOnHover = new Image(getClass().getResourceAsStream("files" + File.separator + imageOnHoverName));
|
||||
this.image = new Image(getClass().getResourceAsStream("files/" + imageName));
|
||||
this.imageOnHover = new Image(getClass().getResourceAsStream("files/" + imageOnHoverName));
|
||||
this.imageView = new ImageView();
|
||||
|
||||
setCursor(Cursor.DEFAULT);
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.buttons;
|
||||
package gearth.ui.buttons;
|
||||
|
||||
public class DeleteButton extends BoxButton {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.buttons;
|
||||
package gearth.ui.buttons;
|
||||
|
||||
public class EditButton extends BoxButton {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.buttons;
|
||||
package gearth.ui.buttons;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 26/09/18.
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.buttons;
|
||||
package gearth.ui.buttons;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 26/09/18.
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.buttons;
|
||||
package gearth.ui.buttons;
|
||||
|
||||
import javafx.beans.InvalidationListener;
|
||||
import javafx.event.EventHandler;
|
||||
@ -32,10 +32,10 @@ public class PauseResumeButton extends StackPane{
|
||||
public PauseResumeButton(boolean isPaused) {
|
||||
this.isPaused[0] = isPaused;
|
||||
|
||||
this.imagePause = new Image(getClass().getResourceAsStream("files"+ File.separator+"ButtonPause.png"));
|
||||
this.imagePauseOnHover = new Image(getClass().getResourceAsStream("files"+ File.separator+"ButtonPauseHover.png"));
|
||||
this.imageResume = new Image(getClass().getResourceAsStream("files"+ File.separator+"ButtonResume.png"));
|
||||
this.imageResumeOnHover = new Image(getClass().getResourceAsStream("files"+ File.separator+"ButtonResumeHover.png"));
|
||||
this.imagePause = new Image(getClass().getResourceAsStream("files/ButtonPause.png"));
|
||||
this.imagePauseOnHover = new Image(getClass().getResourceAsStream("files/ButtonPauseHover.png"));
|
||||
this.imageResume = new Image(getClass().getResourceAsStream("files/ButtonResume.png"));
|
||||
this.imageResumeOnHover = new Image(getClass().getResourceAsStream("files/ButtonResumeHover.png"));
|
||||
this.imageView = new ImageView();
|
||||
|
||||
setCursor(Cursor.DEFAULT);
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.buttons;
|
||||
package gearth.ui.buttons;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 26/09/18.
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.buttons;
|
||||
package gearth.ui.buttons;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 19/07/18.
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 443 B |
Before Width: | Height: | Size: 460 B After Width: | Height: | Size: 460 B |
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 454 B |
Before Width: | Height: | Size: 644 B After Width: | Height: | Size: 644 B |
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 538 B |
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 677 B |
Before Width: | Height: | Size: 642 B After Width: | Height: | Size: 642 B |
Before Width: | Height: | Size: 725 B After Width: | Height: | Size: 725 B |
Before Width: | Height: | Size: 621 B After Width: | Height: | Size: 621 B |
Before Width: | Height: | Size: 643 B After Width: | Height: | Size: 643 B |
Before Width: | Height: | Size: 535 B After Width: | Height: | Size: 535 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 446 B After Width: | Height: | Size: 446 B |
@ -11,7 +11,7 @@
|
||||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<GridPane alignment="CENTER" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="g_earth.ui.connection.Connection">
|
||||
<GridPane alignment="CENTER" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.connection.Connection">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
</columnConstraints>
|
@ -1,10 +1,10 @@
|
||||
package g_earth.ui.connection;
|
||||
package gearth.ui.connection;
|
||||
|
||||
import javafx.application.Platform;
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.scene.control.*;
|
||||
import g_earth.protocol.HConnection;
|
||||
import g_earth.ui.SubForm;
|
||||
import gearth.protocol.HConnection;
|
||||
import gearth.ui.SubForm;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.extensions;
|
||||
package gearth.ui.extensions;
|
||||
|
||||
import javafx.event.EventHandler;
|
||||
import javafx.geometry.Insets;
|
||||
@ -8,12 +8,12 @@ import javafx.scene.input.MouseEvent;
|
||||
import javafx.scene.layout.*;
|
||||
import javafx.scene.paint.Paint;
|
||||
import javafx.scene.text.Font;
|
||||
import g_earth.misc.ConfirmationDialog;
|
||||
import g_earth.ui.buttons.*;
|
||||
import g_earth.ui.extensions.executer.ExecutionInfo;
|
||||
import g_earth.ui.extensions.executer.ExtensionRunner;
|
||||
import g_earth.ui.extensions.executer.ExtensionRunnerFactory;
|
||||
import g_earth.ui.extensions.executer.NormalExtensionRunner;
|
||||
import gearth.misc.ConfirmationDialog;
|
||||
import gearth.ui.buttons.*;
|
||||
import gearth.ui.extensions.executer.ExecutionInfo;
|
||||
import gearth.ui.extensions.executer.ExtensionRunner;
|
||||
import gearth.ui.extensions.executer.ExtensionRunnerFactory;
|
||||
import gearth.ui.extensions.executer.NormalExtensionRunner;
|
||||
|
||||
import java.nio.file.Paths;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.extensions;
|
||||
package gearth.ui.extensions;
|
||||
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.control.ScrollPane;
|
@ -10,7 +10,7 @@
|
||||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="g_earth.ui.extensions.Extensions">
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.extensions.Extensions">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="277.0" />
|
||||
</columnConstraints>
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.extensions;
|
||||
package gearth.ui.extensions;
|
||||
|
||||
import javafx.application.Platform;
|
||||
import javafx.event.ActionEvent;
|
||||
@ -8,13 +8,13 @@ import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.stage.FileChooser;
|
||||
import g_earth.Main;
|
||||
import g_earth.protocol.*;
|
||||
import g_earth.ui.SubForm;
|
||||
import g_earth.ui.extensions.executer.ExecutionInfo;
|
||||
import g_earth.ui.extensions.executer.ExtensionRunner;
|
||||
import g_earth.ui.extensions.executer.ExtensionRunnerFactory;
|
||||
import g_earth.ui.scheduler.ScheduleItem;
|
||||
import gearth.Main;
|
||||
import gearth.protocol.*;
|
||||
import gearth.ui.SubForm;
|
||||
import gearth.ui.extensions.executer.ExecutionInfo;
|
||||
import gearth.ui.extensions.executer.ExtensionRunner;
|
||||
import gearth.ui.extensions.executer.ExtensionRunnerFactory;
|
||||
import gearth.ui.scheduler.ScheduleItem;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@ -67,7 +67,7 @@ import java.util.*;
|
||||
* | 3 | PACKET-INTERCEPT* | Includes the whole HMessage as body, needs response with the |
|
||||
* | | | manipulated HMessage (OUTGOING id: 2) |
|
||||
* -----------------------------------------------------------------------------------------------------
|
||||
* | 4 | FLAGS-CHECK** | Body: String with G-Earth's boot flags (args from static main method) |
|
||||
* | 4 | FLAGS-CHECK** | Body: String with G-Earth's boot flags (args from static gearth method) |
|
||||
* -----------------------------------------------------------------------------------------------------
|
||||
* | 5 | CONNECTION START | Empty body, just a note that a new connection has been made, |
|
||||
* | | | you could check this yourself as well (listen to out:4000 packet) |
|
@ -1,7 +1,7 @@
|
||||
package g_earth.ui.extensions;
|
||||
package gearth.ui.extensions;
|
||||
|
||||
import javafx.beans.InvalidationListener;
|
||||
import g_earth.protocol.HPacket;
|
||||
import gearth.protocol.HPacket;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.extensions;
|
||||
package gearth.ui.extensions;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ServerSocket;
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.extensions.executer;
|
||||
package gearth.ui.extensions.executer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.extensions.executer;
|
||||
package gearth.ui.extensions.executer;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 21/09/18.
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.extensions.executer;
|
||||
package gearth.ui.extensions.executer;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 22/09/18.
|
@ -1,6 +1,6 @@
|
||||
package g_earth.ui.extensions.executer;
|
||||
package gearth.ui.extensions.executer;
|
||||
|
||||
import g_earth.Main;
|
||||
import gearth.Main;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
@ -6,7 +6,7 @@
|
||||
<?import javafx.scene.layout.GridPane?>
|
||||
<?import javafx.scene.layout.RowConstraints?>
|
||||
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="g_earth.ui.info.Info">
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.info.Info">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="367.0" minWidth="10.0" prefWidth="332.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="390.0" minWidth="10.0" prefWidth="233.0" />
|
@ -1,7 +1,7 @@
|
||||
package g_earth.ui.info;
|
||||
package gearth.ui.info;
|
||||
|
||||
import javafx.scene.control.TextArea;
|
||||
import g_earth.ui.SubForm;
|
||||
import gearth.ui.SubForm;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 06/04/18.
|
@ -9,7 +9,7 @@
|
||||
<?import javafx.scene.text.Font?>
|
||||
<?import javafx.scene.text.Text?>
|
||||
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="g_earth.ui.injection.Injection">
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.injection.Injection">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
</columnConstraints>
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.injection;
|
||||
package gearth.ui.injection;
|
||||
|
||||
import javafx.application.Platform;
|
||||
import javafx.event.ActionEvent;
|
||||
@ -7,9 +7,9 @@ import javafx.scene.control.TextArea;
|
||||
import javafx.scene.paint.Color;
|
||||
import javafx.scene.paint.Paint;
|
||||
import javafx.scene.text.Text;
|
||||
import g_earth.protocol.HConnection;
|
||||
import g_earth.protocol.HPacket;
|
||||
import g_earth.ui.SubForm;
|
||||
import gearth.protocol.HConnection;
|
||||
import gearth.protocol.HPacket;
|
||||
import gearth.ui.SubForm;
|
||||
|
||||
public class Injection extends SubForm {
|
||||
public TextArea inputPacket;
|
@ -12,7 +12,7 @@
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.TextFlow?>
|
||||
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="g_earth.ui.logger.Logger">
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.logger.Logger">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="293.0" minWidth="10.0" prefWidth="242.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="390.0" minWidth="10.0" prefWidth="323.0" />
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.logger;
|
||||
package gearth.ui.logger;
|
||||
|
||||
import javafx.application.Platform;
|
||||
import javafx.event.ActionEvent;
|
||||
@ -9,11 +9,11 @@ import javafx.scene.input.KeyCode;
|
||||
import javafx.scene.paint.Color;
|
||||
import javafx.scene.text.Text;
|
||||
import javafx.scene.text.TextFlow;
|
||||
import g_earth.protocol.HConnection;
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.ui.SubForm;
|
||||
import g_earth.ui.logger.loggerdisplays.PacketLogger;
|
||||
import g_earth.ui.logger.loggerdisplays.PacketLoggerFactory;
|
||||
import gearth.protocol.HConnection;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.ui.SubForm;
|
||||
import gearth.ui.logger.loggerdisplays.PacketLogger;
|
||||
import gearth.ui.logger.loggerdisplays.PacketLoggerFactory;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package g_earth.ui.logger.loggerdisplays;
|
||||
package gearth.ui.logger.loggerdisplays;
|
||||
|
||||
import g_earth.protocol.HPacket;
|
||||
import gearth.protocol.HPacket;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
@ -1,6 +1,6 @@
|
||||
package g_earth.ui.logger.loggerdisplays;
|
||||
package gearth.ui.logger.loggerdisplays;
|
||||
|
||||
import g_earth.protocol.HPacket;
|
||||
import gearth.protocol.HPacket;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 04/04/18.
|
@ -1,6 +1,6 @@
|
||||
package g_earth.ui.logger.loggerdisplays;
|
||||
package gearth.ui.logger.loggerdisplays;
|
||||
|
||||
import g_earth.misc.OSValidator;
|
||||
import gearth.misc.OSValidator;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 04/04/18.
|
@ -1,6 +1,6 @@
|
||||
package g_earth.ui.logger.loggerdisplays;
|
||||
package gearth.ui.logger.loggerdisplays;
|
||||
|
||||
import g_earth.protocol.HPacket;
|
||||
import gearth.protocol.HPacket;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 04/04/18.
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.scheduler;
|
||||
package gearth.ui.scheduler;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 11/04/18.
|
@ -1,12 +1,12 @@
|
||||
package g_earth.ui.scheduler;
|
||||
package gearth.ui.scheduler;
|
||||
|
||||
import javafx.beans.InvalidationListener;
|
||||
import javafx.beans.property.SimpleBooleanProperty;
|
||||
import javafx.beans.property.SimpleIntegerProperty;
|
||||
import javafx.beans.property.SimpleObjectProperty;
|
||||
import g_earth.misc.StringifyAble;
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.HPacket;
|
||||
import gearth.misc.StringifyAble;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.HPacket;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.scheduler;
|
||||
package gearth.ui.scheduler;
|
||||
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.geometry.Pos;
|
||||
@ -7,9 +7,9 @@ import javafx.scene.control.ScrollPane;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import javafx.scene.layout.*;
|
||||
import javafx.scene.text.Font;
|
||||
import g_earth.ui.buttons.DeleteButton;
|
||||
import g_earth.ui.buttons.EditButton;
|
||||
import g_earth.ui.buttons.PauseResumeButton;
|
||||
import gearth.ui.buttons.DeleteButton;
|
||||
import gearth.ui.buttons.EditButton;
|
||||
import gearth.ui.buttons.PauseResumeButton;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 07/04/18.
|
@ -12,7 +12,7 @@
|
||||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="g_earth.ui.scheduler.Scheduler">
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.scheduler.Scheduler">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="277.0" />
|
||||
</columnConstraints>
|
@ -1,4 +1,4 @@
|
||||
package g_earth.ui.scheduler;
|
||||
package gearth.ui.scheduler;
|
||||
|
||||
import javafx.application.Platform;
|
||||
import javafx.event.ActionEvent;
|
||||
@ -6,9 +6,9 @@ import javafx.scene.control.*;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.stage.FileChooser;
|
||||
import g_earth.protocol.HMessage;
|
||||
import g_earth.protocol.HPacket;
|
||||
import g_earth.ui.SubForm;
|
||||
import gearth.protocol.HMessage;
|
||||
import gearth.protocol.HPacket;
|
||||
import gearth.ui.SubForm;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.ArrayList;
|
@ -3,7 +3,7 @@
|
||||
|
||||
<?import javafx.scene.layout.ColumnConstraints?>
|
||||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="g_earth.ui.settings.Settings">
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.settings.Settings">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="303.0" minWidth="10.0" prefWidth="277.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="390.0" minWidth="10.0" prefWidth="288.0" />
|
@ -1,6 +1,6 @@
|
||||
package g_earth.ui.settings;
|
||||
package gearth.ui.settings;
|
||||
|
||||
import g_earth.ui.SubForm;
|
||||
import gearth.ui.SubForm;
|
||||
|
||||
/**
|
||||
* Created by Jonas on 06/04/18.
|
@ -10,7 +10,7 @@
|
||||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="g_earth.ui.tools.Tools">
|
||||
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="262.0" prefWidth="565.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.tools.Tools">
|
||||
<rowConstraints>
|
||||
<RowConstraints maxHeight="158.0" minHeight="10.0" prefHeight="134.0" vgrow="SOMETIMES" />
|
||||
<RowConstraints maxHeight="141.0" minHeight="10.0" prefHeight="128.0" vgrow="SOMETIMES" />
|
@ -1,12 +1,12 @@
|
||||
package g_earth.ui.tools;
|
||||
package gearth.ui.tools;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.TextArea;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.input.KeyCode;
|
||||
import g_earth.protocol.HPacket;
|
||||
import g_earth.ui.SubForm;
|
||||
import gearth.protocol.HPacket;
|
||||
import gearth.ui.SubForm;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
|
29
pom.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>G-Earth</groupId>
|
||||
<artifactId>G-Earth-Parent</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>0.0.1-beta</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<name>G-Earth</name>
|
||||
<url>https://github.com/sirjonasxx/G-Earth</url>
|
||||
<description></description>
|
||||
|
||||
<modules>
|
||||
<module>G-Earth-UI</module>
|
||||
|
||||
<!-- Compile our extensions too please! -->
|
||||
<module>Extensions/AdminOnConnect</module>
|
||||
<module>Extensions/BlockReplacePackets</module>
|
||||
<module>Extensions/SpeechColorizer</module>
|
||||
</modules>
|
||||
</project>
|
@ -1,3 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: g_earth.Main
|
||||
|