Add Game UI logic #255
@@ -18,31 +18,62 @@
|
|||||||
layoutX="50.0" layoutY="710.0">
|
layoutX="50.0" layoutY="710.0">
|
||||||
|
|
||||||
<!-- Placeholder buttons -->
|
<!-- Placeholder buttons -->
|
||||||
<Button text="EINSTELLUNGEN" styleClass="gray-button" />
|
Fix: correct Taskbar UI
|
||||||
|
Refs #52 <Button text="SETTINGS" styleClass="gray-button" />
|
||||||
<Button text="INFO" styleClass="gray-button" />
|
<Button text="INFO" styleClass="gray-button" />
|
||||||
<!-- Buten for the Casono Browser -->
|
<!-- Buten for the Casono Browser -->
|
||||||
<Button text="HILFE" onAction="#onBrowserButtonClick" styleClass="gray-button" />
|
<Button text="HELP" onAction="#onBrowserButtonClick" styleClass="gray-button" />
|
||||||
|
|
||||||
<!-- Vertical dividing line: Creates a visual separation between two button areas -->
|
<!-- Vertical dividing line: Creates a visual separation between two button areas -->
|
||||||
<Separator orientation="VERTICAL" prefHeight="20" opacity="0.3" />
|
<Separator orientation="VERTICAL" prefHeight="20" opacity="0.3" />
|
||||||
|
|
||||||
<!-- Input field: Responds to the Enter key to confirm the entry -->
|
<!-- Input field: Responds to the Enter key to confirm the entry -->
|
||||||
<TextField fx:id="taskbarInput"
|
<TextField fx:id="taskbarInput"
|
||||||
promptText="Betrag setzen..."
|
promptText="Set amount..."
|
||||||
onKeyPressed="#onInputSubmitted"
|
onKeyPressed="#onInputSubmitted"
|
||||||
styleClass="gray-input-field"
|
styleClass="gray-input-field"
|
||||||
prefWidth="150" />
|
prefWidth="150" />
|
||||||
|
|
||||||
<!-- Confirmation button: Alternative to the Enter key to submit the entry -->
|
<!-- Confirmation button: Alternative to the Enter key to submit the entry -->
|
||||||
<Button text="SETZTEN"
|
<Button text="BET"
|
||||||
|
fx:id="betButton"
|
||||||
onAction="#onInputSubmittedAction"
|
onAction="#onInputSubmittedAction"
|
||||||
styleClass="yellow-button"/>
|
styleClass="yellow-button"/>
|
||||||
|
|
||||||
|
<!-- Action buttons: Trigger Call -->
|
||||||
|
<Button text="Call"
|
||||||
|
fx:id="callButton"
|
||||||
|
onAction="#onInputPlayerCall"
|
||||||
|
styleClass="yellow-button"/>
|
||||||
|
|
||||||
|
<!-- Action buttons: Trigger Fold -->
|
||||||
|
<Button text="Fold"
|
||||||
|
fx:id="foldButton"
|
||||||
|
onAction="#onInputPlayerFold"
|
||||||
|
styleClass="yellow-button"/>
|
||||||
|
|
||||||
|
<!-- Action buttons: Trigger Raise -->
|
||||||
|
<Button text="Raise"
|
||||||
|
fx:id="raiseButton"
|
||||||
|
onAction="#onInputPlayerRaise"
|
||||||
|
styleClass="yellow-button"/>
|
||||||
|
|
||||||
<!-- Vertical dividing line: Creates a visual separation between two button areas -->
|
<!-- Vertical dividing line: Creates a visual separation between two button areas -->
|
||||||
<Separator orientation="VERTICAL" prefHeight="20" opacity="0.3" />
|
<Separator orientation="VERTICAL" prefHeight="20" opacity="0.3" />
|
||||||
|
|
||||||
|
<!-- Money display: Shows the player's current balance -->
|
||||||
|
<VBox alignment="CENTER" spacing="2">
|
||||||
|
|
||||||
|
<Label fx:id="moneyLabel"
|
||||||
|
text="20000$"
|
||||||
|
styleClass="money-value"/>
|
||||||
|
|
||||||
|
</VBox>
|
||||||
|
|
||||||
|
<Separator orientation="VERTICAL" prefHeight="20" opacity="0.3" />
|
||||||
|
|
||||||
<!-- Menu button: Cancels the current game and returns to the main menu -->
|
<!-- Menu button: Cancels the current game and returns to the main menu -->
|
||||||
<Button text="VERLASSEN"
|
<Button text="LEAVE"
|
||||||
onAction="#onExitButtonClick"
|
onAction="#onExitButtonClick"
|
||||||
styleClass="red-button"/>
|
styleClass="red-button"/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user