Chnaged things
This commit is contained in:
parent
c792b9c02c
commit
832a5d1f16
@ -14,6 +14,7 @@ import javafx.application.Application;
|
|||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.scene.control.Button;
|
import javafx.scene.control.Button;
|
||||||
|
import javafx.scene.control.TextField;
|
||||||
import javafx.scene.image.Image;
|
import javafx.scene.image.Image;
|
||||||
import javafx.scene.image.ImageView;
|
import javafx.scene.image.ImageView;
|
||||||
import javafx.scene.layout.Pane;
|
import javafx.scene.layout.Pane;
|
||||||
@ -27,8 +28,9 @@ public class Main extends Application {
|
|||||||
public static final URL mainLauncher = Main.class.getResource("../assets/layout/main.fxml"); // Launcher body
|
public static final URL mainLauncher = Main.class.getResource("../assets/layout/main.fxml"); // Launcher body
|
||||||
|
|
||||||
private double xOffset = 0, yOffset = 0; // Offsets for dragging
|
private double xOffset = 0, yOffset = 0; // Offsets for dragging
|
||||||
private Button exit, min, Home_btn, Modpack_btn, Settings_btn; // Define buttons
|
private Button exit, min, Home_btn, Modpack_btn, Settings_btn, Search_modpacks_btn; // Define buttons
|
||||||
private ImageView icon;
|
private ImageView icon;
|
||||||
|
private TextField Search_modpacks;
|
||||||
private Image appIcon;
|
private Image appIcon;
|
||||||
private Rectangle dragBar; // Draggable top bar
|
private Rectangle dragBar; // Draggable top bar
|
||||||
private Pane root, tab;
|
private Pane root, tab;
|
||||||
@ -55,6 +57,8 @@ public class Main extends Application {
|
|||||||
Settings_btn = (Button) root.lookup("#Settings-btn");
|
Settings_btn = (Button) root.lookup("#Settings-btn");
|
||||||
tab = (Pane) root.lookup("#tab");
|
tab = (Pane) root.lookup("#tab");
|
||||||
icon = (ImageView) root.lookup("#icon");
|
icon = (ImageView) root.lookup("#icon");
|
||||||
|
Search_modpacks_btn = (Button) root.lookup("#search-modpacks-btn");
|
||||||
|
Search_modpacks = (TextField) root.lookup("#search-modpacks");
|
||||||
|
|
||||||
// Infrastructural navigation
|
// Infrastructural navigation
|
||||||
exit.setOnMouseClicked(event -> primaryStage.close()); // Closes the program if exit button is clicked
|
exit.setOnMouseClicked(event -> primaryStage.close()); // Closes the program if exit button is clicked
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 3.8 KiB |
@ -12,7 +12,7 @@
|
|||||||
<Rectangle id="rectangle" arcHeight="5.0" arcWidth="5.0" fill="white" height="50.0" strokeType="INSIDE" width="900.0" />
|
<Rectangle id="rectangle" arcHeight="5.0" arcWidth="5.0" fill="white" height="50.0" strokeType="INSIDE" width="900.0" />
|
||||||
<Button id="exit" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="862.0" layoutY="13.0" mnemonicParsing="false" stylesheets="@../style/nav.css" text="X" textFill="WHITE" />
|
<Button id="exit" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="862.0" layoutY="13.0" mnemonicParsing="false" stylesheets="@../style/nav.css" text="X" textFill="WHITE" />
|
||||||
<Button id="min" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="841.0" layoutY="13.0" mnemonicParsing="false" stylesheets="@../style/nav.css" text="-" textFill="WHITE" />
|
<Button id="min" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="841.0" layoutY="13.0" mnemonicParsing="false" stylesheets="@../style/nav.css" text="-" textFill="WHITE" />
|
||||||
<ImageView id="icon" fitHeight="32" fitWidth="64" layoutX="5" layoutY="10" />
|
<ImageView id="icon" fitHeight="30" fitWidth="30" layoutX="26.0" layoutY="11.0" />
|
||||||
<Label layoutX="70.0" layoutY="11.0" text="Team-Avion Launcher" textFill="WHITE">
|
<Label layoutX="70.0" layoutY="11.0" text="Team-Avion Launcher" textFill="WHITE">
|
||||||
<font>
|
<font>
|
||||||
<Font name="Centaur" size="24.0" />
|
<Font name="Centaur" size="24.0" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user