Skip to content

Commit

Permalink
New FFlag presets, categorisation, easy killswitch
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Jun 28, 2024
1 parent 08900de commit 8dfd12b
Show file tree
Hide file tree
Showing 7 changed files with 325 additions and 83 deletions.
3 changes: 1 addition & 2 deletions Bloxstrap/Enums/FlagPresets/MSAAMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ public enum MSAAMode
Default,
x1,
x2,
x4,
x8
x4
}
}
11 changes: 11 additions & 0 deletions Bloxstrap/Enums/FlagPresets/TextureQuality.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Bloxstrap.Enums.FlagPresets
{
public enum TextureQuality
{
Default,
Level0,
Level1,
Level2,
Level3
}
}
21 changes: 19 additions & 2 deletions Bloxstrap/FastFlagManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class FastFlagManager : JsonManager<Dictionary<string, object>>
{ "Rendering.Framerate", "DFIntTaskSchedulerTargetFps" },
{ "Rendering.ManualFullscreen", "FFlagHandleAltEnterFullscreenManually" },
{ "Rendering.DisableScaling", "DFFlagDisableDPIScale" },
{ "Rendering.MSAA", "FIntDebugForceMSAASamples" },
{ "Rendering.DisablePostFX", "FFlagDisablePostFx" },
{ "Rendering.ShadowIntensity", "FIntRenderShadowIntensity" },

{ "Rendering.Mode.D3D11", "FFlagDebugGraphicsPreferD3D11" },
{ "Rendering.Mode.D3D10", "FFlagDebugGraphicsPreferD3D11FL10" },
Expand All @@ -37,12 +40,18 @@ public class FastFlagManager : JsonManager<Dictionary<string, object>>
{ "Rendering.Lighting.ShadowMap", "FFlagDebugForceFutureIsBrightPhase2" },
{ "Rendering.Lighting.Future", "FFlagDebugForceFutureIsBrightPhase3" },

{ "Rendering.TextureQuality.OverrideEnabled", "DFFlagTextureQualityOverrideEnabled" },
{ "Rendering.TextureQuality.Level", "DFIntTextureQualityOverride" },
{ "Rendering.TerrainTextureQuality", "FIntTerrainArraySliceSize" },

{ "UI.Hide", "DFIntCanHideGuiGroupId" },
{ "UI.FontSize", "FIntFontSizePadding" },
#if DEBUG
{ "UI.FlagState", "FStringDebugShowFlagState" },
#endif

{ "UI.Menu.GraphicsSlider", "FFlagFixGraphicsQuality" },
{ "UI.FullscreenTitlebarDelay", "FIntFullscreenTitleBarTriggerDelayMillis" },

{ "UI.Menu.Style.DisableV2", "FFlagDisableNewIGMinDUA" },
{ "UI.Menu.Style.EnableV4.1", "FFlagEnableInGameMenuControls" },
Expand Down Expand Up @@ -77,8 +86,16 @@ public class FastFlagManager : JsonManager<Dictionary<string, object>>
{ MSAAMode.Default, null },
{ MSAAMode.x1, "1" },
{ MSAAMode.x2, "2" },
{ MSAAMode.x4, "4" },
{ MSAAMode.x8, "8" }
{ MSAAMode.x4, "4" }
};

public static IReadOnlyDictionary<TextureQuality, string?> TextureQualityLevels => new Dictionary<TextureQuality, string?>
{
{ TextureQuality.Default, null },
{ TextureQuality.Level0, "0" },
{ TextureQuality.Level1, "1" },
{ TextureQuality.Level2, "2" },
{ TextureQuality.Level3, "3" },
};

// this is one hell of a dictionary definition lmao
Expand Down
167 changes: 124 additions & 43 deletions Bloxstrap/Resources/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8dfd12b

Please sign in to comment.