- Installation von BepInEx über ftp hinzugefügt -> lädt aktuellste version von github runter und lädt sie hoch, prüft danach ob ordner vorhanden ist indem nochmal CheckBepInEx aufgerufen wird. Lies dabei die Version aus von der DLL -> update prüfung kann somit vorgenommen werden (user manuell sicher somit) Todo: -FTP Installation von BepInEx überarbeiten... dauert zu lange aktuell - Installation von BepInEx lässt aktuell leere ordner außen vor... müssen aber im ftp danach auch vorhanden sein!! (patchers, plugins, cache)
71 lines
2.7 KiB
XML
71 lines
2.7 KiB
XML
<UserControl
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:vm="clr-namespace:Valheim_Dashboard.ViewModels"
|
|
mc:Ignorable="d" d:DesignWidth="1280" d:DesignHeight="800"
|
|
x:Class="Valheim_Dashboard.Views.ServerDashboardView"
|
|
x:DataType="vm:ServerDashboardViewModel">
|
|
|
|
|
|
<Grid ColumnDefinitions="2*,3*">
|
|
<!-- Linke Spalte -->
|
|
<StackPanel Margin="20" Spacing="20">
|
|
<!-- BepInEx Status -->
|
|
<Border BorderBrush="Gray" BorderThickness="2" CornerRadius="12" Padding="20">
|
|
<StackPanel Spacing="10" Height="150">
|
|
<TextBlock Text="BepInEx Status" FontSize="28" FontWeight="Bold"/>
|
|
<TextBlock Text="{Binding BepInExStatus}" FontSize="20"/>
|
|
<ProgressBar IsVisible="{Binding IsLoading}" />
|
|
<Button Content="Installieren"
|
|
Command="{Binding InstallBepInExCommand}"
|
|
IsVisible="{Binding ShowInstallButton}"
|
|
Height="80"/>
|
|
<Button Content="Update"
|
|
Command="{Binding UpdateBepInExCommand}"
|
|
IsVisible="{Binding ShowUpdateButton}"
|
|
Height="80"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- Mods Liste -->
|
|
<Border BorderBrush="Gray" BorderThickness="2" CornerRadius="12" Padding="20">
|
|
<StackPanel Height="450">
|
|
<TextBlock Text="Mods" FontSize="28" FontWeight="Bold"/>
|
|
<ListBox ItemsSource="{Binding Mods}" SelectedItem="{Binding SelectedMod}" Height="380">
|
|
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{Binding Name}" FontWeight="Bold" Margin="0,0,5,0"/>
|
|
<TextBlock Text="{Binding Version}" Foreground="Gray"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
<Grid>
|
|
|
|
<Button Content="Mod hochladen" Command="{Binding UploadModCommand}" Height="80" HorizontalAlignment="Left"/>
|
|
<Button Content="Aus Store installieren" Command="{Binding InstallFromStoreCommand}" Height="80" HorizontalAlignment="Right"/>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
|
|
<!-- Rechte Spalte (Config Editor) -->
|
|
<StackPanel Grid.Column="1" Margin="20" Spacing="20">
|
|
<TextBlock Text="{Binding SelectedMod.Name}" FontSize="28" FontWeight="Bold"/>
|
|
<TextBox Text="{Binding SelectedModConfig}" AcceptsReturn="True" FontSize="20" Height="550"/>
|
|
<Grid>
|
|
<Button Content="Speichern" Command="{Binding SaveConfigCommand}" Height="80" HorizontalAlignment="Left"/>
|
|
<Button Content="Mod entfernen" Command="{Binding RemoveModCommand}" Height="80" Background="Red" HorizontalAlignment="Right"/>
|
|
|
|
</Grid>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
|
|
</UserControl>
|