From bce2f51a7b7f47022f96f8178a9a79bd9ee5658c Mon Sep 17 00:00:00 2001 From: "NBTEMP\\bib" Date: Wed, 9 Sep 2026 12:00:25 +0200 Subject: [PATCH 1/5] neue version von slot animation (unfertig) --- Casino/MainWindow.xaml.cs | 2 +- Casino/Slots.xaml.cs | 31 ++++++++++++++++++++++++++++--- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/Casino/MainWindow.xaml.cs b/Casino/MainWindow.xaml.cs index 3509d65..299f6f4 100644 --- a/Casino/MainWindow.xaml.cs +++ b/Casino/MainWindow.xaml.cs @@ -31,7 +31,7 @@ namespace Casino private void Sound_Click(object sender, RoutedEventArgs e) { Database data = new Database(); - byte[] blobData = data.GetSound(1); + byte[] blobData = data.GetSound(2); var audioService = new Audioplayer(); audioService.PlayMusic(blobData); } diff --git a/Casino/Slots.xaml.cs b/Casino/Slots.xaml.cs index da31e4e..2ac3e80 100644 --- a/Casino/Slots.xaml.cs +++ b/Casino/Slots.xaml.cs @@ -75,14 +75,39 @@ namespace Casino users[MainWindow.currentUser].Geld += 100; for (int i = 0; i < 50; i++) { - foreach (var image in _bilder) + int[,] currentSlot = new int[6, 3]; + for (int j = 6; j<_bilder.Count;j--) { int randomBild = _random.Next(0, AlleBilder.Count); - LoadCard(image, randomBild); - } + if (i == 0) + { + currentSlot[0,j] = randomBild; + LoadCard(_bilder[j], randomBild); + } + else if (i == 1) + { + currentSlot[1, j] = currentSlot[0, j]; + LoadCard(_bilder[j + 6], currentSlot[0,j]); + currentSlot[0, j] = randomBild; + LoadCard(_bilder[j], randomBild); + } + else + { + currentSlot[1, j] = currentSlot[0, j]; + LoadCard(_bilder[j + 12], currentSlot[1, j]); + currentSlot[2, j] = currentSlot[1, j]; + LoadCard(_bilder[j + 6], currentSlot[0, j]); + currentSlot[0, j] = randomBild; + LoadCard(_bilder[j], randomBild); + } + await Task.Delay(70); + + + } await Task.Delay(70); + } } From 65b633dcb1266714b1bc378de479740bbbd63a83 Mon Sep 17 00:00:00 2001 From: "NBTEMP\\bib" Date: Thu, 10 Sep 2026 11:10:03 +0200 Subject: [PATCH 2/5] =?UTF-8?q?Animation=20f=C3=BCr=20Slots=20fertig=20ges?= =?UTF-8?q?tellt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Casino/Slots.xaml | 2 +- Casino/Slots.xaml.cs | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Casino/Slots.xaml b/Casino/Slots.xaml index 9787a1b..88288dc 100644 --- a/Casino/Slots.xaml +++ b/Casino/Slots.xaml @@ -62,7 +62,7 @@