game-library.fxml (4672B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <?import com.jfoenix.controls.JFXButton?> 4 <?import com.jfoenix.controls.JFXTextField?> 5 <?import de.jensd.fx.glyphs.materialicons.MaterialIconView?> 6 <?import java.lang.String?> 7 <?import javafx.geometry.Insets?> 8 <?import javafx.scene.Cursor?> 9 <?import javafx.scene.control.ScrollPane?> 10 <?import javafx.scene.layout.BorderPane?> 11 <?import javafx.scene.layout.FlowPane?> 12 <?import javafx.scene.layout.HBox?> 13 14 <ScrollPane fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" prefWidth="1200.0" styleClass="transparent" 15 vbarPolicy="NEVER" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="nl.isygameclient.controllers.GameLibraryController"> 16 <content> 17 <BorderPane styleClass="transparent"> 18 <top> 19 <HBox alignment="CENTER" spacing="15" BorderPane.alignment="CENTER"> 20 <children> 21 <HBox alignment="CENTER" prefWidth="500.0" spacing="5.0" styleClass="search-bar"> 22 <children> 23 <JFXButton fx:id="searchButton" alignment="CENTER" contentDisplay="CENTER" minHeight="-Infinity" 24 minWidth="-Infinity" prefHeight="40.0" prefWidth="40.0" 25 styleClass="search-loop" disable="true"> 26 <graphic> 27 <MaterialIconView glyphName="SEARCH" size="30" styleClass="icon"/> 28 </graphic> 29 <cursor> 30 <Cursor fx:constant="HAND"/> 31 </cursor> 32 </JFXButton> 33 <JFXTextField fx:id="searchTextField" promptText="Search" HBox.hgrow="ALWAYS"> 34 <styleClass> 35 <String fx:value="search-textfield"/> 36 <String fx:value="title-medium"/> 37 </styleClass> 38 </JFXTextField> 39 <JFXButton fx:id="searchClear" onAction="#onClearSearchButtonClick" minHeight="-Infinity" minWidth="-Infinity" prefHeight="40.0" prefWidth="40.0" 40 styleClass="search-close"> 41 <graphic> 42 <MaterialIconView glyphName="CLOSE" size="30" styleClass="icon"/> 43 </graphic> 44 <cursor> 45 <Cursor fx:constant="HAND"/> 46 </cursor> 47 </JFXButton> 48 <JFXButton fx:id="searchOptions" minHeight="-Infinity" minWidth="-Infinity" prefHeight="40.0" prefWidth="40.0" 49 styleClass="search-options"> 50 <graphic> 51 <MaterialIconView glyphName="TUNE" size="30" styleClass="icon"/> 52 </graphic> 53 <cursor> 54 <Cursor fx:constant="HAND"/> 55 </cursor> 56 </JFXButton> 57 </children> 58 <HBox.margin> 59 <Insets/> 60 </HBox.margin> 61 <padding> 62 <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> 63 </padding> 64 </HBox> 65 </children> 66 <BorderPane.margin> 67 <Insets bottom="15.0"/> 68 </BorderPane.margin> 69 </HBox> 70 </top> 71 <center> 72 <FlowPane fx:id="gameCards" hgap="15.0" prefHeight="200.0" prefWidth="200.0" vgap="15.0" 73 BorderPane.alignment="CENTER" > 74 <padding> 75 <Insets bottom="15.0" left="15.0" right="15.0" top="15.0"/> 76 </padding> 77 <styleClass> 78 <String fx:value="surface"/> 79 <String fx:value="rounded"/> 80 </styleClass> 81 </FlowPane> 82 </center> 83 <left> 84 </left> 85 </BorderPane> 86 </content> 87 </ScrollPane>