mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Add button to open ClientAppSettings.json
This commit is contained in:
parent
e6bfac46fe
commit
c04dba8d73
@ -2,6 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
|
|
||||||
using CommunityToolkit.Mvvm.Input;
|
using CommunityToolkit.Mvvm.Input;
|
||||||
@ -16,8 +17,10 @@ namespace Bloxstrap.ViewModels
|
|||||||
public void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
public void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||||
|
|
||||||
public ICommand OpenModsFolderCommand => new RelayCommand(OpenModsFolder);
|
public ICommand OpenModsFolderCommand => new RelayCommand(OpenModsFolder);
|
||||||
|
public ICommand OpenClientSettingsCommand => new RelayCommand(OpenClientSettings);
|
||||||
|
|
||||||
private void OpenModsFolder() => Process.Start("explorer.exe", Directories.Modifications);
|
private void OpenModsFolder() => Process.Start("explorer.exe", Directories.Modifications);
|
||||||
|
private void OpenClientSettings() => Utilities.OpenWebsite(Path.Combine(Directories.Modifications, "ClientSettings\\ClientAppSettings.json"));
|
||||||
|
|
||||||
public bool OldDeathSoundEnabled
|
public bool OldDeathSoundEnabled
|
||||||
{
|
{
|
||||||
|
@ -13,11 +13,15 @@
|
|||||||
<TextBlock Text="Manage and apply file mods to the Roblox game client." FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
|
<TextBlock Text="Manage and apply file mods to the Roblox game client." FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
|
||||||
|
|
||||||
<Grid Margin="0,16,0,0">
|
<Grid Margin="0,16,0,0">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<ui:CardAction Grid.Column="0" x:Name="OpenModFolderCardAction" Margin="0,0,4,0" Padding="16,13,16,12" Icon="Folder24" Command="{Binding OpenModsFolderCommand}" IsEnabled="{Binding Source={x:Static models:GlobalViewModel.IsNotFirstRun}, Mode=OneTime}">
|
<ui:CardAction Grid.Row="0" Grid.Column="0" x:Name="OpenModFolderCardAction" Margin="0,0,4,0" Padding="16,13,16,12" Icon="Folder24" Command="{Binding OpenModsFolderCommand}" IsEnabled="{Binding Source={x:Static models:GlobalViewModel.IsNotFirstRun}, Mode=OneTime}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock FontSize="14" Text="Open Mods Folder">
|
<TextBlock FontSize="14" Text="Open Mods Folder">
|
||||||
<!--this is so fucking stupid the disabled state of the cardaction doesnt change the header text colour-->
|
<!--this is so fucking stupid the disabled state of the cardaction doesnt change the header text colour-->
|
||||||
@ -45,12 +49,40 @@
|
|||||||
</TextBlock>
|
</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ui:CardAction>
|
</ui:CardAction>
|
||||||
<ui:CardAction Grid.Column="1" Margin="4,0,0,0" Padding="16,13,16,12" Icon="BookQuestionMark24" Command="models:GlobalViewModel.OpenWebpageCommand" CommandParameter="https://github.com/pizzaboxer/bloxstrap/wiki/Adding-custom-mods">
|
<ui:CardAction Grid.Row="1" Grid.ColumnSpan="2" Margin="0,8,0,0" Padding="16,13,16,12" Icon="BookQuestionMark24" Command="models:GlobalViewModel.OpenWebpageCommand" CommandParameter="https://github.com/pizzaboxer/bloxstrap/wiki/Adding-custom-mods">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock FontSize="14" Text="Help" />
|
<TextBlock FontSize="14" Text="Help" />
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="See info about managing and creating mods." Padding="0,0,16,0" Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
<TextBlock Margin="0,2,0,0" FontSize="12" Text="See info about managing and creating mods." Padding="0,0,16,0" Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ui:CardAction>
|
</ui:CardAction>
|
||||||
|
<ui:CardAction x:Name="OpenClientSettingsCardAction" Grid.Row="0" Grid.Column="1" Margin="4,0,0,0" Padding="16,13,16,12" Icon="DocumentEdit24" Command="{Binding OpenClientSettingsCommand}" IsEnabled="{Binding Source={x:Static models:GlobalViewModel.IsNotFirstRun}, Mode=OneTime}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontSize="14" Text="Edit FastFlags">
|
||||||
|
<!--this is so fucking stupid the disabled state of the cardaction doesnt change the header text colour-->
|
||||||
|
<TextBlock.Style>
|
||||||
|
<Style>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding ElementName=OpenModFolderCardAction, Path=IsEnabled, Mode=OneTime}" Value="False">
|
||||||
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource TextFillColorDisabledBrush}" />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</TextBlock.Style>
|
||||||
|
</TextBlock>
|
||||||
|
<TextBlock Margin="0,2,0,0" FontSize="12" Foreground="{DynamicResource TextFillColorTertiaryBrush}">
|
||||||
|
<TextBlock.Style>
|
||||||
|
<Style>
|
||||||
|
<Setter Property="TextBlock.Text" Value="Open and edit ClientAppSettings.json."/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding ElementName=OpenModFolderCardAction, Path=IsEnabled, Mode=OneTime}" Value="False">
|
||||||
|
<Setter Property="TextBlock.Text" Value="Bloxstrap must first be installed." />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</TextBlock.Style>
|
||||||
|
</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</ui:CardAction>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<TextBlock Text="Presets" FontSize="16" FontWeight="Medium" Margin="0,16,0,0" />
|
<TextBlock Text="Presets" FontSize="16" FontWeight="Medium" Margin="0,16,0,0" />
|
||||||
@ -94,82 +126,70 @@
|
|||||||
</ui:CardControl>
|
</ui:CardControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<TextBlock Text="FastFlags" FontSize="16" FontWeight="Medium" Margin="0,16,0,0" />
|
<TextBlock Text="FastFlag Presets" FontSize="16" FontWeight="Medium" Margin="0,16,0,0" />
|
||||||
<Grid>
|
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
||||||
<Grid.RowDefinitions>
|
<ui:CardControl.Header>
|
||||||
<RowDefinition Height="*" />
|
<StackPanel>
|
||||||
<RowDefinition Height="*" />
|
<TextBlock FontSize="14" Text="Framerate limit" />
|
||||||
<RowDefinition Height="*" />
|
<TextBlock Margin="0,2,0,0" FontSize="12" Text="By default, it's 60FPS. Use a really high number like 9999 for no limit." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
<RowDefinition Height="*" />
|
</StackPanel>
|
||||||
<RowDefinition Height="*" />
|
</ui:CardControl.Header>
|
||||||
<RowDefinition Height="*" />
|
<ui:TextBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" Text="{Binding FramerateLimit, Mode=TwoWay}" PreviewTextInput="ValidateInt32" />
|
||||||
<RowDefinition Height="*" />
|
</ui:CardControl>
|
||||||
</Grid.RowDefinitions>
|
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
||||||
|
<ui:CardControl.Header>
|
||||||
<ui:CardControl Grid.Row="0" Margin="0,8,0,0" Padding="16,13,16,12">
|
<StackPanel>
|
||||||
<ui:CardControl.Header>
|
<TextBlock FontSize="14" Text="Rendering mode" />
|
||||||
<StackPanel>
|
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Select which renderer Roblox should use. ReShade requires Direct3D 11." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
<TextBlock FontSize="14" Text="Framerate limit" />
|
</StackPanel>
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="By default, it's 60FPS. Use a really high number like 9999 for no limit." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
</ui:CardControl.Header>
|
||||||
</StackPanel>
|
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding RenderingModes.Keys, Mode=OneTime}" Text="{Binding SelectedRenderingMode, Mode=TwoWay}" />
|
||||||
</ui:CardControl.Header>
|
</ui:CardControl>
|
||||||
<ui:TextBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" Text="{Binding FramerateLimit, Mode=TwoWay}" PreviewTextInput="ValidateInt32" />
|
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
||||||
</ui:CardControl>
|
<ui:CardControl.Header>
|
||||||
<ui:CardControl Grid.Row="1" Margin="0,8,0,0" Padding="16,13,16,12">
|
<StackPanel>
|
||||||
<ui:CardControl.Header>
|
<TextBlock FontSize="14" Text="Use exclusive fullscreen" />
|
||||||
<StackPanel>
|
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Enables using Alt + Enter to enter exclusive fullscreen. Only works with Direct3D 11." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
<TextBlock FontSize="14" Text="Rendering mode" />
|
</StackPanel>
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Select which renderer Roblox should use. ReShade requires Direct3D 11." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
</ui:CardControl.Header>
|
||||||
</StackPanel>
|
<ui:ToggleSwitch IsChecked="{Binding ExclusiveFullscreenEnabled, Mode=TwoWay}" />
|
||||||
</ui:CardControl.Header>
|
</ui:CardControl>
|
||||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding RenderingModes.Keys, Mode=OneTime}" Text="{Binding SelectedRenderingMode, Mode=TwoWay}" />
|
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
||||||
</ui:CardControl>
|
<ui:CardControl.Header>
|
||||||
<ui:CardControl Grid.Row="2" Margin="0,8,0,0" Padding="16,13,16,12">
|
<StackPanel>
|
||||||
<ui:CardControl.Header>
|
<TextBlock FontSize="14" Text="Use alternate graphics quality selector" />
|
||||||
<StackPanel>
|
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Toggle between using the consolidated 1-10 / fine-grained 1-21 graphics quality slider." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
<TextBlock FontSize="14" Text="Use exclusive fullscreen" />
|
</StackPanel>
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Enables using Alt + Enter to enter exclusive fullscreen. Only works with Direct3D 11." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
</ui:CardControl.Header>
|
||||||
</StackPanel>
|
<ui:ToggleSwitch IsChecked="{Binding AlternateGraphicsSelectorEnabled, Mode=TwoWay}" />
|
||||||
</ui:CardControl.Header>
|
</ui:CardControl>
|
||||||
<ui:ToggleSwitch IsChecked="{Binding ExclusiveFullscreenEnabled, Mode=TwoWay}" />
|
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
||||||
</ui:CardControl>
|
<ui:CardControl.Header>
|
||||||
<ui:CardControl Grid.Row="3" Margin="0,8,0,0" Padding="16,13,16,12">
|
<StackPanel>
|
||||||
<ui:CardControl.Header>
|
<TextBlock FontSize="14" Text="In-game menu version" />
|
||||||
<StackPanel>
|
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Choose which version of the in-game menu to use. Current default is v1." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
<TextBlock FontSize="14" Text="Use alternate graphics quality selector" />
|
</StackPanel>
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Toggle between using the consolidated 1-10 / fine-grained 1-21 graphics quality slider." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
</ui:CardControl.Header>
|
||||||
</StackPanel>
|
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding IGMenuVersions.Keys, Mode=OneTime}" Text="{Binding SelectedIGMenuVersion, Mode=TwoWay}" />
|
||||||
</ui:CardControl.Header>
|
</ui:CardControl>
|
||||||
<ui:ToggleSwitch IsChecked="{Binding AlternateGraphicsSelectorEnabled, Mode=TwoWay}" />
|
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
||||||
</ui:CardControl>
|
<ui:CardControl.Header>
|
||||||
<ui:CardControl Grid.Row="4" Margin="0,8,0,0" Padding="16,13,16,12">
|
<StackPanel>
|
||||||
<ui:CardControl.Header>
|
<TextBlock FontSize="14" Text="Lighting technology" />
|
||||||
<StackPanel>
|
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Select which lighting technology should always be used in every game." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
<TextBlock FontSize="14" Text="In-game menu version" />
|
</StackPanel>
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Choose which version of the in-game menu to use. Current default is v1." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
</ui:CardControl.Header>
|
||||||
</StackPanel>
|
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding LightingTechnologies.Keys, Mode=OneTime}" Text="{Binding SelectedLightingTechnology, Mode=TwoWay}" />
|
||||||
</ui:CardControl.Header>
|
</ui:CardControl>
|
||||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding IGMenuVersions.Keys, Mode=OneTime}" Text="{Binding SelectedIGMenuVersion, Mode=TwoWay}" />
|
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
||||||
</ui:CardControl>
|
<ui:CardControl.Header>
|
||||||
<ui:CardControl Grid.Row="5" Margin="0,8,0,0" Padding="16,13,16,12">
|
<StackPanel>
|
||||||
<ui:CardControl.Header>
|
<TextBlock FontSize="14" Text="Use mobile interface in desktop app" />
|
||||||
<StackPanel>
|
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Why would you want to do this? I don't know. But like, why not?" Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
<TextBlock FontSize="14" Text="Lighting technology" />
|
</StackPanel>
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Select which lighting technology should always be used in every game." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
</ui:CardControl.Header>
|
||||||
</StackPanel>
|
<ui:ToggleSwitch IsChecked="{Binding MobileLuaAppInterfaceEnabled, Mode=TwoWay}" />
|
||||||
</ui:CardControl.Header>
|
</ui:CardControl>
|
||||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding LightingTechnologies.Keys, Mode=OneTime}" Text="{Binding SelectedLightingTechnology, Mode=TwoWay}" />
|
|
||||||
</ui:CardControl>
|
|
||||||
<ui:CardControl Grid.Row="6" Margin="0,8,0,0" Padding="16,13,16,12">
|
|
||||||
<ui:CardControl.Header>
|
|
||||||
<StackPanel>
|
|
||||||
<TextBlock FontSize="14" Text="Use mobile interface in desktop app" />
|
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Why would you want to do this? I don't know. But like, why not?" Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
|
||||||
</StackPanel>
|
|
||||||
</ui:CardControl.Header>
|
|
||||||
<ui:ToggleSwitch IsChecked="{Binding MobileLuaAppInterfaceEnabled, Mode=TwoWay}" />
|
|
||||||
</ui:CardControl>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<StackPanel x:Name="MiscellaneousOptions">
|
<StackPanel x:Name="MiscellaneousOptions">
|
||||||
<TextBlock Text="Miscellaneous" FontSize="16" FontWeight="Medium" Margin="0,16,0,0" />
|
<TextBlock Text="Miscellaneous" FontSize="16" FontWeight="Medium" Margin="0,16,0,0" />
|
||||||
|
Loading…
Reference in New Issue
Block a user