Skip to content
Snippets Groups Projects
Select Git revision
  • 0e6bc2859d6ee7a437503fc30f7bea20e322c26f
  • main default protected
  • melissa
  • yanis
  • variant
5 results

view.fxml

Blame
  • Forked from COUETOUX Basile / FirefighterStarter
    83 commits ahead of the upstream repository.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    view.fxml 2.18 KiB
    <?xml version="1.0" encoding="UTF-8"?>
    
    <?import javafx.scene.control.Button?>
    <?import javafx.scene.control.Label?>
    <?import javafx.scene.control.Separator?>
    <?import javafx.scene.control.ToggleButton?>
    <?import javafx.scene.layout.HBox?>
    <?import javafx.scene.layout.VBox?>
    <?import view.FirefighterGrid?>
    
    <HBox styleClass="background" stylesheets="@DarkTheme.css"
          xmlns="http://javafx.com/javafx"
          xmlns:fx="http://javafx.com/fxml"
          fx:controller="controller.Controller">
      <VBox>
        <Separator maxHeight="-Infinity" maxWidth="-Infinity"
                   prefHeight="24.0" prefWidth="200.0" />
        <Label maxHeight="-Infinity" maxWidth="-Infinity"
               alignment="CENTER" prefHeight="24.0" prefWidth="200.0"
               text="Generation number" />
        <Label fx:id="generationNumberLabel"
               alignment="CENTER" contentDisplay="TEXT_ONLY"
               maxHeight="-Infinity" maxWidth="-Infinity"
               prefHeight="24.0" prefWidth="200.0" />
        <Separator maxHeight="-Infinity" maxWidth="-Infinity"
                   prefHeight="24.0" prefWidth="200.0" />
        <Button fx:id="restartButton" maxHeight="-Infinity" maxWidth="-Infinity"
                mnemonicParsing="false" onAction="#restartButtonAction"
                prefHeight="24.0" prefWidth="200.0" text="Restart" />
        <Button fx:id="oneStepButton" maxHeight="-Infinity" maxWidth="-Infinity"
                mnemonicParsing="false" onAction="#oneStepButtonAction"
                prefHeight="24.0" prefWidth="200.0" text="One step" />
        <ToggleButton fx:id="playToggleButton" maxHeight="-Infinity" maxWidth="-Infinity"
                      mnemonicParsing="false" onAction="#playToggleButtonAction"
                      prefHeight="24.0" prefWidth="200.0"
                      styleClass="button" text="Play" />
        <ToggleButton fx:id="pauseToggleButton" maxHeight="-Infinity" maxWidth="-Infinity"
                      mnemonicParsing="false" onAction="#pauseToggleButtonAction"
                      prefHeight="24.0" prefWidth="200.0"
                      styleClass="button" text="Pause" />
      </VBox>
      <FirefighterGrid fx:id="grid"
                       xmlns="http://javafx.com/javafx"
                       xmlns:fx="http://javafx.com/fxml">
      </FirefighterGrid>
    </HBox>