game.fxml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.geometry.Insets?>
  3. <?import javafx.scene.control.ScrollPane?>
  4. <?import javafx.scene.image.Image?>
  5. <?import javafx.scene.image.ImageView?>
  6. <?import javafx.scene.layout.ColumnConstraints?>
  7. <?import javafx.scene.layout.GridPane?>
  8. <?import javafx.scene.layout.RowConstraints?>
  9. <?import javafx.scene.layout.VBox?>
  10. <?import javafx.scene.text.TextFlow?>
  11. <?import javafx.scene.layout.StackPane?>
  12. <?import javafx.scene.shape.Rectangle?>
  13. <?import javafx.scene.control.Button?>
  14. <GridPane xmlns="http://javafx.com/javafx/25" xmlns:fx="http://javafx.com/fxml/1"
  15. fx:controller="eu.oschl.gui.GameController">
  16. <columnConstraints>
  17. <ColumnConstraints hgrow="ALWAYS"/>
  18. </columnConstraints>
  19. <rowConstraints>
  20. <RowConstraints minHeight="10.0" percentHeight="75.0" vgrow="ALWAYS"/>
  21. <RowConstraints minHeight="10.0" percentHeight="25.0" vgrow="ALWAYS"/>
  22. </rowConstraints>
  23. <GridPane>
  24. <columnConstraints>
  25. <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="75.0"/>
  26. <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="25.0"/>
  27. </columnConstraints>
  28. <rowConstraints>
  29. <RowConstraints minHeight="10.0" vgrow="SOMETIMES"/>
  30. </rowConstraints>
  31. <ScrollPane fitToWidth="true" hbarPolicy="NEVER">
  32. <TextFlow fx:id="output">
  33. <padding>
  34. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
  35. </padding>
  36. </TextFlow>
  37. </ScrollPane>
  38. <GridPane GridPane.columnIndex="1">
  39. <columnConstraints>
  40. <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0"/>
  41. </columnConstraints>
  42. <rowConstraints>
  43. <RowConstraints minHeight="10.0" percentHeight="50.0" prefHeight="30.0" vgrow="SOMETIMES"/>
  44. <RowConstraints minHeight="10.0" percentHeight="50.0" prefHeight="30.0" vgrow="SOMETIMES"/>
  45. </rowConstraints>
  46. <StackPane GridPane.columnIndex="0" GridPane.rowIndex="0"
  47. GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS"
  48. GridPane.fillWidth="true" GridPane.fillHeight="true"
  49. fx:id="cell"
  50. minWidth="0" minHeight="0"
  51. maxWidth="Infinity" maxHeight="Infinity">
  52. <clip>
  53. <Rectangle width="${cell.width}" height="${cell.height}"/>
  54. </clip>
  55. <ImageView fx:id="mapContainer" preserveRatio="true" fitWidth="${cell.width}">
  56. <Image url="@images/map/royal_well.png"/>
  57. </ImageView>
  58. </StackPane>
  59. <ScrollPane fitToWidth="true" fitToHeight="true" GridPane.rowIndex="1">
  60. <VBox fx:id="inventoryContainer" spacing="5.0" alignment="BOTTOM_CENTER">
  61. <padding>
  62. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
  63. </padding>
  64. </VBox>
  65. </ScrollPane>
  66. </GridPane>
  67. </GridPane>
  68. <ScrollPane fitToWidth="true" GridPane.rowIndex="1">
  69. <VBox fx:id="inputButtonContainer" spacing="5.0">
  70. <padding>
  71. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
  72. </padding>
  73. </VBox>
  74. </ScrollPane>
  75. </GridPane>