mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -07:00
parent
21396fb39e
commit
4c29b1b6e6
@ -246,7 +246,7 @@ namespace Bloxstrap
|
||||
if (GetPreset("Network.Log") != "7")
|
||||
SetPreset("Network.Log", "7");
|
||||
|
||||
if (GetPreset("Rendering.ManualFullscreen") != "False")
|
||||
if (GetPreset("Rendering.ManualFullscreen") != "False")
|
||||
SetPreset("Rendering.ManualFullscreen", "False");
|
||||
}
|
||||
}
|
||||
|
@ -53,39 +53,39 @@ namespace Bloxstrap.UI.ViewModels.Settings
|
||||
set => App.FastFlags.SetPreset("Rendering.DisableScaling", value ? "True" : null);
|
||||
}
|
||||
|
||||
public IReadOnlyDictionary<InGameMenuVersion, Dictionary<string, string?>> IGMenuVersions => FastFlagManager.IGMenuVersions;
|
||||
//public IReadOnlyDictionary<InGameMenuVersion, Dictionary<string, string?>> IGMenuVersions => FastFlagManager.IGMenuVersions;
|
||||
|
||||
public InGameMenuVersion SelectedIGMenuVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
// yeah this kinda sucks
|
||||
foreach (var version in IGMenuVersions)
|
||||
{
|
||||
bool flagsMatch = true;
|
||||
//public InGameMenuVersion SelectedIGMenuVersion
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// // yeah this kinda sucks
|
||||
// foreach (var version in IGMenuVersions)
|
||||
// {
|
||||
// bool flagsMatch = true;
|
||||
|
||||
foreach (var flag in version.Value)
|
||||
{
|
||||
foreach (var presetFlag in FastFlagManager.PresetFlags.Where(x => x.Key.StartsWith($"UI.Menu.Style.{flag.Key}")))
|
||||
{
|
||||
if (App.FastFlags.GetValue(presetFlag.Value) != flag.Value)
|
||||
flagsMatch = false;
|
||||
}
|
||||
}
|
||||
// foreach (var flag in version.Value)
|
||||
// {
|
||||
// foreach (var presetFlag in FastFlagManager.PresetFlags.Where(x => x.Key.StartsWith($"UI.Menu.Style.{flag.Key}")))
|
||||
// {
|
||||
// if (App.FastFlags.GetValue(presetFlag.Value) != flag.Value)
|
||||
// flagsMatch = false;
|
||||
// }
|
||||
// }
|
||||
|
||||
if (flagsMatch)
|
||||
return version.Key;
|
||||
}
|
||||
// if (flagsMatch)
|
||||
// return version.Key;
|
||||
// }
|
||||
|
||||
return IGMenuVersions.First().Key;
|
||||
}
|
||||
// return IGMenuVersions.First().Key;
|
||||
// }
|
||||
|
||||
set
|
||||
{
|
||||
foreach (var flag in IGMenuVersions[value])
|
||||
App.FastFlags.SetPreset($"UI.Menu.Style.{flag.Key}", flag.Value);
|
||||
}
|
||||
}
|
||||
// set
|
||||
// {
|
||||
// foreach (var flag in IGMenuVersions[value])
|
||||
// App.FastFlags.SetPreset($"UI.Menu.Style.{flag.Key}", flag.Value);
|
||||
// }
|
||||
//}
|
||||
|
||||
public IReadOnlyDictionary<LightingMode, string> LightingModes => FastFlagManager.LightingModes;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user