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