Exemple #1
0
        static void toggleImGui()
        {
            // install the service if it isnt already there
            var service = Core.getGlobalManager <ImGuiManager>();

            if (service == null)
            {
                service = new ImGuiManager();
                Core.registerGlobalManager(service);
            }

            service.setEnabled(!service.enabled);
        }
Exemple #2
0
        static void ToggleImGui()
        {
            // install the service if it isnt already there
            var service = Core.GetGlobalManager <ImGuiManager>();

            if (service == null)
            {
                service = new ImGuiManager();
                Core.RegisterGlobalManager(service);
            }
            else
            {
                service.SetEnabled(!service.Enabled);
            }
        }