aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/resources/xyz
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/resources/xyz')
-rw-r--r--app/src/main/resources/xyz/brysonsteck/serverfordummies/primary.fxml253
1 files changed, 253 insertions, 0 deletions
diff --git a/app/src/main/resources/xyz/brysonsteck/serverfordummies/primary.fxml b/app/src/main/resources/xyz/brysonsteck/serverfordummies/primary.fxml
new file mode 100644
index 0000000..85b7370
--- /dev/null
+++ b/app/src/main/resources/xyz/brysonsteck/serverfordummies/primary.fxml
@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<?import javafx.geometry.Insets?>
+<?import javafx.scene.control.Button?>
+<?import javafx.scene.control.ButtonBar?>
+<?import javafx.scene.control.CheckBox?>
+<?import javafx.scene.control.ChoiceBox?>
+<?import javafx.scene.control.ContextMenu?>
+<?import javafx.scene.control.Label?>
+<?import javafx.scene.control.MenuItem?>
+<?import javafx.scene.control.ProgressBar?>
+<?import javafx.scene.control.Separator?>
+<?import javafx.scene.control.Spinner?>
+<?import javafx.scene.control.TextField?>
+<?import javafx.scene.control.TitledPane?>
+<?import javafx.scene.control.Tooltip?>
+<?import javafx.scene.layout.AnchorPane?>
+<?import javafx.scene.layout.HBox?>
+<?import javafx.scene.layout.Pane?>
+<?import javafx.scene.text.Font?>
+
+<Pane fx:id="primary" maxHeight="900.0" maxWidth="1500.0" minHeight="620.0" minWidth="963.0" prefHeight="708.0" prefWidth="963.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="xyz.brysonsteck.serverfordummies.PrimaryController">
+ <children>
+ <HBox prefHeight="39.0" prefWidth="963.0">
+ <children>
+ <Button id="openFile" fx:id="chooseDirectoryButton" lineSpacing="10.0" mnemonicParsing="false" onMouseClicked="#onDirectoryButtonClick" text="Choose Directory...">
+ <opaqueInsets>
+ <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
+ </opaqueInsets>
+ <HBox.margin>
+ <Insets />
+ </HBox.margin>
+ </Button>
+ <Separator orientation="VERTICAL" prefHeight="200.0">
+ <HBox.margin>
+ <Insets left="5.0" />
+ </HBox.margin>
+ </Separator>
+ <Label text="Server Directory:">
+ <HBox.margin>
+ <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
+ </HBox.margin>
+ <font>
+ <Font name="System Bold" size="13.0" />
+ </font>
+ </Label>
+ <Label id="currentFilename" fx:id="currentDirectoryLabel" text="&lt;NONE&gt;">
+ <HBox.margin>
+ <Insets bottom="5.0" right="5.0" top="5.0" />
+ </HBox.margin>
+ </Label>
+ </children>
+ <padding>
+ <Insets bottom="7.0" left="7.0" right="7.0" top="7.0" />
+ </padding>
+ </HBox>
+ <HBox fx:id="worldSettingsPane" disable="true" layoutY="39.0" prefHeight="41.0" prefWidth="963.0">
+ <padding>
+ <Insets bottom="7.0" left="7.0" right="7.0" top="7.0" />
+ </padding>
+ <children>
+ <Label text="World Name:">
+ <font>
+ <Font name="System Bold" size="13.0" />
+ </font>
+ <HBox.margin>
+ <Insets bottom="5.0" left="5.0" right="5.0" top="6.0" />
+ </HBox.margin>
+ </Label>
+ <TextField fx:id="worldNameField" onInputMethodTextChanged="#onWorldNameChange">
+ <HBox.margin>
+ <Insets top="2.0" />
+ </HBox.margin>
+ </TextField>
+ <Separator orientation="VERTICAL" prefHeight="200.0">
+ <HBox.margin>
+ <Insets left="5.0" />
+ </HBox.margin>
+ </Separator>
+ <Label text="Seed:">
+ <font>
+ <Font name="System Bold" size="13.0" />
+ </font>
+ <HBox.margin>
+ <Insets bottom="5.0" left="5.0" right="5.0" top="6.0" />
+ </HBox.margin>
+ </Label>
+ <TextField fx:id="seedField" onInputMethodTextChanged="#onSeedChange" prefHeight="23.0" prefWidth="448.0">
+ <HBox.margin>
+ <Insets top="2.0" />
+ </HBox.margin>
+ </TextField>
+ <Separator orientation="VERTICAL" prefHeight="200.0">
+ <HBox.margin>
+ <Insets left="5.0" />
+ </HBox.margin>
+ </Separator>
+ <Label text="Server Port:">
+ <font>
+ <Font name="System Bold" size="13.0" />
+ </font>
+ <HBox.margin>
+ <Insets bottom="5.0" left="5.0" right="5.0" top="6.0" />
+ </HBox.margin>
+ </Label>
+ <Spinner fx:id="portSpinner" onInputMethodTextChanged="#onPortChange" prefHeight="23.0" prefWidth="112.0">
+ <HBox.margin>
+ <Insets top="2.0" />
+ </HBox.margin>
+ </Spinner>
+ </children>
+ <opaqueInsets>
+ <Insets bottom="3.0" />
+ </opaqueInsets>
+ </HBox>
+ <Pane fx:id="parentPane" disable="true" layoutY="78.0" prefHeight="555.0" prefWidth="970.0">
+ <children>
+ <TitledPane fx:id="settingsPane" animated="false" collapsible="false" layoutX="10.0" layoutY="7.0" prefHeight="273.0" prefWidth="627.0" text="Server Settings">
+ <content>
+ <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="311.0" prefWidth="625.0">
+ <children>
+ <CheckBox fx:id="flightCheckbox" layoutX="14.0" layoutY="14.0" mnemonicParsing="false" onMouseClicked="#onCheckboxClick" text="Allow Flight" />
+ <CheckBox fx:id="netherCheckbox" layoutX="14.0" layoutY="42.0" mnemonicParsing="false" onMouseClicked="#onCheckboxClick" text="Allow The Nether" />
+ <CheckBox fx:id="structuresCheckbox" alignment="TOP_LEFT" layoutX="14.0" layoutY="70.0" mnemonicParsing="false" onMouseClicked="#onCheckboxClick" prefHeight="45.0" prefWidth="231.0" text="Generate Structures&#10;(such as villages and strongholds)" />
+ <CheckBox fx:id="pvpCheckbox" layoutX="14.0" layoutY="109.0" mnemonicParsing="false" onMouseClicked="#onCheckboxClick" text="Allow PvP" />
+ <CheckBox fx:id="whitelistCheckbox" alignment="TOP_LEFT" layoutX="14.0" layoutY="138.0" mnemonicParsing="false" onMouseClicked="#onCheckboxClick" prefHeight="45.0" prefWidth="231.0" text="Enable Whitelist&#10;(Only users you specify can join)" />
+ <Spinner fx:id="maxPlayerSpinner" layoutX="130.0" layoutY="179.0" prefHeight="23.0" prefWidth="99.0" />
+ <Label layoutX="14.0" layoutY="183.0" text="Maximum Players:" />
+ <Spinner fx:id="maxSizeSpinner" layoutX="214.0" layoutY="212.0" prefHeight="23.0" prefWidth="155.0" />
+ <Label layoutX="14.0" layoutY="216.0" text="Maximum World Size (in blocks):" />
+ </children>
+ </AnchorPane>
+ </content>
+ </TitledPane>
+ <TitledPane fx:id="advancedPane" animated="false" layoutX="10.0" layoutY="289.0" prefHeight="259.0" prefWidth="627.0" text="Advanced Server Settings">
+ <content>
+ <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="269.0" prefWidth="625.0">
+ <children>
+ <CheckBox fx:id="cmdBlocksCheckbox" layoutX="14.0" layoutY="14.0" mnemonicParsing="false" onMouseClicked="#onCheckboxClick" text="Enable Command Blocks" />
+ <CheckBox fx:id="playerCountCheckbox" layoutX="14.0" layoutY="41.0" mnemonicParsing="false" onMouseClicked="#onCheckboxClick" text="Hide Online Player Count" />
+ <Spinner fx:id="memorySpinner" layoutX="154.0" layoutY="69.0" prefHeight="23.0" prefWidth="99.0" />
+ <Label ellipsisString="" layoutX="14.0" layoutY="73.0" text="Server Memory in MB:" textOverrun="CLIP">
+ <tooltip>
+ <Tooltip text="This is the amount of RAM that will get passed to Minecraft/the JVM.&#10;For simple servers, 1024 MB will be plenty.&#10;If you typically have more than 5 concurrent players, consider allocating more." />
+ </tooltip>
+ </Label>
+ <Spinner fx:id="spawnSpinner" layoutX="172.0" layoutY="100.0" prefHeight="23.0" prefWidth="99.0" />
+ <Label layoutX="14.0" layoutY="104.0" text="Spawn Protection Radius:">
+ <tooltip>
+ <Tooltip text="All blocks in a radius from 0,~,0 will be unbreakable. &#10;If you want to break blocks within spawn, change this value." />
+ </tooltip>
+ </Label>
+ <Spinner fx:id="simulationSpinner" layoutX="147.0" layoutY="132.0" prefHeight="23.0" prefWidth="99.0" />
+ <Label layoutX="14.0" layoutY="136.0" text="Simulation Distance:">
+ <tooltip>
+ <Tooltip text="The radius of chunks for each player where ticks will be updated.&#10;In other words, anything outside these circles, such as furnaces, mobs, etc, will not be updated or simulated." />
+ </tooltip>
+ </Label>
+ <Spinner fx:id="renderSpinner" layoutX="124.0" layoutY="165.0" prefHeight="23.0" prefWidth="99.0" />
+ <Label layoutX="14.0" layoutY="169.0" text="Render Distance:">
+ <tooltip>
+ <Tooltip text="The radius of chunks where the server will render the view distance.&#10;Any value higher on a client than what is set will be ignored.&#10;Higher values will be more demanding on the server." />
+ </tooltip>
+ </Label>
+ <Label layoutX="14.0" layoutY="203.0" text="Maximum Tick Time (in milliseconds):">
+ <tooltip>
+ <Tooltip text="If the server cannot update ticks (i.e. &quot;lags&quot;) for longer than this amount of time, the server will shutdown.&#10;60000 ms (60 seconds) is the default." />
+ </tooltip>
+ </Label>
+ <Spinner fx:id="maxTickSpinner" layoutX="246.0" layoutY="199.0" prefHeight="23.0" prefWidth="99.0" />
+ </children>
+ </AnchorPane>
+ </content>
+ </TitledPane>
+ <TitledPane fx:id="difficultyPane" animated="false" collapsible="false" layoutX="649.0" layoutY="7.0" prefHeight="77.0" prefWidth="305.0" text="Difficulty">
+ <content>
+ <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="94.0" prefWidth="303.0">
+ <children>
+ <ChoiceBox fx:id="difficultyBox" layoutX="14.0" layoutY="14.0" prefHeight="23.0" prefWidth="276.0">
+ <contextMenu>
+ <ContextMenu>
+ <items>
+ <MenuItem mnemonicParsing="false" />
+ </items>
+ </ContextMenu>
+ </contextMenu>
+ </ChoiceBox>
+ </children>
+ </AnchorPane>
+ </content>
+ </TitledPane>
+ <TitledPane fx:id="gamemodePane" animated="false" collapsible="false" layoutX="649.0" layoutY="92.0" prefHeight="77.0" prefWidth="305.0" text="Gamemode">
+ <content>
+ <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="94.0" prefWidth="303.0">
+ <children>
+ <ChoiceBox fx:id="gamemodeBox" layoutX="14.0" layoutY="14.0" prefHeight="23.0" prefWidth="276.0" />
+ </children>
+ </AnchorPane>
+ </content>
+ </TitledPane>
+ <TitledPane fx:id="worldTypePane" animated="false" collapsible="false" layoutX="649.0" layoutY="178.0" prefHeight="77.0" prefWidth="305.0" text="World Type">
+ <content>
+ <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="94.0" prefWidth="303.0">
+ <children>
+ <ChoiceBox fx:id="worldTypeBox" layoutX="14.0" layoutY="14.0" prefHeight="23.0" prefWidth="276.0" />
+ </children>
+ </AnchorPane>
+ </content>
+ </TitledPane>
+ <TitledPane fx:id="worldTypePane1" animated="false" collapsible="false" layoutX="649.0" layoutY="265.0" prefHeight="283.0" prefWidth="305.0" text="Whitelist">
+ <content>
+ <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="94.0" prefWidth="303.0">
+ <children>
+ <ChoiceBox layoutX="14.0" layoutY="14.0" prefHeight="23.0" prefWidth="276.0" />
+ </children>
+ </AnchorPane>
+ </content>
+ </TitledPane>
+ </children>
+ </Pane>
+ <ButtonBar fx:id="buttonBar" disable="true" layoutY="635.0" prefHeight="40.0" prefWidth="963.0">
+ <buttons>
+ <Button mnemonicParsing="false" text="Build Server" />
+ <Button defaultButton="true" mnemonicParsing="false" text="Start Server" />
+ </buttons>
+ <padding>
+ <Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
+ </padding>
+ </ButtonBar>
+ <HBox layoutY="680.0" prefHeight="33.0" prefWidth="963.0" style="-fx-background-color: ddd;">
+ <children>
+ <Label text="Status:">
+ <font>
+ <Font name="System Bold" size="13.0" />
+ </font>
+ </Label>
+ <Label fx:id="statusBar" text="Ready.">
+ <HBox.margin>
+ <Insets left="5.0" />
+ </HBox.margin>
+ </Label>
+ <ProgressBar fx:id="progressBar" prefWidth="400.0" progress="0.0" visible="false">
+ <HBox.margin>
+ <Insets left="460.0" />
+ </HBox.margin>
+ </ProgressBar>
+ </children>
+ <padding>
+ <Insets bottom="9.0" left="9.0" right="9.0" top="9.0" />
+ </padding>
+ </HBox>
+ </children>
+</Pane>