Skip to content

Commit

Permalink
Remove searchable boxes but support Java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
XorTroll committed Aug 27, 2023
1 parent b921e75 commit fc2bdfc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
25 changes: 10 additions & 15 deletions emuiigen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<kotlin.code.style>official</kotlin.code.style>
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
<kotlin.compiler.jvmTarget>10</kotlin.compiler.jvmTarget>
<kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
<kotlin.version>1.7.10</kotlin.version>

<javafx.plugin.version>0.0.5</javafx.plugin.version>
Expand All @@ -36,65 +36,65 @@
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>17</version>
<version>12</version>
<classifier>linux</classifier>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>17</version>
<version>12</version>
<classifier>win</classifier>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>17</version>
<version>12</version>
<classifier>mac</classifier>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>17</version>
<version>12</version>
<classifier>linux</classifier>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>17</version>
<version>12</version>
<classifier>win</classifier>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>17</version>
<version>12</version>
<classifier>mac</classifier>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>17</version>
<version>12</version>
<classifier>linux</classifier>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>17</version>
<version>12</version>
<classifier>win</classifier>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>17</version>
<version>12</version>
<classifier>mac</classifier>
<scope>compile</scope>
</dependency>
Expand All @@ -114,11 +114,6 @@
<artifactId>json</artifactId>
<version>20230227</version>
</dependency>
<dependency>
<groupId>org.controlsfx</groupId>
<artifactId>controlsfx</artifactId>
<version>11.1.2</version>
</dependency>
</dependencies>

<build>
Expand Down
22 changes: 16 additions & 6 deletions emuiigen/res/main.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.Separator?>
Expand All @@ -12,7 +13,6 @@
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<?import org.controlsfx.control.SearchableComboBox?>

<VBox maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.xortroll.emuiibo.emuiigen.ui.MainController">
<children>
Expand All @@ -32,13 +32,14 @@
<Button fx:id="AmiiboOpenButton" layoutX="15.0" layoutY="14.0" mnemonicParsing="false" prefHeight="30.0" prefWidth="347.0" text="Open" />
<TextField fx:id="OpenedAmiiboNameText" disable="true" layoutX="15.0" layoutY="63.0" prefHeight="27.0" prefWidth="224.0" promptText="Virtual amiibo name" />
<CheckBox fx:id="OpenedAmiiboUseRandomUuidCheck" disable="true" layoutX="15.0" layoutY="106.0" mnemonicParsing="false" text="Enable UUID randomization" />
<ListView fx:id="OpenedAmiiboAreaList" disable="true" layoutX="253.0" layoutY="58.0" prefHeight="125.0" prefWidth="505.0" />
<ListView fx:id="OpenedAmiiboAreaList" disable="true" layoutX="259.0" layoutY="87.0" prefHeight="98.0" prefWidth="501.0" />
<Button fx:id="AmiiboSaveButton" layoutX="372.0" layoutY="14.0" mnemonicParsing="false" prefHeight="30.0" prefWidth="386.0" text="Save" />
<Label layoutX="259.0" layoutY="63.0" text="Amiibo application areas" />
</children>
</AnchorPane>
</content>
</TitledPane>
<TitledPane animated="false" layoutX="14.0" layoutY="249.0" prefHeight="280.0" prefWidth="772.0" text="Misc">
<TitledPane animated="false" layoutX="14.0" layoutY="249.0" prefHeight="280.0" prefWidth="772.0" text="About">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="80.0" prefWidth="677.0">
<children>
Expand All @@ -63,6 +64,15 @@
</AnchorPane>
</content>
</Tab>
<Tab text="Application areas">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<Label layoutX="14.0" layoutY="42.0" text="An application area is per-game amiibo savedata. Real amiibos only can save data from one game,&#10;while emuiibo's virtual amiibos do not have this restriction.&#10;&#10;If you open an amiibo on the menu above, you will be able to check all the areas the amiibo has, along&#10;with their corresponding game's application ID." />
</children>
</AnchorPane>
</content>
</Tab>
</tabs>
</TabPane>
</children>
Expand All @@ -81,8 +91,8 @@
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="543.0" prefWidth="376.0">
<children>
<SearchableComboBox fx:id="GenerateOneAmiiboSeriesBox" layoutX="15.0" layoutY="14.0" prefHeight="28.0" prefWidth="355.0" />
<SearchableComboBox fx:id="AmiiboBox" layoutX="26.0" layoutY="54.0" prefHeight="30.0" prefWidth="325.0" />
<ComboBox fx:id="GenerateOneAmiiboSeriesBox" layoutX="15.0" layoutY="14.0" prefHeight="28.0" prefWidth="355.0" />
<ComboBox fx:id="AmiiboBox" layoutX="26.0" layoutY="54.0" prefHeight="30.0" prefWidth="325.0" />
<ImageView fx:id="AmiiboImage" fitHeight="376.0" fitWidth="310.0" layoutX="34.0" layoutY="96.0" pickOnBounds="true" preserveRatio="true" />
</children>
</AnchorPane>
Expand Down Expand Up @@ -144,7 +154,7 @@
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="284.0" prefWidth="402.0">
<children>
<SearchableComboBox fx:id="GenerateSeriesAmiiboSeriesBox" layoutX="14.0" layoutY="14.0" prefHeight="31.0" prefWidth="369.0" />
<ComboBox fx:id="GenerateSeriesAmiiboSeriesBox" layoutX="14.0" layoutY="14.0" prefHeight="31.0" prefWidth="369.0" />
<Button fx:id="GenerateSeriesButton" layoutX="13.0" layoutY="234.0" mnemonicParsing="false" prefHeight="32.0" prefWidth="368.0" text="Generate virtual amiibos" />
<CheckBox fx:id="GenerateSeriesUseRandomUuidCheck" layoutX="14.0" layoutY="67.0" mnemonicParsing="false" text="Enable UUID randomization" />
<CheckBox fx:id="GenerateSeriesImageSaveCheck" layoutX="14.0" layoutY="107.0" mnemonicParsing="false" text="Save images" />
Expand Down
8 changes: 4 additions & 4 deletions emuiigen/src/ui/MainController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import java.io.File
import java.io.FileInputStream
import javafx.fxml.FXML
import javafx.scene.control.Button
import javafx.scene.control.ComboBox
import javafx.scene.control.CheckBox
import javafx.scene.control.Label
import javafx.scene.control.TextField
Expand All @@ -25,7 +26,6 @@ import javafx.beans.value.ChangeListener
import javafx.beans.binding.Bindings
import javafx.concurrent.Task
import javafx.application.HostServices
import org.controlsfx.control.SearchableComboBox
import org.apache.commons.io.FileUtils
import org.apache.commons.net.ftp.FTPClient
import org.apache.commons.net.ftp.FTPClientConfig
Expand Down Expand Up @@ -55,8 +55,8 @@ class MainController {

@FXML lateinit var AboutButton: Button;

@FXML lateinit var GenerateOneAmiiboSeriesBox: SearchableComboBox<String>;
@FXML lateinit var AmiiboBox: SearchableComboBox<String>;
@FXML lateinit var GenerateOneAmiiboSeriesBox: ComboBox<String>;
@FXML lateinit var AmiiboBox: ComboBox<String>;
@FXML lateinit var AmiiboImage: ImageView;
@FXML lateinit var StatusLabel: Label;

Expand All @@ -79,7 +79,7 @@ class MainController {

@FXML lateinit var GenerateSeriesUseRandomUuidCheck: CheckBox;
@FXML lateinit var GenerateSeriesImageSaveCheck: CheckBox;
@FXML lateinit var GenerateSeriesAmiiboSeriesBox: SearchableComboBox<String>;
@FXML lateinit var GenerateSeriesAmiiboSeriesBox: ComboBox<String>;
@FXML lateinit var GenerateSeriesFtpCheck: CheckBox;
@FXML lateinit var GenerateSeriesFtpAddress: TextField;
@FXML lateinit var GenerateSeriesFtpPort: TextField;
Expand Down

0 comments on commit fc2bdfc

Please sign in to comment.