Skip to content

Commit

Permalink
put toggleswitches in a border
Browse files Browse the repository at this point in the history
  • Loading branch information
szaaamerik committed Jan 11, 2024
1 parent 9a2667d commit 63bba67
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions Forza-Mods-AIO/Tabs/Self-Vehicle/DropDownTabs/HandlingPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
mc:Ignorable="d" d:DesignWidth="580"
Title="HandlingPage"
Height="555"
Height="570"
Background="Transparent">

<Grid>
Expand Down Expand Up @@ -563,18 +563,20 @@
ValueChanged="SuperBrakeSlider_OnValueChanged"/>
</Grid>
</Border>
</StackPanel>

<StackPanel Orientation="Horizontal"
VerticalAlignment="Bottom"
HorizontalAlignment="Center"
Margin="0, 0, 0, 10">
<Border BorderThickness="2" HorizontalAlignment="Center" VerticalAlignment="Top" Width="556" Height="46" BorderBrush="#FF2E3440" Margin="0,10,0,0">

<StackPanel Orientation="Horizontal"
VerticalAlignment="Center"
HorizontalAlignment="Center">

<mah:ToggleSwitch x:Name="SuperCarSwitch" Content="Super Car" MinWidth="0" FontSize="11" Toggled="SuperCarSwitch_Toggled"/>
<mah:ToggleSwitch x:Name="WaterDragSwitch" Margin="20 0 0 0" Content="Stop Water Drag" MinWidth="0" FontSize="11" Toggled="WaterDragSwitch_Toggled"/>
<mah:ToggleSwitch x:Name="WallNoClipSwitch" Margin="20 0" Content="Wall Noclip" MinWidth="0" FontSize="11" Toggled="WallNoClipSwitch_OnToggled"/>
<mah:ToggleSwitch x:Name="CarNoClipSwitch" Content="Car Noclip" MinWidth="0" FontSize="11" Toggled="CarNoClipSwitch_OnToggled"/>
<mah:ToggleSwitch x:Name="SuperCarSwitch" Content="Super Car" MinWidth="0" FontSize="11" Toggled="SuperCarSwitch_Toggled"/>
<mah:ToggleSwitch x:Name="WaterDragSwitch" Margin="20 0 0 0" Content="Stop Water Drag" MinWidth="0" FontSize="11" Toggled="WaterDragSwitch_Toggled"/>
<mah:ToggleSwitch x:Name="WallNoClipSwitch" Margin="20 0" Content="Wall Noclip" MinWidth="0" FontSize="11" Toggled="WallNoClipSwitch_OnToggled"/>
<mah:ToggleSwitch x:Name="CarNoClipSwitch" Content="Car Noclip" MinWidth="0" FontSize="11" Toggled="CarNoClipSwitch_OnToggled"/>

</StackPanel>
</Border>
</StackPanel>

</Grid>
</Page>
2 changes: 1 addition & 1 deletion Forza-Mods-AIO/Tabs/Self-Vehicle/Self-Vehicle.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private void Button_Click(object sender, RoutedEventArgs e)

private static readonly Dictionary<string, double> Sizes = new()
{
{ "HandlingButton", 555 }, // Button name for page, height of page
{ "HandlingButton", 570 }, // Button name for page, height of page
{ "UnlocksButton", 235 },
{ "PhotomodeButton", 285 },
{ "StatsButton", 70 },
Expand Down

0 comments on commit 63bba67

Please sign in to comment.