diff --git a/src/Launcher/Main.java b/src/Launcher/Main.java index ad0f000..5881709 100644 --- a/src/Launcher/Main.java +++ b/src/Launcher/Main.java @@ -83,8 +83,12 @@ public class Main extends Application { if(activeTab!=Tabs.Modpacks){ if(stringUpdater!=null && stringUpdater.isAlive()) stringUpdater.cancel(); (activeTab=Tabs.Modpacks).switchTab(tab); // Sets the active tab to the modpacks tab unless it's already active - //TODO: Create a dynamic updating string from the input ( Text Field ) + + //TODO: Create a dynamic updating string from the input ( Text Field ) *-* Done *-* + + stringUpdater = new Async(SafeReflection.getFirstMethod(Main.class, "detectStringUpdate"), Tabs.Modpacks.loaded.lookup("#search-modpacks")); + } }); diff --git a/src/assets/layout/modpacks.fxml b/src/assets/layout/modpacks.fxml index 7975cee..5e3cef6 100644 --- a/src/assets/layout/modpacks.fxml +++ b/src/assets/layout/modpacks.fxml @@ -1,21 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.control.Label?> -<?import javafx.scene.control.ScrollPane?> <?import javafx.scene.control.TextField?> -<?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.Pane?> <?import javafx.scene.shape.Rectangle?> <?import javafx.scene.text.Font?> <Pane id="pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="450.0" prefWidth="750.0" stylesheets="@../style/nav.css" xmlns="http://javafx.com/javafx/8.0.112-ea" xmlns:fx="http://javafx.com/fxml/1"> <children> - <Rectangle id="Modpack-back" arcHeight="5.0" arcWidth="5.0" height="55.0" strokeType="INSIDE" width="750.0" /> - <Label layoutX="34.0" layoutY="9.0" text="Modpacks" textFill="WHITE"> + <Rectangle id="Modpack-back" arcHeight="5.0" arcWidth="5.0" height="47.0" strokeType="INSIDE" width="750.0" /> + <Label layoutX="34.0" layoutY="5.0" text="Modpacks" textFill="WHITE"> <font> <Font name="Centaur" size="31.0" /> </font> </Label> - <TextField id="search-modpacks" layoutX="524.0" layoutY="9.0" prefHeight="25.0" prefWidth="212.0" promptText="Search Modpacks" /> + <TextField id="search-modpacks" layoutX="516.0" layoutY="5.0" prefHeight="25.0" prefWidth="212.0" promptText="Search Modpacks" /> </children> </Pane>