Busfahrer bitte letztes mal überarbeitet ich hasse das alles hier bitte erschiest mich
This commit is contained in:
+240
-37
@@ -5,10 +5,13 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Casino"
|
||||
mc:Ignorable="d"
|
||||
Title="Bus Driver" Height="1080" Width="1960"
|
||||
Title="Bus Driver"
|
||||
Height="1080"
|
||||
Width="1960"
|
||||
WindowState="Maximized"
|
||||
WindowStyle="None"
|
||||
Background="#2C3E50">
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="100"/>
|
||||
@@ -25,67 +28,267 @@
|
||||
<ColumnDefinition Width="280"/>
|
||||
<ColumnDefinition Width="100"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="70"/>
|
||||
<RowDefinition Height="270"/>
|
||||
<RowDefinition Height="270"/>
|
||||
<!-- Cards row -->
|
||||
<RowDefinition Height="270"/>
|
||||
<!-- Buttons row -->
|
||||
<RowDefinition Height="200"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- Main Menu Button top left -->
|
||||
<Button Grid.Column="0" Grid.Row="0" Content="Main Menu" HorizontalAlignment="Center" VerticalAlignment="Center" Click="Hauptmenue" Width="100" Height="40"/>
|
||||
<!-- Main Menu -->
|
||||
<Button Grid.Column="0"
|
||||
Grid.Row="0"
|
||||
Content="Main Menu"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Click="Hauptmenue"
|
||||
Width="100"
|
||||
Height="40"/>
|
||||
|
||||
<!-- CARDS (Row 2) -->
|
||||
<!-- Karten -->
|
||||
<Image Grid.Column="3" Grid.Row="2" x:Name="Bild_1" Margin="5" Stretch="Uniform"/>
|
||||
<Image Grid.Column="5" Grid.Row="2" x:Name="Bild_2" Margin="5" Stretch="Uniform"/>
|
||||
<Image Grid.Column="7" Grid.Row="2" x:Name="Bild_3" Margin="5" Stretch="Uniform"/>
|
||||
<Image Grid.Column="9" Grid.Row="2" x:Name="Bild_4" Margin="5" Stretch="Uniform"/>
|
||||
|
||||
<!-- BUTTONS BELOW CARDS (Row 3) -->
|
||||
<!-- Round 1: Red / Black -->
|
||||
<StackPanel x:Name="PanelRedBlack" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="7" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,20,0,0">
|
||||
<Button x:Name="BtnRed" Content="Red" Width="120" Height="50" Margin="10" Background="#E74C3C" Foreground="White" FontSize="18" FontWeight="Bold" Click="BtnRed_Click"/>
|
||||
<Button x:Name="BtnBlack" Content="Black" Width="120" Height="50" Margin="10" Background="#2C3E50" Foreground="White" FontSize="18" FontWeight="Bold" Click="BtnBlack_Click"/>
|
||||
<!-- Frage 1: Rot / Schwarz -->
|
||||
<StackPanel x:Name="PanelRedBlack"
|
||||
Grid.Row="3"
|
||||
Grid.Column="3"
|
||||
Grid.ColumnSpan="7"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Margin="0,20,0,0">
|
||||
|
||||
<Button Content="Red"
|
||||
Width="120"
|
||||
Height="50"
|
||||
Margin="10"
|
||||
Background="#E74C3C"
|
||||
Foreground="White"
|
||||
FontSize="18"
|
||||
FontWeight="Bold"
|
||||
Click="ColorButton_Click"
|
||||
Tag="Red"/>
|
||||
|
||||
<Button Content="Black"
|
||||
Width="120"
|
||||
Height="50"
|
||||
Margin="10"
|
||||
Background="#2C3E50"
|
||||
Foreground="White"
|
||||
FontSize="18"
|
||||
FontWeight="Bold"
|
||||
Click="ColorButton_Click"
|
||||
Tag="Black"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Round 2: Higher / Lower -->
|
||||
<StackPanel x:Name="PanelHigherLower" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="7" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,20,0,0" Visibility="Collapsed">
|
||||
<Button x:Name="BtnHigher" Content="Higher" Width="120" Height="50" Margin="10" Background="#2ECC71" Foreground="White" FontSize="18" FontWeight="Bold" Click="BtnHigher_Click"/>
|
||||
<Button x:Name="BtnLower" Content="Lower" Width="120" Height="50" Margin="10" Background="#E67E22" Foreground="White" FontSize="18" FontWeight="Bold" Click="BtnLower_Click"/>
|
||||
<!-- Frage 2: Höher / Niedriger -->
|
||||
<StackPanel x:Name="PanelHigherLower"
|
||||
Grid.Row="3"
|
||||
Grid.Column="3"
|
||||
Grid.ColumnSpan="7"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Margin="0,20,0,0"
|
||||
Visibility="Collapsed">
|
||||
|
||||
<Button Content="Higher"
|
||||
Width="120"
|
||||
Height="50"
|
||||
Margin="10"
|
||||
Background="#2ECC71"
|
||||
Foreground="White"
|
||||
FontSize="18"
|
||||
FontWeight="Bold"
|
||||
Click="HigherLowerButton_Click"
|
||||
Tag="Higher"/>
|
||||
|
||||
<Button Content="Lower"
|
||||
Width="120"
|
||||
Height="50"
|
||||
Margin="10"
|
||||
Background="#E67E22"
|
||||
Foreground="White"
|
||||
FontSize="18"
|
||||
FontWeight="Bold"
|
||||
Click="HigherLowerButton_Click"
|
||||
Tag="Lower"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Round 3: Inside / Outside -->
|
||||
<StackPanel x:Name="PanelInsideOutside" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="7" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,20,0,0" Visibility="Collapsed">
|
||||
<Button x:Name="BtnInside" Content="Inside" Width="130" Height="50" Margin="10" Background="#9B59B6" Foreground="White" FontSize="18" FontWeight="Bold" Click="BtnInside_Click"/>
|
||||
<Button x:Name="BtnOutside" Content="Outside" Width="130" Height="50" Margin="10" Background="#3498DB" Foreground="White" FontSize="18" FontWeight="Bold" Click="BtnOutside_Click"/>
|
||||
<!-- Frage 3: Innen / Außen -->
|
||||
<StackPanel x:Name="PanelInsideOutside"
|
||||
Grid.Row="3"
|
||||
Grid.Column="3"
|
||||
Grid.ColumnSpan="7"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Margin="0,20,0,0"
|
||||
Visibility="Collapsed">
|
||||
|
||||
<Button Content="Inside"
|
||||
Width="130"
|
||||
Height="50"
|
||||
Margin="10"
|
||||
Background="#9B59B6"
|
||||
Foreground="White"
|
||||
FontSize="18"
|
||||
FontWeight="Bold"
|
||||
Click="InsideOutsideButton_Click"
|
||||
Tag="Inside"/>
|
||||
|
||||
<Button Content="Outside"
|
||||
Width="130"
|
||||
Height="50"
|
||||
Margin="10"
|
||||
Background="#3498DB"
|
||||
Foreground="White"
|
||||
FontSize="18"
|
||||
FontWeight="Bold"
|
||||
Click="InsideOutsideButton_Click"
|
||||
Tag="Outside"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Round 4: Suit selection -->
|
||||
<StackPanel x:Name="PanelSuit" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="7" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,20,0,0" Visibility="Collapsed">
|
||||
<Button x:Name="BtnHearts" Content="♥ Hearts" Width="110" Height="50" Margin="5" Background="#E74C3C" Foreground="White" FontSize="16" FontWeight="Bold" Click="BtnSuit_Click" Tag="Hearts"/>
|
||||
<Button x:Name="BtnDiamonds" Content="♦ Diamonds" Width="110" Height="50" Margin="5" Background="#E74C3C" Foreground="White" FontSize="16" FontWeight="Bold" Click="BtnSuit_Click" Tag="Diamonds"/>
|
||||
<Button x:Name="BtnSpades" Content="♠ Spades" Width="110" Height="50" Margin="5" Background="#2C3E50" Foreground="White" FontSize="16" FontWeight="Bold" Click="BtnSuit_Click" Tag="Spades"/>
|
||||
<Button x:Name="BtnClubs" Content="♣ Clubs" Width="110" Height="50" Margin="5" Background="#2C3E50" Foreground="White" FontSize="16" FontWeight="Bold" Click="BtnSuit_Click" Tag="Clubs"/>
|
||||
<!-- Frage 4: Symbol -->
|
||||
<StackPanel x:Name="PanelSuit"
|
||||
Grid.Row="3"
|
||||
Grid.Column="3"
|
||||
Grid.ColumnSpan="7"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Margin="0,20,0,0"
|
||||
Visibility="Collapsed">
|
||||
|
||||
<Button Content="♥ Hearts"
|
||||
Width="110"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Background="#E74C3C"
|
||||
Foreground="White"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Click="BtnSuit_Click"
|
||||
Tag="Hearts"/>
|
||||
|
||||
<Button Content="♦ Diamonds"
|
||||
Width="110"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Background="#E74C3C"
|
||||
Foreground="White"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Click="BtnSuit_Click"
|
||||
Tag="Diamonds"/>
|
||||
|
||||
<Button Content="♠ Spades"
|
||||
Width="110"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Background="#2C3E50"
|
||||
Foreground="White"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Click="BtnSuit_Click"
|
||||
Tag="Spades"/>
|
||||
|
||||
<Button Content="♣ Clubs"
|
||||
Width="110"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Background="#2C3E50"
|
||||
Foreground="White"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Click="BtnSuit_Click"
|
||||
Tag="Clubs"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Cash Out / Start / Next Buttons -->
|
||||
<StackPanel Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="7" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,20">
|
||||
<Button x:Name="BtnCashOut" Content="Cash Out (0.00)" Width="180" Height="50" Margin="10" Background="#27AE60" Foreground="White" FontSize="16" FontWeight="Bold" Click="BtnCashOut_Click" Visibility="Collapsed"/>
|
||||
<Button x:Name="BtnStart" Content="Start New Game" Width="180" Height="50" Margin="10" Background="#1ABC9C" Foreground="White" FontSize="16" FontWeight="Bold" Click="BtnStart_Click"/>
|
||||
<!-- Cash Out / Start -->
|
||||
<StackPanel Grid.Row="3"
|
||||
Grid.Column="3"
|
||||
Grid.ColumnSpan="7"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Bottom"
|
||||
Margin="0,0,0,20">
|
||||
|
||||
<Button x:Name="BtnCashOut"
|
||||
Content="Cash Out ($0.00)"
|
||||
Width="180"
|
||||
Height="50"
|
||||
Margin="10"
|
||||
Background="#27AE60"
|
||||
Foreground="White"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Click="BtnCashOut_Click"
|
||||
Visibility="Collapsed"/>
|
||||
|
||||
<Button x:Name="BtnStart"
|
||||
Content="Start New Game"
|
||||
Width="180"
|
||||
Height="50"
|
||||
Margin="10"
|
||||
Background="#1ABC9C"
|
||||
Foreground="White"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Click="BtnStart_Click"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Bet Input and Current Win Text Display -->
|
||||
<StackPanel Grid.Column="5" Grid.ColumnSpan="3" Grid.Row="4" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<TextBlock x:Name="Txteinsatztext" Text="Einsatz" Foreground="White" FontSize="14" HorizontalAlignment="Center" Margin="0,0,0,5"/>
|
||||
<TextBox x:Name="TxtBet" Height="40" Width="192" Background="DimGray" Foreground="White" FontSize="18" TextAlignment="Center" VerticalContentAlignment="Center" PreviewTextInput="TxtBet_PreviewTextInput" PreviewKeyDown="TxtBet_PreviewKeyDown" DataObject.Pasting="TxtBet_Pasting"/>
|
||||
<!-- Einsatz -->
|
||||
<StackPanel Grid.Column="5"
|
||||
Grid.ColumnSpan="3"
|
||||
Grid.Row="4"
|
||||
Orientation="Vertical"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
|
||||
<TextBlock x:Name="Txteinsatztext"
|
||||
Text="Einsatz"
|
||||
Foreground="White"
|
||||
FontSize="14"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,0,0,5"/>
|
||||
|
||||
<TextBox x:Name="TxtBet"
|
||||
Height="40"
|
||||
Width="192"
|
||||
Background="DimGray"
|
||||
Foreground="White"
|
||||
FontSize="18"
|
||||
TextAlignment="Center"
|
||||
VerticalContentAlignment="Center"
|
||||
PreviewTextInput="TxtBet_PreviewTextInput"
|
||||
PreviewKeyDown="TxtBet_PreviewKeyDown"
|
||||
DataObject.Pasting="TxtBet_Pasting"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Grid.Column="11" Grid.Row="4" Text="Konto" Margin="0,108,0,-8" Foreground="White" FontSize="14" HorizontalAlignment="Center"/>
|
||||
<TextBlock x:Name="Konto" Grid.Column="11" Grid.Row="4" Height="30" Width="100" Margin="90,133,90,37" Background="DarkRed" Foreground="Silver" TextAlignment="Right" FontSize="25"/>
|
||||
|
||||
<!-- Konto -->
|
||||
<TextBlock Grid.Column="11"
|
||||
Grid.Row="4"
|
||||
Text="Konto"
|
||||
Margin="0,108,0,-8"
|
||||
Foreground="White"
|
||||
FontSize="14"
|
||||
HorizontalAlignment="Center"/>
|
||||
|
||||
<TextBlock x:Name="Konto"
|
||||
Grid.Column="11"
|
||||
Grid.Row="4"
|
||||
Height="30"
|
||||
Width="100"
|
||||
Margin="90,133,90,37"
|
||||
Background="DarkRed"
|
||||
Foreground="Silver"
|
||||
TextAlignment="Right"
|
||||
FontSize="25"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
</Window>
|
||||
|
||||
Reference in New Issue
Block a user