Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Login (error message still needs fixing)
- Loading branch information
Showing
12 changed files
with
511 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,31 +1,37 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
|
|
||
<?import javafx.geometry.Insets?> | <?import javafx.geometry.Insets?> | ||
<?import javafx.scene.control.*?> | <?import javafx.scene.control.Button?> | ||
<?import javafx.scene.control.CheckBox?> | |||
<?import javafx.scene.control.TextField?> | |||
<?import javafx.scene.layout.Pane?> | <?import javafx.scene.layout.Pane?> | ||
<?import javafx.scene.layout.StackPane?> | <?import javafx.scene.layout.StackPane?> | ||
<?import javafx.scene.layout.VBox?> | <?import javafx.scene.layout.VBox?> | ||
<StackPane prefHeight="148.0" prefWidth="286.0" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1" fx:controller="me.corriekay.pokegoutil.GUI.controller.LoginController"> |
|
||
<?import javafx.scene.control.PasswordField?> | |||
<StackPane xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1"> | |||
<children> | <children> | ||
<StackPane prefHeight="0.0" prefWidth="0.0"> | <StackPane prefHeight="0.0" prefWidth="0.0"> | ||
<children> | <children> | ||
<VBox prefHeight="0.0" prefWidth="0.0" spacing="10.0"> | <VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" spacing="10.0"> | ||
<children> | <children> | ||
<TextField fx:id="user" prefHeight="25.0" prefWidth="330.0" promptText="PTC Username:"/> | <TextField fx:id="usernameField" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="25.0" prefWidth="266.0" promptText="PTC Username:" /> | ||
<TextField fx:id="password" promptText="PTC Password:"/> | <PasswordField fx:id="passwordField" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="25.0" prefWidth="266.0" promptText="PTC Password:" /> | ||
<Pane prefHeight="29.0" prefWidth="0.0"> | <Button fx:id="ptcLoginBtn" alignment="CENTER" contentDisplay="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="25.0" prefWidth="111.0" text="Use PTC Auth" /> | ||
<children> | <Pane> | ||
<Button fx:id="googleAuthBtn" alignment="CENTER" contentDisplay="CENTER" layoutX="144.0" layoutY="2.0" mnemonicParsing="false" onAction="#onGoogleAuthBtnClicked" prefHeight="25.0" prefWidth="111.0" text="Use Google Auth"/> | <children> | ||
<Button fx:id="ptcLoginBtn" alignment="CENTER" contentDisplay="CENTER" layoutY="2.0" mnemonicParsing="false" onAction="#onPTCLoginBtnClicked" prefHeight="25.0" prefWidth="111.0" text="Use PTC Auth"/> | <TextField fx:id="tokenField" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="25.0" prefWidth="187.0" promptText="Google Auth Token:" /> | ||
</children> | <Button fx:id="getTokenBtn" layoutX="198.0" mnemonicParsing="false" text="Get Token" /> | ||
</Pane> | </children> | ||
<CheckBox fx:id="autoRelogChkbx" mnemonicParsing="false" prefHeight="17.0" prefWidth="147.0" text="Remember Credencials"/> | </Pane> | ||
<Button fx:id="googleAuthBtn" alignment="CENTER" contentDisplay="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="25.0" prefWidth="111.0" text="Use Google Auth" /> | |||
<CheckBox fx:id="saveAuthChkbx" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="17.0" prefWidth="147.0" text="Remember Credencials" /> | |||
</children> | </children> | ||
</VBox> | </VBox> | ||
</children> | </children> | ||
</StackPane> | </StackPane> | ||
</children> | </children> | ||
<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> | ||
</StackPane> | </StackPane> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.