|
@@ -1,5 +1,9 @@
|
|
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
+
|
|
|
<?import javafx.geometry.Insets?>
|
|
<?import javafx.geometry.Insets?>
|
|
|
<?import javafx.scene.control.ScrollPane?>
|
|
<?import javafx.scene.control.ScrollPane?>
|
|
|
|
|
+<?import javafx.scene.image.Image?>
|
|
|
|
|
+<?import javafx.scene.image.ImageView?>
|
|
|
<?import javafx.scene.layout.ColumnConstraints?>
|
|
<?import javafx.scene.layout.ColumnConstraints?>
|
|
|
<?import javafx.scene.layout.GridPane?>
|
|
<?import javafx.scene.layout.GridPane?>
|
|
|
<?import javafx.scene.layout.RowConstraints?>
|
|
<?import javafx.scene.layout.RowConstraints?>
|
|
@@ -7,62 +11,69 @@
|
|
|
<?import javafx.scene.text.TextFlow?>
|
|
<?import javafx.scene.text.TextFlow?>
|
|
|
|
|
|
|
|
<?import javafx.scene.layout.StackPane?>
|
|
<?import javafx.scene.layout.StackPane?>
|
|
|
-<?import javafx.scene.image.ImageView?>
|
|
|
|
|
-<?import javafx.scene.image.Image?>
|
|
|
|
|
-<GridPane fx:controller="eu.oschl.gui.GameController"
|
|
|
|
|
- xmlns:fx="http://javafx.com/fxml/1"
|
|
|
|
|
- xmlns="http://javafx.com/javafx/25">
|
|
|
|
|
|
|
+<?import javafx.scene.shape.Rectangle?>
|
|
|
|
|
+<?import javafx.scene.control.Button?>
|
|
|
|
|
+<GridPane xmlns="http://javafx.com/javafx/25" xmlns:fx="http://javafx.com/fxml/1"
|
|
|
|
|
+ fx:controller="eu.oschl.gui.GameController">
|
|
|
|
|
+
|
|
|
<columnConstraints>
|
|
<columnConstraints>
|
|
|
<ColumnConstraints hgrow="ALWAYS"/>
|
|
<ColumnConstraints hgrow="ALWAYS"/>
|
|
|
</columnConstraints>
|
|
</columnConstraints>
|
|
|
|
|
|
|
|
<rowConstraints>
|
|
<rowConstraints>
|
|
|
- <RowConstraints minHeight="10.0" vgrow="ALWAYS" percentHeight="75.0"/>
|
|
|
|
|
- <RowConstraints minHeight="10.0" vgrow="ALWAYS" percentHeight="25.0"/>
|
|
|
|
|
|
|
+ <RowConstraints minHeight="10.0" percentHeight="75.0" vgrow="ALWAYS"/>
|
|
|
|
|
+ <RowConstraints minHeight="10.0" percentHeight="25.0" vgrow="ALWAYS"/>
|
|
|
</rowConstraints>
|
|
</rowConstraints>
|
|
|
-
|
|
|
|
|
<GridPane>
|
|
<GridPane>
|
|
|
<columnConstraints>
|
|
<columnConstraints>
|
|
|
- <ColumnConstraints minWidth="10.0" hgrow="ALWAYS" percentWidth="75.0"/>
|
|
|
|
|
- <ColumnConstraints minWidth="10.0" hgrow="ALWAYS" percentWidth="25.0"/>
|
|
|
|
|
|
|
+ <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="75.0"/>
|
|
|
|
|
+ <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="25.0"/>
|
|
|
</columnConstraints>
|
|
</columnConstraints>
|
|
|
-
|
|
|
|
|
<rowConstraints>
|
|
<rowConstraints>
|
|
|
- <RowConstraints vgrow="ALWAYS"/>
|
|
|
|
|
|
|
+ <RowConstraints minHeight="10.0" vgrow="SOMETIMES"/>
|
|
|
</rowConstraints>
|
|
</rowConstraints>
|
|
|
-
|
|
|
|
|
<ScrollPane fitToWidth="true" hbarPolicy="NEVER">
|
|
<ScrollPane fitToWidth="true" hbarPolicy="NEVER">
|
|
|
<TextFlow fx:id="output">
|
|
<TextFlow fx:id="output">
|
|
|
<padding>
|
|
<padding>
|
|
|
- <Insets top="10.0" right="10.0" bottom="10.0" left="10.0"/>
|
|
|
|
|
|
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
|
|
|
</padding>
|
|
</padding>
|
|
|
</TextFlow>
|
|
</TextFlow>
|
|
|
</ScrollPane>
|
|
</ScrollPane>
|
|
|
- <GridPane>
|
|
|
|
|
|
|
+ <GridPane GridPane.columnIndex="1">
|
|
|
<columnConstraints>
|
|
<columnConstraints>
|
|
|
- <ColumnConstraints hgrow="ALWAYS"/>
|
|
|
|
|
|
|
+ <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0"/>
|
|
|
</columnConstraints>
|
|
</columnConstraints>
|
|
|
-
|
|
|
|
|
<rowConstraints>
|
|
<rowConstraints>
|
|
|
- <RowConstraints minHeight="10.0" vgrow="ALWAYS" percentHeight="50.0"/>
|
|
|
|
|
- <RowConstraints minHeight="10.0" vgrow="ALWAYS" percentHeight="50.0"/>
|
|
|
|
|
|
|
+ <RowConstraints minHeight="10.0" percentHeight="50.0" prefHeight="30.0" vgrow="SOMETIMES"/>
|
|
|
|
|
+ <RowConstraints minHeight="10.0" percentHeight="50.0" prefHeight="30.0" vgrow="SOMETIMES"/>
|
|
|
</rowConstraints>
|
|
</rowConstraints>
|
|
|
-
|
|
|
|
|
- <ImageView p11reserveRatio="true">
|
|
|
|
|
- <Image url="@images/rooms/well.png"/>
|
|
|
|
|
- </ImageView>
|
|
|
|
|
-
|
|
|
|
|
- <GridPane>
|
|
|
|
|
-
|
|
|
|
|
- </GridPane>
|
|
|
|
|
|
|
+ <StackPane GridPane.columnIndex="0" GridPane.rowIndex="0"
|
|
|
|
|
+ GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS"
|
|
|
|
|
+ GridPane.fillWidth="true" GridPane.fillHeight="true"
|
|
|
|
|
+ fx:id="cell"
|
|
|
|
|
+ minWidth="0" minHeight="0"
|
|
|
|
|
+ maxWidth="Infinity" maxHeight="Infinity">
|
|
|
|
|
+ <clip>
|
|
|
|
|
+ <Rectangle width="${cell.width}" height="${cell.height}"/>
|
|
|
|
|
+ </clip>
|
|
|
|
|
+ <ImageView preserveRatio="true" fitWidth="${cell.width}">
|
|
|
|
|
+ <Image url="@images/rooms/well.png"/>
|
|
|
|
|
+ </ImageView>
|
|
|
|
|
+ </StackPane>
|
|
|
|
|
+ <ScrollPane fitToWidth="true" fitToHeight="true" GridPane.rowIndex="1">
|
|
|
|
|
+ <VBox fx:id="inventoryContainer" spacing="5.0" alignment="BOTTOM_CENTER">
|
|
|
|
|
+ <padding>
|
|
|
|
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
|
|
|
|
|
+ </padding>
|
|
|
|
|
+ </VBox>
|
|
|
|
|
+ </ScrollPane>
|
|
|
</GridPane>
|
|
</GridPane>
|
|
|
</GridPane>
|
|
</GridPane>
|
|
|
-
|
|
|
|
|
<ScrollPane fitToWidth="true" GridPane.rowIndex="1">
|
|
<ScrollPane fitToWidth="true" GridPane.rowIndex="1">
|
|
|
<VBox fx:id="inputButtonContainer" spacing="5.0">
|
|
<VBox fx:id="inputButtonContainer" spacing="5.0">
|
|
|
<padding>
|
|
<padding>
|
|
|
- <Insets top="10.0" right="10.0" bottom="10.0" left="10.0"/>
|
|
|
|
|
|
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
|
|
|
</padding>
|
|
</padding>
|
|
|
</VBox>
|
|
</VBox>
|
|
|
</ScrollPane>
|
|
</ScrollPane>
|
|
|
-</GridPane>
|
|
|
|
|
|
|
+</GridPane>
|