Minor fix to main window

This commit is contained in:
Jeddunk 2020-08-28 15:12:44 +02:00
parent 36a05fcd8e
commit dd99292c65
3 changed files with 75 additions and 64 deletions

View File

@ -16,6 +16,7 @@
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: me.xdrop:fuzzywuzzy:1.3.1" level="project" />
<orderEntry type="library" name="Maven: com.jfoenix:jfoenix:8.0.8" level="project" /> <orderEntry type="library" name="Maven: com.jfoenix:jfoenix:8.0.8" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-configuration2:2.6" level="project" /> <orderEntry type="library" name="Maven: org.apache.commons:commons-configuration2:2.6" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.9" level="project" /> <orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.9" level="project" />

View File

@ -30,81 +30,86 @@
--> -->
<?import java.net.URL?> <?import java.net.URL?>
<BorderPane prefHeight="361.0" prefWidth="693.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Controller"> <BorderPane prefHeight="361.0" prefWidth="693.0" xmlns="http://javafx.com/javafx/8.0.171"
xmlns:fx="http://javafx.com/fxml/1" fx:controller="Controller">
<center> <center>
<GridPane hgap="10.0" minHeight="360.0" minWidth="655.0" vgap="10.0"> <GridPane hgap="10.0" minHeight="360.0" minWidth="655.0" vgap="10.0">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="-Infinity" prefWidth="375.0"/> <ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="-Infinity"
<ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="-Infinity" prefWidth="120.0"/> prefWidth="375.0"/>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="-Infinity" prefWidth="120.0"/> <ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="-Infinity" prefWidth="120.0"/>
</columnConstraints> <ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="-Infinity" prefWidth="120.0"/>
<rowConstraints> </columnConstraints>
<RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/> <rowConstraints>
<RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/> <RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/> <RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/> <RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/> <RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/> <RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints minHeight="-Infinity" prefHeight="60.0" vgrow="SOMETIMES"/> <RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/> <RowConstraints minHeight="-Infinity" prefHeight="60.0" vgrow="SOMETIMES"/>
<RowConstraints maxHeight="-Infinity" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> <RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES"/>
</rowConstraints> </rowConstraints>
<padding> <padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
</padding> </padding>
<JFXTextField fx:id="path_textfield" promptText="Path to game's steam_api(64).dll..." GridPane.columnSpan="2"/> <JFXTextField fx:id="path_textfield" promptText="Path to game's steam_api(64).dll..."
<JFXButton fx:id="path_button" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" GridPane.columnSpan="2"/>
minHeight="-Infinity" minWidth="-Infinity" onAction="#openFileChooser" ripplerFill="BLACK" <JFXButton fx:id="path_button" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308"
GridPane.columnIndex="2"> minHeight="-Infinity" minWidth="-Infinity" onAction="#openFileChooser" ripplerFill="BLACK"
<graphic> GridPane.columnIndex="2">
<FontAwesomeIconView glyphName="FOLDER_OPEN" glyphSize="24"/> <graphic>
</graphic> <FontAwesomeIconView glyphName="FOLDER_OPEN" glyphSize="24"/>
</JFXButton> </graphic>
<JFXTextField fx:id="game_name_textfield" promptText="Game..." GridPane.rowIndex="1"/> </JFXButton>
<JFXButton fx:id="getAppId_button" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" <JFXTextField fx:id="game_name_textfield" promptText="Game..." GridPane.rowIndex="1"/>
minHeight="-Infinity" minWidth="-Infinity" onAction="#getAppId" ripplerFill="BLACK" <JFXButton fx:id="getAppId_button" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308"
GridPane.columnIndex="1" GridPane.rowIndex="1"> minHeight="-Infinity" minWidth="-Infinity" onAction="#getAppId" ripplerFill="BLACK"
<graphic> GridPane.columnIndex="1" GridPane.rowIndex="1">
<FontAwesomeIconView glyphName="SEARCH" glyphSize="24"/> <graphic>
</graphic> <FontAwesomeIconView glyphName="SEARCH" glyphSize="24"/>
</JFXButton> </graphic>
<JFXTextField fx:id="appId_textfield" prefWidth="299.0" promptText="Steam AppID..." GridPane.columnIndex="2" </JFXButton>
GridPane.rowIndex="1"/> <JFXTextField fx:id="appId_textfield" prefWidth="299.0" promptText="Steam AppID..." GridPane.columnIndex="2"
<JFXComboBox fx:id="language_combobox" editable="true" promptText="Language" GridPane.columnSpan="2147483647" GridPane.rowIndex="1"/>
GridPane.rowIndex="2"/> <JFXComboBox fx:id="language_combobox" editable="true" promptText="Language"
<JFXCheckBox fx:id="offline_checkbox" text="Force offline mode" GridPane.columnSpan="2147483647" GridPane.columnSpan="2147483647"
GridPane.rowIndex="3"/> GridPane.rowIndex="2"/>
<JFXCheckBox fx:id="extra_protection_checkbox" text="Try to bypass game-specific protection" <JFXCheckBox fx:id="offline_checkbox" text="Force offline mode" GridPane.columnSpan="2147483647"
GridPane.columnSpan="2147483647" GridPane.rowIndex="4"/> GridPane.rowIndex="3"/>
<JFXCheckBox fx:id="unlock_all_checkbox" onAction="#unlockAll_disableDlcTextArea" <JFXCheckBox fx:id="extra_protection_checkbox" text="Try to bypass game-specific protection"
text="Unlock all DLC (if possible)" GridPane.columnSpan="2147483647" GridPane.rowIndex="5"/> GridPane.columnSpan="2147483647" GridPane.rowIndex="4"/>
<JFXTextArea fx:id="dlc_textarea" promptText="List of DLC..." GridPane.columnSpan="2147483647" <JFXCheckBox fx:id="unlock_all_checkbox" onAction="#unlockAll_disableDlcTextArea"
GridPane.rowIndex="6"/> text="Unlock all DLC (if possible)" GridPane.columnSpan="2147483647" GridPane.rowIndex="5"/>
<JFXButton fx:id="retrieveDlcList_button" maxHeight="1.7976931348623157E308" maxWidth="-Infinity" <JFXTextArea fx:id="dlc_textarea" promptText="List of DLC..." GridPane.columnSpan="2147483647"
minHeight="-Infinity" minWidth="-Infinity" onAction="#getDlcList" ripplerFill="BLACK" GridPane.rowIndex="6"/>
text="Get DLCs for AppID" GridPane.rowIndex="7"/> <JFXButton fx:id="retrieveDlcList_button" maxHeight="1.7976931348623157E308" maxWidth="-Infinity"
<JFXButton fx:id="save_button" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" onAction="#getDlcList" ripplerFill="BLACK"
minHeight="-Infinity" minWidth="-Infinity" onAction="#save" ripplerFill="BLACK" text="Get DLCs for AppID" GridPane.rowIndex="7"/>
text="Save" GridPane.columnIndex="1" GridPane.rowIndex="7"/> <JFXButton fx:id="save_button" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308"
<JFXButton fx:id="reset_button" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" onAction="#save" ripplerFill="BLACK"
minHeight="-Infinity" minWidth="-Infinity" onAction="#resetFromButton" ripplerFill="BLACK" text="Save" GridPane.columnIndex="1" GridPane.rowIndex="7"/>
text="Reset" GridPane.columnIndex="2" GridPane.rowIndex="7"/> <JFXButton fx:id="reset_button" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308"
minHeight="-Infinity" minWidth="-Infinity" onAction="#resetFromButton" ripplerFill="BLACK"
text="Reset" GridPane.columnIndex="2" GridPane.rowIndex="7"/>
<BorderPane.margin> <BorderPane.margin>
<Insets /> <Insets/>
</BorderPane.margin> </BorderPane.margin>
<padding> <padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" /> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
</padding> </padding>
</GridPane> </GridPane>
</center> </center>
<bottom> <bottom>
<Label fx:id="state_label" maxWidth="1.7976931348623157E308" minHeight="25.0" minWidth="-Infinity" style="-fx-background-color: #ddd; -fx-border-color: #aaa;" text="Ready." textFill="#555555" BorderPane.alignment="CENTER"> <Label fx:id="state_label" maxWidth="1.7976931348623157E308" minHeight="25.0" minWidth="-Infinity" text="Ready."
textFill="#555555" BorderPane.alignment="CENTER">
<BorderPane.margin> <BorderPane.margin>
<Insets /> <Insets/>
</BorderPane.margin> </BorderPane.margin>
<padding> <padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" /> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
</padding></Label> </padding>
</Label>
</bottom> </bottom>
<right> <right>
<GridPane maxHeight="-Infinity" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="250.0" <GridPane maxHeight="-Infinity" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="250.0"
@ -141,6 +146,6 @@
</GridPane> </GridPane>
</right> </right>
<stylesheets> <stylesheets>
<URL value="@stylesheet.css" /> <URL value="@stylesheet.css"/>
</stylesheets> </stylesheets>
</BorderPane> </BorderPane>

View File

@ -16,3 +16,8 @@
JFXButton { JFXButton {
-fx-background-color: #ddd; -fx-background-color: #ddd;
} }
#state_label {
-fx-background-color: #ddd;
-fx-border-color: #aaa;
}