Merge pull request #151 from EasternBloxxer/patch-2

Add the future lighting toggle to mods
This commit is contained in:
pizzaboxer 2023-04-26 12:51:20 +01:00 committed by GitHub
commit 8a250391d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -125,5 +125,11 @@ namespace Bloxstrap.ViewModels
get => App.Settings.Prop.DisableFullscreenOptimizations;
set => App.Settings.Prop.DisableFullscreenOptimizations = value;
}
public bool ForceFutureEnabled
{
get => App.FastFlags.GetValue("FFlagDebugForceFutureIsBrightPhase3") == "True";
set => App.FastFlags.SetValue("FFlagDebugForceFutureIsBrightPhase3", value ? "True" : null);
}
}
}

View File

@ -1,4 +1,4 @@
<ui:UiPage x:Class="Bloxstrap.Views.Pages.ModsPage"
<ui:UiPage x:Class="Bloxstrap.Views.Pages.ModsPage"
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"
@ -103,6 +103,7 @@
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<ui:CardControl Grid.Row="0" Margin="0,8,0,0" Padding="16,13,16,12">
@ -151,6 +152,15 @@
<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>
<ui:CardControl Grid.Row="5" Margin="0,8,0,0" Padding="16,13,16,12">
<ui:CardControl.Header>
<StackPanel>
<TextBlock FontSize="14" Text="Force enable Future Is Bright lighting in all games" />
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Roblox's experimental lighting engine, normally only enabled by the game developer." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
</StackPanel>
</ui:CardControl.Header>
<ui:ToggleSwitch IsChecked="{Binding ForceFutureEnabled, 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" />