On death a menu will pop up telling the user he is dead. #story[1292]
This commit is contained in:
@@ -187,6 +187,29 @@
|
||||
</children>
|
||||
</AnchorPane>
|
||||
<ImageView fx:id="imageView" fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true" />
|
||||
<StackPane fx:id="deathPane" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||
<children>
|
||||
<AnchorPane mouseTransparent="true" opacity="0.31" prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: grey;" />
|
||||
<Label alignment="CENTER" text="You have died..." StackPane.alignment="TOP_CENTER">
|
||||
<font>
|
||||
<Font size="34.0" />
|
||||
</font>
|
||||
<StackPane.margin>
|
||||
<Insets top="100.0" />
|
||||
</StackPane.margin>
|
||||
</Label>
|
||||
<Label alignment="CENTER" text="But you can still watch the race!" StackPane.alignment="TOP_CENTER">
|
||||
<StackPane.margin>
|
||||
<Insets top="165.0" />
|
||||
</StackPane.margin>
|
||||
</Label>
|
||||
<Button alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" onAction="#deathOKPressed" prefHeight="25.0" prefWidth="52.0" text="OK" StackPane.alignment="TOP_CENTER">
|
||||
<StackPane.margin>
|
||||
<Insets top="200.0" />
|
||||
</StackPane.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</StackPane>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
<AnchorPane fx:id="infoWrapper" focusTraversable="true" minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="200.0" visible="false">
|
||||
|
||||
Reference in New Issue
Block a user