mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Add FFlag preset for GUI hiding
many thanks to https://github.com/pizzaboxer/bloxstrap/issues/230#issuecomment-1542966228
This commit is contained in:
parent
64978aecb0
commit
cb551ad0d6
@ -63,6 +63,18 @@ namespace Bloxstrap.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool AlternateGraphicsSelectorEnabled
|
||||||
|
{
|
||||||
|
get => App.FastFlags.GetValue("FFlagFixGraphicsQuality") == "True";
|
||||||
|
set => App.FastFlags.SetValue("FFlagFixGraphicsQuality", value ? "True" : null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Pre2022TexturesEnabled
|
||||||
|
{
|
||||||
|
get => App.FastFlags.GetValue("FStringPartTexturePackTable2022") == FastFlagManager.OldTexturesFlagValue;
|
||||||
|
set => App.FastFlags.SetValue("FStringPartTexturePackTable2022", value ? FastFlagManager.OldTexturesFlagValue : null);
|
||||||
|
}
|
||||||
|
|
||||||
public IReadOnlyDictionary<string, Dictionary<string, string?>> IGMenuVersions => FastFlagManager.IGMenuVersions;
|
public IReadOnlyDictionary<string, Dictionary<string, string?>> IGMenuVersions => FastFlagManager.IGMenuVersions;
|
||||||
|
|
||||||
public string SelectedIGMenuVersion
|
public string SelectedIGMenuVersion
|
||||||
@ -96,24 +108,6 @@ namespace Bloxstrap.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool AlternateGraphicsSelectorEnabled
|
|
||||||
{
|
|
||||||
get => App.FastFlags.GetValue("FFlagFixGraphicsQuality") == "True";
|
|
||||||
set => App.FastFlags.SetValue("FFlagFixGraphicsQuality", value ? "True" : null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Pre2022TexturesEnabled
|
|
||||||
{
|
|
||||||
get => App.FastFlags.GetValue("FStringPartTexturePackTable2022") == FastFlagManager.OldTexturesFlagValue;
|
|
||||||
set => App.FastFlags.SetValue("FStringPartTexturePackTable2022", value ? FastFlagManager.OldTexturesFlagValue : null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MobileLuaAppInterfaceEnabled
|
|
||||||
{
|
|
||||||
get => App.FastFlags.GetValue("FFlagLuaAppSystemBar") == "False";
|
|
||||||
set => App.FastFlags.SetValue("FFlagLuaAppSystemBar", value ? "False" : null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public IReadOnlyDictionary<string, string> LightingTechnologies => FastFlagManager.LightingTechnologies;
|
public IReadOnlyDictionary<string, string> LightingTechnologies => FastFlagManager.LightingTechnologies;
|
||||||
|
|
||||||
// this is basically the same as the code for rendering selection, maybe this could be abstracted in some way?
|
// this is basically the same as the code for rendering selection, maybe this could be abstracted in some way?
|
||||||
@ -142,5 +136,17 @@ namespace Bloxstrap.ViewModels
|
|||||||
App.FastFlags.SetValue(LightingTechnologies[value], "True");
|
App.FastFlags.SetValue(LightingTechnologies[value], "True");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool GuiHidingEnabled
|
||||||
|
{
|
||||||
|
get => App.FastFlags.GetValue("DFIntCanHideGuiGroupId") == "32380007";
|
||||||
|
set => App.FastFlags.SetValue("DFIntCanHideGuiGroupId", value ? "32380007" : null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool MobileLuaAppInterfaceEnabled
|
||||||
|
{
|
||||||
|
get => App.FastFlags.GetValue("FFlagLuaAppSystemBar") == "False";
|
||||||
|
set => App.FastFlags.SetValue("FFlagLuaAppSystemBar", value ? "False" : null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,8 @@
|
|||||||
|
|
||||||
<StackPanel Margin="0,0,14,14">
|
<StackPanel Margin="0,0,14,14">
|
||||||
<TextBlock Text="Control how specific Roblox engine parameters and features are configured." FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
|
<TextBlock Text="Control how specific Roblox engine parameters and features are configured." FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
|
||||||
<ui:CardAction x:Name="OpenClientSettingsCardAction" Grid.Row="1" Grid.ColumnSpan="2" Margin="0,8,0,0" Padding="16,13,16,12" Icon="DocumentEdit24" Command="{Binding OpenClientSettingsCommand}" IsEnabled="{Binding Source={x:Static models:GlobalViewModel.IsNotFirstRun}, Mode=OneTime}">
|
|
||||||
|
<ui:CardAction x:Name="OpenClientSettingsCardAction" Grid.Row="1" Grid.ColumnSpan="2" Margin="0,16,0,0" Padding="16,13,16,12" Icon="DocumentEdit24" Command="{Binding OpenClientSettingsCommand}" IsEnabled="{Binding Source={x:Static models:GlobalViewModel.IsNotFirstRun}, Mode=OneTime}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock FontSize="14" Text="Edit ClientAppSettings.json">
|
<TextBlock FontSize="14" Text="Edit ClientAppSettings.json">
|
||||||
<!--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-->
|
||||||
@ -91,8 +92,8 @@
|
|||||||
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
||||||
<ui:CardControl.Header>
|
<ui:CardControl.Header>
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock FontSize="14" Text="In-game escape menu version" />
|
<TextBlock FontSize="14" Text="Preferred escape menu version" />
|
||||||
<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 Margin="0,2,0,0" FontSize="12" Text="Choose which version of the escape menu to use. Current default is v1." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ui:CardControl.Header>
|
</ui:CardControl.Header>
|
||||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding IGMenuVersions.Keys, Mode=OneTime}" Text="{Binding SelectedIGMenuVersion, Mode=TwoWay}" />
|
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding IGMenuVersions.Keys, Mode=OneTime}" Text="{Binding SelectedIGMenuVersion, Mode=TwoWay}" />
|
||||||
@ -106,6 +107,17 @@
|
|||||||
</ui:CardControl.Header>
|
</ui:CardControl.Header>
|
||||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding LightingTechnologies.Keys, Mode=OneTime}" Text="{Binding SelectedLightingTechnology, Mode=TwoWay}" />
|
<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>
|
||||||
|
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
||||||
|
<ui:CardControl.Header>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontSize="14" Text="Enable ability to hide GUIs" />
|
||||||
|
<TextBlock Margin="0,2,0,0" FontSize="12" Foreground="{DynamicResource TextFillColorTertiaryBrush}">
|
||||||
|
TODO - add text for wiki page for controls when done. You must be in the <Hyperlink Foreground="{DynamicResource TextFillColorPrimaryBrush}" Command="models:GlobalViewModel.OpenWebpageCommand" CommandParameter="https://www.roblox.com/groups/32380007/Bloxstrap">Bloxstrap group</Hyperlink> for it to work.
|
||||||
|
</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</ui:CardControl.Header>
|
||||||
|
<ui:ToggleSwitch IsChecked="{Binding GuiHidingEnabled, Mode=TwoWay}" />
|
||||||
|
</ui:CardControl>
|
||||||
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
<ui:CardControl Margin="0,8,0,0" Padding="16,13,16,12">
|
||||||
<ui:CardControl.Header>
|
<ui:CardControl.Header>
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
|
Loading…
Reference in New Issue
Block a user