Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Quentin DRUAULT-AUBIN
lo23-project
Commits
3d922306
Commit
3d922306
authored
Dec 19, 2017
by
Audrick Libraire
Browse files
[ihm-main] add tooltip CreateGame
parent
bc17e379
Changes
1
Hide whitespace changes
Inline
Side-by-side
Battleship/src/main/resources/fxml/ihmmain/CreateGame.fxml
View file @
3d922306
...
...
@@ -11,6 +11,7 @@
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.shape.Line?>
<?import javafx.scene.control.*?>
<GridPane
id=
"generalGrid"
maxHeight=
"-Infinity"
maxWidth=
"-Infinity"
minHeight=
"600"
minWidth=
"800"
prefHeight=
"768"
prefWidth=
"1368"
stylesheets=
"@../../styles/ihmmain.css"
xmlns=
"http://javafx.com/javafx/9"
xmlns:fx=
"http://javafx.com/fxml/1"
fx:controller=
"com.utclo23.ihmmain.controller.CreateGameController"
>
<columnConstraints>
...
...
@@ -39,7 +40,6 @@
</GridPane>
<Label
id=
"pageTitleLabel"
text=
"Create a game"
textAlignment=
"CENTER"
GridPane.columnIndex=
"0"
GridPane.halignment=
"CENTER"
GridPane.rowIndex=
"0"
GridPane.valignment=
"CENTER"
/>
<Line
fx:id=
"lineDesign"
endX=
"100.0"
startX=
"-100.0"
styleClass=
"lineDesign"
GridPane.halignment=
"CENTER"
GridPane.valignment=
"BOTTOM"
/>
<GridPane
GridPane.rowIndex=
"2"
>
<columnConstraints>
<ColumnConstraints
hgrow=
"SOMETIMES"
percentWidth=
"30.0"
/>
...
...
@@ -50,28 +50,21 @@
<RowConstraints
percentHeight=
"100.0"
vgrow=
"SOMETIMES"
/>
</rowConstraints>
<children>
<!-- DEBUT CORPS -->
<GridPane
id=
"frameButton"
GridPane.columnIndex=
"1"
>
<columnConstraints>
<ColumnConstraints
hgrow=
"SOMETIMES"
percentWidth=
"10.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
percentWidth=
"80.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
percentWidth=
"10.0"
/>
</columnConstraints>
<rowConstraints>
<RowConstraints
percentHeight=
"25.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
percentHeight=
"25.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
percentHeight=
"25.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
percentHeight=
"25.0"
vgrow=
"SOMETIMES"
/>
</rowConstraints>
<children>
<GridPane
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"0"
>
<columnConstraints>
<ColumnConstraints
hgrow=
"SOMETIMES"
percentWidth=
"33.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
percentWidth=
"67.0"
/>
...
...
@@ -81,7 +74,11 @@
</rowConstraints>
<children>
<Label
id=
"formLabel"
alignment=
"CENTER_RIGHT"
text=
"Name"
GridPane.columnIndex=
"0"
GridPane.rowIndex=
"0"
/>
<TextField
fx:id=
"gameNameField"
prefHeight=
"25.0"
prefWidth=
"166.0"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"0"
/>
<TextField
fx:id=
"gameNameField"
prefHeight=
"25.0"
prefWidth=
"166.0"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"0"
>
<tooltip>
<Tooltip
text=
"Enter game's name."
/>
</tooltip>
</TextField>
</children>
</GridPane>
...
...
@@ -96,8 +93,16 @@
</rowConstraints>
<children>
<Label
id=
"formLabel"
alignment=
"CENTER_RIGHT"
text=
"Mode"
GridPane.columnIndex=
"0"
GridPane.rowIndex=
"0"
/>
<RadioButton
fx:id=
"radioButtonClassical"
alignment=
"CENTER_RIGHT"
mnemonicParsing=
"false"
text=
"CLASSIC"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"0"
/>
<RadioButton
fx:id=
"radioButtonBelge"
alignment=
"CENTER_RIGHT"
mnemonicParsing=
"false"
text=
"BELGIAN"
GridPane.columnIndex=
"2"
GridPane.rowIndex=
"0"
/>
<RadioButton
fx:id=
"radioButtonClassical"
alignment=
"CENTER_RIGHT"
mnemonicParsing=
"false"
text=
"CLASSIC"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"0"
>
<tooltip>
<Tooltip
text=
"Select if you want to play a classic game."
/>
</tooltip>
</RadioButton>
<RadioButton
fx:id=
"radioButtonBelge"
GridPane.halignment=
"RIGHT"
mnemonicParsing=
"false"
text=
"BELGIAN"
GridPane.columnIndex=
"2"
GridPane.rowIndex=
"0"
>
<tooltip>
<Tooltip
text=
"Select if you want to play a Belgian game."
/>
</tooltip>
</RadioButton>
</children>
</GridPane>
...
...
@@ -112,8 +117,16 @@
</rowConstraints>
<children>
<Label
id=
"formLabel"
alignment=
"CENTER_RIGHT"
text=
"Enemy"
GridPane.columnIndex=
"0"
GridPane.rowIndex=
"0"
/>
<RadioButton
fx:id=
"radioButtonComputer"
alignment=
"CENTER_RIGHT"
mnemonicParsing=
"false"
text=
"Computer"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"0"
/>
<RadioButton
fx:id=
"radioButtonPlayer"
alignment=
"CENTER_RIGHT"
mnemonicParsing=
"false"
text=
"Player"
GridPane.columnIndex=
"2"
GridPane.rowIndex=
"0"
/>
<RadioButton
fx:id=
"radioButtonComputer"
alignment=
"CENTER_RIGHT"
mnemonicParsing=
"false"
text=
"Computer"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"0"
>
<tooltip>
<Tooltip
text=
"Select if you want to play against the computer."
/>
</tooltip>
</RadioButton>
<RadioButton
fx:id=
"radioButtonPlayer"
GridPane.halignment=
"RIGHT"
mnemonicParsing=
"false"
text=
"Player"
GridPane.columnIndex=
"2"
GridPane.rowIndex=
"0"
>
<tooltip>
<Tooltip
text=
"Select if you want to play against an other player."
/>
</tooltip>
</RadioButton>
</children>
</GridPane>
...
...
@@ -126,8 +139,16 @@
<RowConstraints
percentHeight=
"100.0"
vgrow=
"SOMETIMES"
/>
</rowConstraints>
<children>
<CheckBox
fx:id=
"radioButtonAudience"
GridPane.columnIndex=
"0"
GridPane.rowIndex=
"0"
mnemonicParsing=
"false"
text=
"Audience"
GridPane.halignment=
"CENTER"
GridPane.valignment=
"CENTER"
/>
<CheckBox
fx:id=
"radioButtonChat"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"0"
mnemonicParsing=
"false"
text=
"Chat"
GridPane.halignment=
"CENTER"
GridPane.valignment=
"CENTER"
/>
<CheckBox
fx:id=
"radioButtonAudience"
GridPane.columnIndex=
"0"
GridPane.rowIndex=
"0"
mnemonicParsing=
"false"
text=
"Audience"
GridPane.halignment=
"CENTER"
GridPane.valignment=
"CENTER"
>
<tooltip>
<Tooltip
text=
"Check to allow viewers."
/>
</tooltip>
</CheckBox>
<CheckBox
fx:id=
"radioButtonChat"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"0"
mnemonicParsing=
"false"
text=
"Chat"
GridPane.halignment=
"CENTER"
GridPane.valignment=
"CENTER"
>
<tooltip>
<Tooltip
text=
"Check to activate chat."
/>
</tooltip>
</CheckBox>
</children>
</GridPane>
</children>
...
...
@@ -147,8 +168,16 @@
<RowConstraints
percentHeight=
"100.0"
vgrow=
"SOMETIMES"
/>
</rowConstraints>
<children>
<Button
GridPane.columnIndex=
"1"
maxWidth=
"Infinity"
GridPane.rowIndex=
"0"
onAction=
"#validateCreateGame"
text=
"Create"
GridPane.halignment=
"CENTER"
GridPane.valignment=
"CENTER"
/>
<Button
GridPane.columnIndex=
"3"
maxWidth=
"Infinity"
GridPane.rowIndex=
"0"
onAction=
"#back"
text=
"Return"
GridPane.halignment=
"CENTER"
GridPane.valignment=
"CENTER"
/>
<Button
GridPane.columnIndex=
"1"
maxWidth=
"Infinity"
GridPane.rowIndex=
"0"
onAction=
"#validateCreateGame"
text=
"Create"
GridPane.halignment=
"CENTER"
GridPane.valignment=
"CENTER"
>
<tooltip>
<Tooltip
text=
"Click to create the game."
/>
</tooltip>
</Button>
<Button
GridPane.columnIndex=
"3"
maxWidth=
"Infinity"
GridPane.rowIndex=
"0"
onAction=
"#back"
text=
"Return"
GridPane.halignment=
"CENTER"
GridPane.valignment=
"CENTER"
>
<tooltip>
<Tooltip
text=
"Click to go back to the menu."
/>
</tooltip>
</Button>
</children>
</GridPane>
<ImageView
fx:id=
"avatarImageView"
fitHeight=
"100.0"
fitWidth=
"100.0"
pickOnBounds=
"true"
preserveRatio=
"true"
GridPane.halignment=
"RIGHT"
GridPane.valignment=
"CENTER"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment