Fix 2022 menu (#2718)

awaiting credit
This commit is contained in:
pizzaboxer 2024-09-02 11:34:35 +01:00
parent 895b40fdad
commit dbd94d02ae
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
2 changed files with 18 additions and 6 deletions

View File

@ -52,7 +52,7 @@ namespace Bloxstrap
{ "UI.Menu.GraphicsSlider", "FFlagFixGraphicsQuality" }, { "UI.Menu.GraphicsSlider", "FFlagFixGraphicsQuality" },
{ "UI.FullscreenTitlebarDelay", "FIntFullscreenTitleBarTriggerDelayMillis" }, { "UI.FullscreenTitlebarDelay", "FIntFullscreenTitleBarTriggerDelayMillis" },
{ "UI.Menu.Style.DisableV2", "FFlagDisableNewIGMinDUA" }, { "UI.Menu.Style.V2Rollout", "FIntNewInGameMenuPercentRollout3" },
{ "UI.Menu.Style.EnableV4.1", "FFlagEnableInGameMenuControls" }, { "UI.Menu.Style.EnableV4.1", "FFlagEnableInGameMenuControls" },
{ "UI.Menu.Style.EnableV4.2", "FFlagEnableInGameMenuModernization" }, { "UI.Menu.Style.EnableV4.2", "FFlagEnableInGameMenuModernization" },
{ "UI.Menu.Style.EnableV4Chrome", "FFlagEnableInGameMenuChrome" }, { "UI.Menu.Style.EnableV4Chrome", "FFlagEnableInGameMenuChrome" },
@ -103,7 +103,7 @@ namespace Bloxstrap
InGameMenuVersion.Default, InGameMenuVersion.Default,
new Dictionary<string, string?> new Dictionary<string, string?>
{ {
{ "DisableV2", null }, { "V2Rollout", null },
{ "EnableV4", null }, { "EnableV4", null },
{ "EnableV4Chrome", null }, { "EnableV4Chrome", null },
{ "ABTest", null } { "ABTest", null }
@ -114,7 +114,7 @@ namespace Bloxstrap
InGameMenuVersion.V1, InGameMenuVersion.V1,
new Dictionary<string, string?> new Dictionary<string, string?>
{ {
{ "DisableV2", "True" }, { "V2Rollout", "0" },
{ "EnableV4", "False" }, { "EnableV4", "False" },
{ "EnableV4Chrome", "False" }, { "EnableV4Chrome", "False" },
{ "ABTest", "False" } { "ABTest", "False" }
@ -125,7 +125,7 @@ namespace Bloxstrap
InGameMenuVersion.V2, InGameMenuVersion.V2,
new Dictionary<string, string?> new Dictionary<string, string?>
{ {
{ "DisableV2", "False" }, { "V2Rollout", "100" },
{ "EnableV4", "False" }, { "EnableV4", "False" },
{ "EnableV4Chrome", "False" }, { "EnableV4Chrome", "False" },
{ "ABTest", "False" } { "ABTest", "False" }
@ -136,7 +136,7 @@ namespace Bloxstrap
InGameMenuVersion.V4, InGameMenuVersion.V4,
new Dictionary<string, string?> new Dictionary<string, string?>
{ {
{ "DisableV2", "True" }, { "V2Rollout", "0" },
{ "EnableV4", "True" }, { "EnableV4", "True" },
{ "EnableV4Chrome", "False" }, { "EnableV4Chrome", "False" },
{ "ABTest", "False" } { "ABTest", "False" }
@ -147,7 +147,7 @@ namespace Bloxstrap
InGameMenuVersion.V4Chrome, InGameMenuVersion.V4Chrome,
new Dictionary<string, string?> new Dictionary<string, string?>
{ {
{ "DisableV2", "True" }, { "V2Rollout", "0" },
{ "EnableV4", "True" }, { "EnableV4", "True" },
{ "EnableV4Chrome", "True" }, { "EnableV4Chrome", "True" },
{ "ABTest", "False" } { "ABTest", "False" }

View File

@ -514,6 +514,18 @@ namespace Bloxstrap
ProtocolHandler.Register("roblox", "Roblox", Paths.Application, "-player \"%1\""); ProtocolHandler.Register("roblox", "Roblox", Paths.Application, "-player \"%1\"");
ProtocolHandler.Register("roblox-player", "Roblox", Paths.Application, "-player \"%1\""); ProtocolHandler.Register("roblox-player", "Roblox", Paths.Application, "-player \"%1\"");
string? oldV2Val = App.FastFlags.GetValue("FFlagDisableNewIGMinDUA");
if (oldV2Val is not null)
{
if (oldV2Val == "True")
App.FastFlags.SetPreset("UI.Menu.Style.V2Rollout", "0");
else
App.FastFlags.SetPreset("UI.Menu.Style.V2Rollout", "100");
App.FastFlags.SetValue("FFlagDisableNewIGMinDUA", null);
}
} }
App.Settings.Save(); App.Settings.Save();