Versuch Tutorial Fenster

This commit is contained in:
Tikkinger 2025-04-15 16:29:42 +02:00
parent 14bbb76c0c
commit 5212dceaca
59 changed files with 92 additions and 29 deletions

View File

@ -13,10 +13,10 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Controller")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11a5b29c0ae037ed61425f951969e580f3040869")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+14bbb76c0c2a302d1df84b917ff85417b38cc604")]
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Controller")]
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Controller")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -1 +1 @@
801a73e485f3a20a695ba14798717439568fab3a3d94621b6357d7b2719b5888
ff9b93ff698e502c1bab9c1c0608a418db54bb59353531dfaeb7d173e3fa06a3

View File

@ -13,10 +13,10 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Model")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11a5b29c0ae037ed61425f951969e580f3040869")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+14bbb76c0c2a302d1df84b917ff85417b38cc604")]
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Model")]
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Model")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -1 +1 @@
e81d9b36841d44d07e3957f74a410bf85ce39a9b97788eb697ae00f8d5b1e87d
bc954bd748bb2b98ba64519e70e8d68bc886f93548581690d8135f2319402796

View File

@ -13,10 +13,10 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.Persistence")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11a5b29c0ae037ed61425f951969e580f3040869")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+14bbb76c0c2a302d1df84b917ff85417b38cc604")]
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.Persistence")]
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.Persistence")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -1 +1 @@
fc4aad57d203ab1df9a0883b07157bf1dfc3fa6c0167a10d281fd992462a2d38
55b2e6c8c44a6f12e64e01a1823ccbf3dda35344c2d667f9e52f8f950e91e4f8

View File

@ -25,26 +25,15 @@ namespace AquaCare.View
private void buttonTutorialsClick(object? sender, RoutedEventArgs e)
{
var dialog = new Window { Title = "Tutorials" };
dialog.ShowDialog(this);
var tutorialsWindow = new TutorialsWindow();
tutorialsWindow.ShowDialog(this); // Dialog für Tutorial-Fenster
}
private void OpenSettingsWindow(object? sender, RoutedEventArgs e)
{
// Neues Fenster für Einstellungen
var settingsWindow = new Window
{
Title = "Einstellungen",
Width = 400,
Height = 300
};
settingsWindow.ShowDialog(this);
}
private void buttonEinstellungenClick(object? sender, RoutedEventArgs e)
{
var einstellungenWindow = new EinstellungenWindow();
einstellungenWindow.Show();
var dialog = new Window { Title = "Einstellungen" };
dialog.ShowDialog(this);
}
}

View File

@ -0,0 +1,42 @@
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AquaCare.View.TutorialsWindow"
Title="Tutorials"
Width="1280" Height="720"
Icon="Ressourcen/Bilder/ProgrammIcon.ico">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Überschrift -->
<TextBlock Text="Was kannst du nicht ?"
FontSize="24"
HorizontalAlignment="Center"
Margin="0,20,0,10"
Grid.Row="0" />
<!-- Inhalte mittig -->
<StackPanel Grid.Row="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Spacing="20">
<!-- Buttons für Tutorials -->
<Button Content="Fische füttern" Width="200" Height="50" Click="FischeFütternClick"/>
<Button Content="Wasser wechseln" Width="200" Height="50" Click="WasserWechselnClick"/>
<Button Content="Filter reinigen" Width="200" Height="50" Click="FilterReinigenClick"/>
<!-- Textblock für Tutorial-Inhalt -->
<TextBlock Name="tutorialContentTextBlock"
Text="Hier erscheint der Tutorial-Inhalt"
TextWrapping="Wrap"
MaxWidth="500"
Margin="0,20,0,0"
HorizontalAlignment="Center"/>
</StackPanel>
</Grid>
</Window>

View File

@ -0,0 +1,29 @@
using Avalonia.Controls;
using Avalonia.Interactivity;
namespace AquaCare.View
{
public partial class TutorialsWindow : Window
{
public TutorialsWindow()
{
InitializeComponent();
}
private void FischeFütternClick(object? sender, RoutedEventArgs e)
{
tutorialContentTextBlock.Text = "Inhalt des Tutorials 1: Dies ist ein Beispieltext für das erste Tutorial.";
}
private void WasserWechselnClick(object? sender, RoutedEventArgs e)
{
tutorialContentTextBlock.Text = "Inhalt des Tutorials 2: Hier wird erklärt, wie man das zweite Tutorial nutzt.";
}
private void FilterReinigenClick(object? sender, RoutedEventArgs e)
{
tutorialContentTextBlock.Text = "Inhalt des Tutorials 3: Dies ist der Text für das dritte Tutorial.";
}
}
}

View File

@ -13,10 +13,10 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AquaCare.View")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+11a5b29c0ae037ed61425f951969e580f3040869")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+14bbb76c0c2a302d1df84b917ff85417b38cc604")]
[assembly: System.Reflection.AssemblyProductAttribute("AquaCare.View")]
[assembly: System.Reflection.AssemblyTitleAttribute("AquaCare.View")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -1 +1 @@
41f6315c9692112227b0dfbf1b410479de47434a9269b2e90db57e631e7e6555
acb11ad9162c0610999f415a5d0d53ddd542f617f8b3f06af2140fa06ba018ee

View File

@ -29,3 +29,6 @@ build_metadata.AdditionalFiles.SourceItemGroup = AvaloniaXaml
[C:/Users/Maximilian.Martikke/Desktop/AquaCare/AquaCare/AquaCare.View/MainWindow.axaml]
build_metadata.AdditionalFiles.SourceItemGroup = AvaloniaXaml
[C:/Users/Maximilian.Martikke/Desktop/AquaCare/AquaCare/AquaCare.View/TutorialsWindow.axaml]
build_metadata.AdditionalFiles.SourceItemGroup = AvaloniaXaml

View File

@ -1 +1 @@
44275bb71f59daa802ad031b9f2fd7329464f1e0da2162ab309980fa117b4571
04620cd2fb202d49a19edb89080f8dcda889d32ef26162a2f78d8a7c42899845

View File

@ -1 +1 @@
cff4442003afd3eaade8e0c7955809ed9c21a10c8f7f9ecc9fcde1a5e594474b
2f065d20f8c5ace7b19dcda5e96727966c30e38982d06d2aea4ebb4776ed5597