public GlobalActionContainer(VignetteGameBase game)
     : base(matchingMode: KeyCombinationMatchingMode.Modifiers)
 {
     if (game is IKeyBindingHandler <GlobalAction> )
     {
         handler = game;
     }
 }
        private void load(VignetteConfigManager gameConfig, FrameworkConfigManager frameworkConfig, FrameworkDebugConfigManager debugConfig, VignetteGameBase game, Storage storage)
        {
            AddRange(new Drawable[]
            {
                new Container
                {
                    AutoSizeAxes     = Axes.Y,
                    RelativeSizeAxes = Axes.X,
                    Margin           = new MarginPadding {
                        Bottom = 30
                    },
                    Child = versionText = new ThemableSpriteText
                    {
                        Anchor = Anchor.Centre,
                        Origin = Anchor.Centre,
                        Text   = game.Version,
                        Font   = SegoeUI.Bold.With(size: 24),
                    },
                },
                new SettingsCheckbox
                {
                    Label   = "Show FPS",
                    Current = gameConfig.GetBindable <bool>(VignetteSetting.ShowFpsOverlay),
                },
                new SettingsCheckbox
                {
                    Label   = "Show log overlay",
                    Current = frameworkConfig.GetBindable <bool>(FrameworkSetting.ShowLogOverlay),
                },
                new SettingsCheckbox
                {
                    Label   = "Bypass front-to-back render pass",
                    Current = debugConfig.GetBindable <bool>(DebugSetting.BypassFrontToBackPass),
                },
                new SettingsButton
                {
                    Label  = "Open logs folder",
                    Action = () => storage.OpenPathInNativeExplorer("./logs"),
                },
            });

            if (!game.IsDeployedBuild && game.IsDebugBuild)
            {
                versionText.Colour = ThemeSlot.Error;
            }
            else if (!game.IsDeployedBuild)
            {
                versionText.Colour = ThemeSlot.Success;
            }
            else
            {
                versionText.Colour = ThemeSlot.Gray190;
            }
        }