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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.shape.SVGPath?>
<?import javafx.scene.text.Font?>

<TitledPane fx:id="currentTitledPane" expanded="false" xmlns="http://javafx.com/javafx/8.0.141" xmlns:fx="http://javafx.com/fxml/1" fx:controller="konogonka.Controllers.XCI.HFSBlockController">
        <content>
            <VBox spacing="5.0">
                <children>
                    <GridPane gridLinesVisible="true">
                        <columnConstraints>
                            <ColumnConstraints hgrow="SOMETIMES" maxWidth="60.0" minWidth="55.0" />
                            <ColumnConstraints hgrow="SOMETIMES" maxWidth="60.0" minWidth="55.0" />
                            <ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="170.0" prefWidth="180.0" />
                            <ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="80.0" prefWidth="80.0" />
                        </columnConstraints>
                        <rowConstraints>
                            <RowConstraints minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
                            <RowConstraints minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
                            <RowConstraints minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
                            <RowConstraints minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
                            <RowConstraints minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
                        </rowConstraints>
                        <children>
                            <Label text="0x0" GridPane.rowIndex="1">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="0x4" GridPane.columnIndex="1" GridPane.rowIndex="1">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="0x4" GridPane.rowIndex="2">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="0x4" GridPane.columnIndex="1" GridPane.rowIndex="2">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="0x8" GridPane.rowIndex="3">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="0x4" GridPane.columnIndex="1" GridPane.rowIndex="3">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="Magicnum &quot;HFS0&quot; " GridPane.columnIndex="2" GridPane.rowIndex="1">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="Number of files" GridPane.columnIndex="2" GridPane.rowIndex="2">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="Size of the string table" GridPane.columnIndex="2" GridPane.rowIndex="3">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label fx:id="hfs0mainMagicNumLbl" text="-" GridPane.columnIndex="3" GridPane.rowIndex="1">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label fx:id="hfs0mainFileCntLbl" text="-" GridPane.columnIndex="3" GridPane.rowIndex="2">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label fx:id="hfs0mainStrTblSizeLbl" text="-" GridPane.columnIndex="3" GridPane.rowIndex="3">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="0xC" GridPane.rowIndex="4">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="0x4" GridPane.columnIndex="1" GridPane.rowIndex="4">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label text="Zero/Reserved" GridPane.columnIndex="2" GridPane.rowIndex="4">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                            <Label fx:id="hfs0mainPaddingLbl" text="-" GridPane.columnIndex="3" GridPane.rowIndex="4">
                                <padding>
                                    <Insets left="5.0" right="5.0" />
                                </padding>
                            </Label>
                  <AnchorPane styleClass="customTitleGrid">
                     <children>
                                  <Label layoutY="6.0" text="Offset" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                                      <font>
                                          <Font name="System Bold" size="13.0" />
                                      </font>
                                      <padding>
                                          <Insets left="5.0" right="5.0" />
                                      </padding>
                                  </Label>
                     </children>
                  </AnchorPane>
                  <AnchorPane styleClass="customTitleGrid" GridPane.columnIndex="1">
                     <children>
                                  <Label layoutX="21.0" layoutY="6.0" text="Size" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                                      <font>
                                          <Font name="System Bold" size="13.0" />
                                      </font>
                                      <padding>
                                          <Insets left="5.0" right="5.0" />
                                      </padding>
                                  </Label>
                     </children>
                  </AnchorPane>
                  <AnchorPane styleClass="customTitleGrid" GridPane.columnIndex="2">
                     <children>
                                  <Label layoutX="26.0" layoutY="6.0" text="Description" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                                      <font>
                                          <Font name="System Bold" size="13.0" />
                                      </font>
                                      <padding>
                                          <Insets left="5.0" right="5.0" />
                                      </padding>
                                  </Label>
                     </children>
                  </AnchorPane>
                  <AnchorPane styleClass="customTitleGrid" GridPane.columnIndex="3">
                     <children>
                                  <Label layoutY="6.0" text="Value" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                                      <font>
                                          <Font name="System Bold" size="13.0" />
                                      </font>
                                      <padding>
                                          <Insets left="5.0" right="5.0" />
                                      </padding>
                                  </Label>
                     </children>
                  </AnchorPane>
                        </children>
                    </GridPane>
                    <HBox>
                        <children>
                            <Label text="Raw data starting position: " />
                            <Label fx:id="hfs0mainRawFileDataStartLbl" text="-" />
                        </children>
                    </HBox>
                    <fx:include fx:id="hfs0tableFilesListMain" source="Hfs0TableView.fxml" />
                    <BorderPane>
                        <center>
                            <Button fx:id="extractMainBtn" disable="true" mnemonicParsing="false" text="%btnExtract" BorderPane.alignment="CENTER">
                                <graphic>
                                    <SVGPath content="M2,10.96C1.5,10.68 1.35,10.07 1.63,9.59L3.13,7C3.24,6.8 3.41,6.66 3.6,6.58L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.66,6.72 20.82,6.88 20.91,7.08L22.36,9.6C22.64,10.08 22.47,10.69 22,10.96L21,11.54V16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V10.96C2.7,11.13 2.32,11.14 2,10.96M12,4.15V4.15L12,10.85V10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V12.69L14,15.59C13.67,15.77 13.3,15.76 13,15.6V19.29L19,15.91M13.85,13.36L20.13,9.73L19.55,8.72L13.27,12.35L13.85,13.36Z" />
                                </graphic>
                            </Button>
                        </center>
                    </BorderPane>
                </children>
            </VBox>
        </content>
    </TitledPane>
