Skip to content

Commit

Permalink
Fix V1 menu
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Oct 2, 2024
1 parent 89b2ec9 commit 8764804
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Bloxstrap/FastFlagManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public class FastFlagManager : JsonManager<Dictionary<string, object>>
{ "UI.Menu.Style.EnableV4.1", "FFlagEnableInGameMenuControls" },
{ "UI.Menu.Style.EnableV4.2", "FFlagEnableInGameMenuModernization" },
{ "UI.Menu.Style.EnableV4Chrome", "FFlagEnableInGameMenuChrome" },
{ "UI.Menu.Style.ReportButtonCutOff", "FFlagFixReportButtonCutOff" },


{ "UI.Menu.Style.ABTest.1", "FFlagEnableMenuControlsABTest" },
{ "UI.Menu.Style.ABTest.2", "FFlagEnableV3MenuABTest3" },
Expand Down Expand Up @@ -104,7 +106,8 @@ public class FastFlagManager : JsonManager<Dictionary<string, object>>
{ "V2Rollout", null },
{ "EnableV4", null },
{ "EnableV4Chrome", null },
{ "ABTest", null }
{ "ABTest", null },
{ "ReportButtonCutOff", null }
}
},

Expand All @@ -115,7 +118,8 @@ public class FastFlagManager : JsonManager<Dictionary<string, object>>
{ "V2Rollout", "0" },
{ "EnableV4", "False" },
{ "EnableV4Chrome", "False" },
{ "ABTest", "False" }
{ "ABTest", "False" },
{ "ReportButtonCutOff", "False" }
}
},

Expand All @@ -126,7 +130,8 @@ public class FastFlagManager : JsonManager<Dictionary<string, object>>
{ "V2Rollout", "100" },
{ "EnableV4", "False" },
{ "EnableV4Chrome", "False" },
{ "ABTest", "False" }
{ "ABTest", "False" },
{ "ReportButtonCutOff", null }
}
},

Expand All @@ -137,7 +142,8 @@ public class FastFlagManager : JsonManager<Dictionary<string, object>>
{ "V2Rollout", "0" },
{ "EnableV4", "True" },
{ "EnableV4Chrome", "False" },
{ "ABTest", "False" }
{ "ABTest", "False" },
{ "ReportButtonCutOff", null }
}
},

Expand All @@ -148,7 +154,8 @@ public class FastFlagManager : JsonManager<Dictionary<string, object>>
{ "V2Rollout", "0" },
{ "EnableV4", "True" },
{ "EnableV4Chrome", "True" },
{ "ABTest", "False" }
{ "ABTest", "False" },
{ "ReportButtonCutOff", null }
}
}
};
Expand Down
7 changes: 7 additions & 0 deletions Bloxstrap/Installer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,16 @@ public static void HandleUpgrade()
if (oldV2Val is not null)
{
if (oldV2Val == "True")
{
App.FastFlags.SetPreset("UI.Menu.Style.V2Rollout", "0");

if (App.FastFlags.GetValue("UI.Menu.Style.EnableV4.1") == "False")
App.FastFlags.SetPreset("UI.Menu.Style.ReportButtonCutOff", "False");
}
else
{
App.FastFlags.SetPreset("UI.Menu.Style.V2Rollout", "100");
}

App.FastFlags.SetValue("FFlagDisableNewIGMinDUA", null);
}
Expand Down

0 comments on commit 8764804

Please sign in to comment.