mirror of
https://github.com/MilkBarModding/MilkBarLauncher.git
synced 2025-07-28 16:46:25 +00:00
146 lines
6.0 KiB
XML
146 lines
6.0 KiB
XML
<UserControl x:Class="Breath_of_the_Wild_Multiplayer.MVVM.View.SettingsPanelView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:Breath_of_the_Wild_Multiplayer.MVVM.View"
|
|
xmlns:main="clr-namespace:Breath_of_the_Wild_Multiplayer"
|
|
xmlns:viewModel="clr-namespace:Breath_of_the_Wild_Multiplayer.MVVM.ViewModel"
|
|
xmlns:properties="clr-namespace:Breath_of_the_Wild_Multiplayer.Properties"
|
|
xmlns:customControls="clr-namespace:Breath_of_the_Wild_Multiplayer.CustomControls"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<Grid>
|
|
<Grid.DataContext>
|
|
<viewModel:SettingsPanelModel/>
|
|
</Grid.DataContext>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="70"/>
|
|
<ColumnDefinition Width="500"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Rectangle Fill="#CC1C1C1C" Margin="0,-0.175,0,-0.3"/>
|
|
|
|
<Path Stroke="#55FFFFFF" Grid.Column="1" Grid.ColumnSpan="2" StrokeThickness="2" Panel.ZIndex="1">
|
|
<Path.Data>
|
|
<GeometryGroup>
|
|
<LineGeometry StartPoint="12,1" EndPoint="2000,1"/>
|
|
<LineGeometry StartPoint="12,1" EndPoint="1,12"/>
|
|
<LineGeometry StartPoint="1,12" EndPoint="1,486"/>
|
|
<LineGeometry StartPoint="1,486" EndPoint="12,496"/>
|
|
<LineGeometry StartPoint="12,496" EndPoint="2000,496"/>
|
|
</GeometryGroup>
|
|
</Path.Data>
|
|
</Path>
|
|
|
|
<Polygon Fill="#55FFFFFF" Points="0 0,5 0,0 5" Grid.Column="1" Panel.ZIndex="1"/>
|
|
<Polygon Fill="#55FFFFFF" Points="0 0,5 0,0 5" Grid.Column="1" Panel.ZIndex="1" Margin="5,0,0,0"/>
|
|
<Polygon Fill="#55FFFFFF" Points="0 0,5 0,0 5" Grid.Column="1" Panel.ZIndex="1" Margin="0,5,0,0"/>
|
|
|
|
<Polygon Fill="#55FFFFFF" Points="0 0,0 5,5 5" Grid.Column="1" Panel.ZIndex="1" VerticalAlignment="Bottom" Margin="0,0,0,5"/>
|
|
<Polygon Fill="#55FFFFFF" Points="0 0,0 5,5 5" Grid.Column="1" Panel.ZIndex="1" VerticalAlignment="Bottom" Margin="5,0,0,0"/>
|
|
<Polygon Fill="#55FFFFFF" Points="0 0,0 5,5 5" Grid.Column="1" Panel.ZIndex="1" VerticalAlignment="Bottom"/>
|
|
|
|
<Grid Grid.Column="1">
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.10*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Image Source="{StaticResource White_Logo}"
|
|
Margin="5">
|
|
<Image.Effect>
|
|
<DropShadowEffect ShadowDepth="0"
|
|
Color="Black"
|
|
Opacity="1"
|
|
BlurRadius="20"/>
|
|
</Image.Effect>
|
|
</Image>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="2">
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBox
|
|
Text="{Binding Source={x:Static properties:Settings.Default}, Path=playerName}"
|
|
Style="{StaticResource modifiableTextBox}"
|
|
TextChanged="TextBox_TextChanged"
|
|
BorderBrush="#FFC4C6CB"
|
|
MaxLength="18">
|
|
<TextBox.Tag>
|
|
<sys:String>Player Name</sys:String>
|
|
</TextBox.Tag>
|
|
</TextBox>
|
|
|
|
<customControls:optionsLabel
|
|
Grid.Row="1"
|
|
Content="{Binding Source={x:Static properties:Settings.Default}, Path=background}"
|
|
Style="{StaticResource optionsCustomLabel}"
|
|
leftButton="{Binding backgroundLeftButton}"
|
|
rightButton="{Binding backgroundRightButton}"
|
|
movingLeft="{Binding backgroundMovingLeft}"
|
|
movingRight="{Binding backgroundMovingRight}">
|
|
|
|
<Label.Tag>
|
|
<sys:String>Background</sys:String>
|
|
</Label.Tag>
|
|
|
|
</customControls:optionsLabel>
|
|
|
|
<Button
|
|
Content="Select settings.json"
|
|
Grid.Row="2"
|
|
Command="{Binding bcmlButton}"
|
|
Style="{StaticResource customButton}">
|
|
<Button.Tag>
|
|
<sys:String>Launch settings</sys:String>
|
|
</Button.Tag>
|
|
|
|
<Button.ToolTip>
|
|
<ToolTip
|
|
Content="{Binding Source={x:Static properties:Settings.Default}, Path=bcmlLocation}"
|
|
Style="{StaticResource customTooltip}">
|
|
</ToolTip>
|
|
</Button.ToolTip>
|
|
</Button>
|
|
|
|
<Button
|
|
Content="Restore"
|
|
Grid.Row="3"
|
|
Command="{Binding restartSettings}"
|
|
Style="{StaticResource customButton}">
|
|
|
|
<Button.Tag>
|
|
<sys:String>Default settings</sys:String>
|
|
</Button.Tag>
|
|
</Button>
|
|
|
|
<CheckBox
|
|
Content="Play as model"
|
|
Grid.Row="4"
|
|
Style="{StaticResource customCheckbox}"
|
|
IsChecked="{Binding EnableCustomModels}">
|
|
|
|
<CheckBox.ToolTip>
|
|
<ToolTip
|
|
Content="*EXPERIMENTAL FEATURE* This feature is unstable. If you crash on startup, try disabling this feature. "
|
|
Style="{StaticResource customTooltip}">
|
|
</ToolTip>
|
|
</CheckBox.ToolTip>
|
|
</CheckBox>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</UserControl>
|