Exemplo n.º 1
0
            protected override void BuildContents()
            {
                //DBG.DbgPrim_Grid.OverrideColor = HandleColor("Grid Color", DBG.DbgPrim_Grid.OverrideColor.Value);

                if (OSD.RequestExpandAllTreeNodes || OSD.IsInit)
                {
                    ImGui.SetNextItemOpen(true);
                }

                if (OSD.EnableDebugMenuFull)
                {
                    _QuickDebug.BuildDebugMenu();
                    ImGui.Separator();
                }

                if (Scene.MainModel?.AnimContainer != null)
                {
                    float animWeight = Scene.MainModel.AnimContainer.DebugAnimWeight;
                    ImGui.SliderFloat("HKX Skel -> HKX Anim Weight", ref animWeight, 0, 1);
                    Scene.MainModel.AnimContainer.DebugAnimWeight = animWeight;

                    float animWeight2 = Scene.MainModel.DebugAnimWeight_Deprecated;
                    ImGui.SliderFloat("FLVER Skel -> HKX Skel Weight", ref animWeight2, 0, 1);
                    Scene.MainModel.DebugAnimWeight_Deprecated = animWeight2;

                    bool bind = Scene.MainModel.EnableSkinning;
                    ImGui.Checkbox("Enable FLVER Skel -> HKX Skel", ref bind);
                    Scene.MainModel.EnableSkinning = bind;
                }

                if (OSD.EnableDebugMenuFull)
                {
                    ImGui.Button("Hot Reload FlverShader.xnb\nFrom '..\\..\\..\\Content\\Shaders\\' Folder");
                    if (ImGui.IsItemClicked())
                    {
                        GFX.ReloadFlverShader();
                    }

                    ImGui.Button("Hot Reload FlverTonemapShader.xnb\nFrom '..\\..\\..\\Content\\Shaders\\' Folder");
                    if (ImGui.IsItemClicked())
                    {
                        GFX.ReloadTonemapShader();
                    }

                    ImGui.Button("Hot Reload CubemapSkyboxShader.xnb\nFrom '..\\..\\..\\Content\\Shaders\\' Folder");
                    if (ImGui.IsItemClicked())
                    {
                        GFX.ReloadCubemapSkyboxShader();
                    }
                }
            }