Skip to content

Commit

Permalink
SettingsViewWork
Browse files Browse the repository at this point in the history
  • Loading branch information
Offline-R503B committed Jan 28, 2021
1 parent 2bb355e commit 63c0d99
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 24 deletions.
5 changes: 3 additions & 2 deletions WolvenKit/Views/SettingsPages/EditorSettingsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@
<Grid hc:ThemeManager.AccentColorElement="{DynamicResource MahApps.Brushes.Accent3}" Background="{DynamicResource Fluent.Ribbon.Brushes.Backstage.Background}">
<hc:SideMenu Width="150" SideBrush="{DynamicResource MahApps.Brushes.Accent}" HorizontalAlignment="Left" >

<hc:SideMenuItem >
<hc:SideMenuItem x:Name="GeneralSubItem" Selected="GeneralSubItem_Selected" >
<hc:SideMenuItem.Header>
<TextBlock Text="General" FontSize="10.5"/>
</hc:SideMenuItem.Header>
</hc:SideMenuItem>
<hc:SideMenuItem >
<hc:SideMenuItem x:Name="CompatibilitySubItem" Selected="CompatibilitySubItem_Selected" >
<hc:SideMenuItem.Header>
<TextBlock Text="Compatibility Library Paths" FontSize="10.5"/>
</hc:SideMenuItem.Header>
</hc:SideMenuItem>

</hc:SideMenu>

<Grid Margin="150,1,0,0" x:Name="SettingsViewer"></Grid>


</Grid>
Expand Down
20 changes: 20 additions & 0 deletions WolvenKit/Views/SettingsPages/EditorSettingsView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

using WolvenKit.Views.SettingsPages.SubPages.Editor;

namespace WolvenKit.Views.SettingsPages
{
public partial class EditorSettingsView
Expand All @@ -7,5 +9,23 @@ public EditorSettingsView()
{
InitializeComponent();
}

private void CompatibilitySubItem_Selected(object sender, System.Windows.RoutedEventArgs e)
{
if (IsLoaded && IsVisible && IsInitialized)
{
SettingsViewer.Children.Clear();
SettingsViewer.Children.Add(new CompatibilitySubSettingsView());
}
}

private void GeneralSubItem_Selected(object sender, System.Windows.RoutedEventArgs e)
{
if (IsLoaded && IsVisible && IsInitialized)
{
SettingsViewer.Children.Clear();
SettingsViewer.Children.Add(new GeneralSubSettingsView());
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,116 @@
<catel:UserControl x:Class="WolvenKit.Views.SettingsPages.SubPages.Editor.CompatibilitySubSettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:catel="http://schemas.catelproject.com">

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<Label Grid.Row="0" Content="{Binding Title}" />
<Label Grid.Row="1" Content="Here goes your real content" />
xmlns:catel="http://schemas.catelproject.com" xmlns:hc="https://handyorg.github.io/handycontrol" xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks">

<Grid hc:ThemeManager.AccentColorElement="{DynamicResource MahApps.Brushes.Accent3}">
<Grid VerticalAlignment="Top" HorizontalAlignment="Left">

<StackPanel>

<Border BorderThickness="4,0,0,6" Margin="15,15,32,0" Background="{DynamicResource Fluent.Ribbon.Brushes.Backstage.Background}" Style="{StaticResource BorderTipPrimary}">
<Grid>
<TextBlock Text="The Witcher 3" FontSize="16" VerticalAlignment="Center" Margin="0,0,50,0"/>

</Grid>


</Border>
<Border BorderThickness="4,0,0,2" Margin="15,15,32,10" Background="{DynamicResource Fluent.Ribbon.Brushes.Backstage.Background}" Style="{StaticResource BorderTipPrimary}">
<Grid>
<TextBlock Text="Executable Path" VerticalAlignment="Center" Margin="0,0,50,0"/>
<Button Margin="-45,0,0,0">
<iconPacks:PackIconCodicons Kind="FolderOpened"/>
</Button>
<StackPanel Orientation="Horizontal">
<TextBox Margin="250,0,0,0" Width="250" Text=""/>
</StackPanel>
</Grid>


</Border>

<Border BorderThickness="4,0,0,2" Margin="15,15,32,10" Background="{DynamicResource Fluent.Ribbon.Brushes.Backstage.Background}" Style="{StaticResource BorderTipPrimary}">
<Grid>
<TextBlock Text="WCC_Lite.exe Path" VerticalAlignment="Center" Margin="0,0,50,0"/>
<Button Margin="-45,0,0,0">
<iconPacks:PackIconCodicons Kind="FolderOpened"/>
</Button>
<StackPanel Orientation="Horizontal">
<TextBox Margin="250,0,0,0" Width="250" Text=""/>
</StackPanel>
</Grid>


</Border>
<Border BorderThickness="4,0,0,2" Margin="15,15,32,10" Background="{DynamicResource Fluent.Ribbon.Brushes.Backstage.Background}" Style="{StaticResource BorderTipPrimary}">
<Grid>
<TextBlock Text="Uncooked Depot Path" VerticalAlignment="Center" Margin="0,0,50,0"/>
<Button Margin="-45,0,0,0">
<iconPacks:PackIconCodicons Kind="FolderOpened"/>
</Button>
<StackPanel Orientation="Horizontal">
<TextBox Margin="250,0,0,0" Width="250" Text=""/>
</StackPanel>
</Grid>


</Border>
<Border BorderThickness="4,0,0,2" Margin="15,15,32,10" Background="{DynamicResource Fluent.Ribbon.Brushes.Backstage.Background}" Style="{StaticResource BorderTipPrimary}">
<Grid>
<TextBlock Text="Mods Folder Path" VerticalAlignment="Center" Margin="0,0,50,0"/>
<Button Margin="-45,0,0,0">
<iconPacks:PackIconCodicons Kind="FolderOpened"/>
</Button>
<StackPanel Orientation="Horizontal">
<TextBox Margin="250,0,0,0" Width="250" Text=""/>
</StackPanel>
</Grid>


</Border>
<Border BorderThickness="4,0,0,2" Margin="15,15,32,10" Background="{DynamicResource Fluent.Ribbon.Brushes.Backstage.Background}" Style="{StaticResource BorderTipPrimary}">
<Grid>
<TextBlock Text="DLC Folder Path" VerticalAlignment="Center" Margin="0,0,50,0"/>
<Button Margin="-45,0,0,0">
<iconPacks:PackIconCodicons Kind="FolderOpened"/>
</Button>
<StackPanel Orientation="Horizontal">
<TextBox Margin="250,0,0,0" Width="250" Text=""/>
</StackPanel>
</Grid>


</Border>


<Border BorderThickness="4,0,0,6" Margin="15,50,32,0" Background="{DynamicResource Fluent.Ribbon.Brushes.Backstage.Background}" Style="{StaticResource BorderTipPrimary}">
<Grid>
<TextBlock Text="Cyberpunk 2077" FontSize="16" VerticalAlignment="Center" Margin="0,0,50,0"/>

</Grid>


</Border>
<Border BorderThickness="4,0,0,2" Margin="15,15,32,10" Background="{DynamicResource Fluent.Ribbon.Brushes.Backstage.Background}" Style="{StaticResource BorderTipPrimary}">
<Grid>
<TextBlock Text="Executable Path" VerticalAlignment="Center" Margin="0,0,50,0"/>
<Button Margin="-45,0,0,0">
<iconPacks:PackIconCodicons Kind="FolderOpened"/>
</Button>
<StackPanel Orientation="Horizontal">
<TextBox Margin="250,0,0,0" Width="250" Text=""/>

</StackPanel>
</Grid>


</Border>

</StackPanel>

</Grid>

</Grid>

</catel:UserControl>
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
<catel:UserControl x:Class="WolvenKit.Views.SettingsPages.SubPages.Editor.GeneralSubSettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:catel="http://schemas.catelproject.com">

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<Label Grid.Row="0" Content="{Binding Title}" />
<Label Grid.Row="1" Content="Here goes your real content" />
xmlns:catel="http://schemas.catelproject.com" xmlns:hc="https://handyorg.github.io/handycontrol">

<Grid hc:ThemeManager.AccentColorElement="{DynamicResource MahApps.Brushes.Accent3}">
<Grid VerticalAlignment="Top" HorizontalAlignment="Left">

<StackPanel>


<Border BorderThickness="4,0,0,2" Margin="15,15,32,10" Background="{DynamicResource Fluent.Ribbon.Brushes.Backstage.Background}" Style="{StaticResource BorderTipPrimary}">
<Grid>
<TextBlock Text="Automatically install mods after creation" VerticalAlignment="Center" Margin="0,0,50,0"/>
<StackPanel Margin="250,0,0,0" Orientation="Horizontal">
<Button>TEMPLATE</Button>
</StackPanel>
</Grid>


</Border>



</StackPanel>

</Grid>

</Grid>

</catel:UserControl>

0 comments on commit 63c0d99

Please sign in to comment.