mirror of
https://github.com/klmp200/sarl-fireworks.git
synced 2024-11-25 02:24:28 +00:00
Add tooltips
This commit is contained in:
parent
66e070e163
commit
9ff5e66f9b
@ -4,17 +4,27 @@
|
|||||||
<?import javafx.scene.control.Button?>
|
<?import javafx.scene.control.Button?>
|
||||||
<?import javafx.scene.control.Label?>
|
<?import javafx.scene.control.Label?>
|
||||||
<?import javafx.scene.control.ScrollBar?>
|
<?import javafx.scene.control.ScrollBar?>
|
||||||
|
<?import javafx.scene.control.Tooltip?>
|
||||||
<?import javafx.scene.layout.AnchorPane?>
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
<?import javafx.scene.layout.Pane?>
|
<?import javafx.scene.layout.Pane?>
|
||||||
|
|
||||||
<Pane fx:id="main_pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="608.0" prefWidth="933.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="io.sarl.demos.fireworks.gui.FXMLViewerController">
|
<Pane fx:id="main_pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="608.0" prefWidth="933.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="io.sarl.demos.fireworks.gui.FXMLViewerController">
|
||||||
<children>
|
<children>
|
||||||
<Canvas fx:id="draw_zone" height="583.0" layoutX="199.0" layoutY="13.0" rotate="180.0" width="715.0" />
|
<Canvas fx:id="draw_zone" height="583.0" layoutX="199.0" layoutY="13.0" rotate="180.0" width="715.0" />
|
||||||
<Button fx:id="setup_button" layoutX="26.0" layoutY="45.0" mnemonicParsing="false" onAction="#actionSetup" text="%SetupButtonText" />
|
<Button fx:id="setup_button" layoutX="26.0" layoutY="45.0" mnemonicParsing="false" onAction="#actionSetup" text="%SetupButtonText">
|
||||||
<Button fx:id="launch_button" disable="true" layoutX="26.0" layoutY="89.0" mnemonicParsing="false" onAction="#actionLaunch" text="%LaunchButtonText" />
|
<tooltip>
|
||||||
|
<Tooltip text="%SetupButtonTooltip" />
|
||||||
|
</tooltip></Button>
|
||||||
|
<Button fx:id="launch_button" disable="true" layoutX="26.0" layoutY="89.0" mnemonicParsing="false" onAction="#actionLaunch" text="%LaunchButtonText">
|
||||||
|
<tooltip>
|
||||||
|
<Tooltip text="%LaunchButtonTooltip" />
|
||||||
|
</tooltip></Button>
|
||||||
<AnchorPane layoutX="30.0" layoutY="145.0">
|
<AnchorPane layoutX="30.0" layoutY="145.0">
|
||||||
<children>
|
<children>
|
||||||
<ScrollBar fx:id="gravity_input" max="3.0" onMouseEntered="#actionGravityDisplay" prefHeight="17.0" prefWidth="159.0" unitIncrement="0.1" value="0.5" />
|
<ScrollBar fx:id="gravity_input" max="3.0" onMouseEntered="#actionGravityDisplay" prefHeight="17.0" prefWidth="159.0" unitIncrement="0.1" value="0.5">
|
||||||
|
<tooltip>
|
||||||
|
<Tooltip text="%GravityTooltip" />
|
||||||
|
</tooltip></ScrollBar>
|
||||||
<Label fx:id="gravity_display" layoutX="113.0" layoutY="17.0" prefHeight="17.0" prefWidth="46.0" text="0,5" />
|
<Label fx:id="gravity_display" layoutX="113.0" layoutY="17.0" prefHeight="17.0" prefWidth="46.0" text="0,5" />
|
||||||
<Label layoutY="17.0" prefHeight="17.0" prefWidth="46.0" text="%GravityLabelText" />
|
<Label layoutY="17.0" prefHeight="17.0" prefWidth="46.0" text="%GravityLabelText" />
|
||||||
</children>
|
</children>
|
||||||
@ -23,16 +33,25 @@
|
|||||||
<children>
|
<children>
|
||||||
<Label layoutX="4.0" layoutY="17.0" text="%FireQuantityLabelText" />
|
<Label layoutX="4.0" layoutY="17.0" text="%FireQuantityLabelText" />
|
||||||
<Label fx:id="fire_quantity_display" layoutX="117.0" layoutY="17.0" prefHeight="17.0" prefWidth="46.0" text="30" />
|
<Label fx:id="fire_quantity_display" layoutX="117.0" layoutY="17.0" prefHeight="17.0" prefWidth="46.0" text="30" />
|
||||||
<ScrollBar fx:id="fire_quantity_input" layoutX="4.0" max="50.0" min="5.0" onMouseEntered="#actionFireQuantityDisplay" prefHeight="17.0" prefWidth="159.0" value="30.0" />
|
<ScrollBar fx:id="fire_quantity_input" layoutX="4.0" max="50.0" min="5.0" onMouseEntered="#actionFireQuantityDisplay" prefHeight="17.0" prefWidth="159.0" value="30.0">
|
||||||
|
<tooltip>
|
||||||
|
<Tooltip text="%FireQuantityTooltip" />
|
||||||
|
</tooltip></ScrollBar>
|
||||||
</children>
|
</children>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
<AnchorPane layoutX="30.0" layoutY="199.0">
|
<AnchorPane layoutX="30.0" layoutY="199.0">
|
||||||
<children>
|
<children>
|
||||||
<ScrollBar fx:id="rocket_quantity_input" max="40.0" min="1.0" onMouseEntered="#actionRocketQuantityDisplay" prefHeight="17.0" prefWidth="159.0" value="20.0" />
|
<ScrollBar fx:id="rocket_quantity_input" max="40.0" min="1.0" onMouseEntered="#actionRocketQuantityDisplay" prefHeight="17.0" prefWidth="159.0" value="20.0">
|
||||||
|
<tooltip>
|
||||||
|
<Tooltip text="%RocketQuantityTooltip" />
|
||||||
|
</tooltip></ScrollBar>
|
||||||
<Label layoutY="20.0" text="%RocketQuantityLabelText" />
|
<Label layoutY="20.0" text="%RocketQuantityLabelText" />
|
||||||
<Label fx:id="rocket_quantity_display" layoutX="113.0" layoutY="20.0" prefHeight="17.0" prefWidth="46.0" text="20" />
|
<Label fx:id="rocket_quantity_display" layoutX="113.0" layoutY="20.0" prefHeight="17.0" prefWidth="46.0" text="20" />
|
||||||
</children>
|
</children>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
<Button fx:id="stop_button" disable="true" layoutX="117.0" layoutY="89.0" mnemonicParsing="false" onAction="#actionStop" text="%StopButtonText" />
|
<Button fx:id="stop_button" disable="true" layoutX="117.0" layoutY="89.0" mnemonicParsing="false" onAction="#actionStop" text="%StopButtonText">
|
||||||
|
<tooltip>
|
||||||
|
<Tooltip text="%StopButtonTooltip" />
|
||||||
|
</tooltip></Button>
|
||||||
</children>
|
</children>
|
||||||
</Pane>
|
</Pane>
|
||||||
|
@ -5,3 +5,9 @@ StopButton=Stop
|
|||||||
GravityLabel=Gravity
|
GravityLabel=Gravity
|
||||||
RocketQuantityLabel=Rocket quantity
|
RocketQuantityLabel=Rocket quantity
|
||||||
FireQuantityLabel=Fire quantity
|
FireQuantityLabel=Fire quantity
|
||||||
|
SetupButtonTooltip=Setup the entire environment according to the data given below
|
||||||
|
LaunchButtonTooltip=Launch fireworks
|
||||||
|
StopButtonTooltip=Stop and freeze fireworks
|
||||||
|
GravityTooltip=Change demo gravity
|
||||||
|
RocketQuantityTooltip=Change rocket quantity of the demo
|
||||||
|
FireQuantityTooltip=Change fire quantity of the demo
|
@ -5,3 +5,9 @@ StopButtonText=Stop
|
|||||||
GravityLabelText=Gravité
|
GravityLabelText=Gravité
|
||||||
RocketQuantityLabelText=Quantité de roquettes
|
RocketQuantityLabelText=Quantité de roquettes
|
||||||
FireQuantityLabelText=Quantité de feu
|
FireQuantityLabelText=Quantité de feu
|
||||||
|
SetupButtonTooltip=Configure l'environement en fonction des données plus bas
|
||||||
|
LaunchButtonTooltip=Lance l'animation de feux d'artifices
|
||||||
|
StopButtonTooltip=Stop et gèle les feux d'artifices
|
||||||
|
GravityTooltip=Change la gravité de la démo
|
||||||
|
RocketQuantityTooltip=Change la quantité de roquettes de la démo
|
||||||
|
FireQuantityTooltip=Change la quantité de feu émise par les roquettes
|
Loading…
Reference in New Issue
Block a user