<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.effect.Light.Distant?>
<?import javafx.scene.effect.Lighting?>
<?import javafx.scene.effect.Shadow?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.text.Font?>

<StackPane prefHeight="800.0" prefWidth="1600.0" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controllers.MainController">
   <children>
      <BorderPane prefHeight="600.0" prefWidth="1200.0">
         <top>
            <FlowPane BorderPane.alignment="CENTER">
               <children>
                  <ComboBox id="SportComboBox" fx:id="sportSelector" onAction="#SportSelected" prefHeight="25.0" prefWidth="200.0" promptText="Sport" />
                  <ComboBox id="CountryComboBox" fx:id="countrySelector" disable="true" onAction="#CountrySelected" prefHeight="25.0" prefWidth="200.0" promptText="Country" />
                  <ComboBox id="LeagueComboBox" fx:id="leagueSelector" disable="true" onAction="#LeagueSelected" prefHeight="25.0" prefWidth="200.0" promptText="League" />
                  <Button fx:id="resetFilterButton" mnemonicParsing="false" onAction="#ResetFilter" text="Reset Filter" />
                  <Button fx:id="getLeagueInfoButton" disable="true" mnemonicParsing="false" onAction="#getLeagueInfo" text="Get League Info" />
                  <Button fx:id="getMoreLeagueInfo" disable="true" mnemonicParsing="false" onAction="#getMoreLeagueInfo" text="Get more league info" />
                  <Button fx:id="updateStatsTableButton" disable="true" mnemonicParsing="false" onAction="#UpdateStatsTable" text="Update Statistics" />
                  <Button fx:id="showMatchStatsButton" disable="true" mnemonicParsing="false" onAction="#setMatchStatInfo" text="Show match stats" />
               </children>
            </FlowPane>
         </top>
         <left>
            <SplitPane dividerPositions="0.38190954773869346" prefHeight="575.0" prefWidth="300.0" BorderPane.alignment="CENTER">
              <items>
                  <FlowPane prefHeight="573.0">
                     <children>
                        <TextField alignment="CENTER" editable="false" prefHeight="25.0" text="Home team" />
                        <TextField alignment="CENTER" editable="false" prefHeight="25.0" text="Away team" />
                        <TextField editable="false" prefHeight="25.0" prefWidth="100.0" text="League avarages">
                           <font>
                              <Font name="System Bold" size="12.0" />
                           </font>
                        </TextField>
                        <TextField editable="false" text="Home score" />
                        <TextField editable="false" text="Away score" />
                        <TextField editable="false" prefHeight="25.0" prefWidth="149.0" text="Season Scoring">
                           <font>
                              <Font name="System Bold" size="12.0" />
                           </font>
                        </TextField>
                        <TextField editable="false" text="0 Goals" />
                        <TextField editable="false" text="1 Goal" />
                        <TextField editable="false" text="2 Goals" />
                        <TextField editable="false" text="3 Goals" />
                        <TextField editable="false" text="4 Goals" />
                        <TextField editable="false" text="5 Goals" />
                        <TextField editable="false" text="6+ Goals" />
                     </children>
                  </FlowPane>
                  <FlowPane prefHeight="573.0" prefWidth="149.0">
                     <children>
                        <ChoiceBox id="HomeTeamSelector" fx:id="homeTeamSelector" disable="true" prefHeight="25.0" prefWidth="100.0" />
                        <ChoiceBox id="AwayTeamSelector" fx:id="awayTeamSelector" disable="true" prefHeight="25.0" prefWidth="100.0" />
                        <TextField editable="false" prefHeight="25.0" prefWidth="100.0" text="League avarages">
                           <font>
                              <Font name="System Bold" size="12.0" />
                           </font>
                        </TextField>
                        <TextField fx:id="avgLeagueHomeScoreTxt" editable="false" />
                        <TextField fx:id="avgLeagueAwayScoreTxt" editable="false" />
                        <TextField editable="false" />
                        <TextField fx:id="league0Goals" editable="false" />
                        <TextField fx:id="league1Goal" editable="false" />
                        <TextField fx:id="league2Goals" editable="false" />
                        <TextField fx:id="league3Goals" editable="false" />
                        <TextField fx:id="league4Goals" editable="false" />
                        <TextField fx:id="league5Goals" editable="false" />
                        <TextField fx:id="league6Goals" editable="false" />
                     </children>
                  </FlowPane>
              </items>
            </SplitPane>
         </left>
         <center>
            <TabPane prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE" BorderPane.alignment="CENTER">
              <tabs>
                <Tab text="Predictions">
                  <content>
                    <fx:include fx:id="matchTab" source="MatchTabBuilder.fxml" />
                  </content>
                </Tab>
                <Tab text="To Be Resolved">
                  <content>
                    <fx:include fx:id="resultsTab" source="MatchResultTabBuilder.fxml" />
                  </content>
                </Tab>
                <Tab text="Statistic Tests">
                  <content>
                    <fx:include fx:id="statTab" source="StatisticsTabBuilder.fxml" />
                  </content>
                </Tab>
                <Tab text="Standings Table">
                	<content>
 						<fx:include fx:id="matchStatTab" source="MatchStatTabBuilder.fxml" />               	
                	</content>
                </Tab>
                <Tab text="Old results">
                	<content>
                		<fx:include fx:id="oldResultsTab" source="PastResults.fxml" />
                	</content>
                </Tab>
                <Tab text="Testing">
	                <content>
	                   <fx:include fx:id="testsTab" source="Testing.fxml" />
	                </content>
                </Tab>
              </tabs>
            </TabPane>
         </center>
      </BorderPane>
      <Pane fx:id="glass" disable="true" opacity="0.0" prefHeight="600.0" prefWidth="1200.0" style="-fx-background-color: #000111;" visible="false">
         <children>
            <TextField alignment="CENTER" editable="false" layoutX="198.0" layoutY="231.0" style="-fx-background-color: #000FFF; -fx-text-fill: #FFFFFF;" text="WAIT">
               <font>
                  <Font size="65.0" />
               </font>
               <effect>
                  <Lighting>
                     <bumpInput>
                        <Shadow />
                     </bumpInput>
                     <light>
                        <Light.Distant />
                     </light>
                  </Lighting>
               </effect>
            </TextField>
         </children>
      </Pane>
   </children>
</StackPane>
