예제 #1
0
        public void UiBuilder_OnBuildUi_Config()
        {
            if (!IsImguiConfigOpen)
            {
                return;
            }

            ImGui.SetNextWindowSize(new Vector2(525, 600), ImGuiCond.FirstUseEver);

            ImGui.PushStyleColor(ImGuiCol.ResizeGrip, 0);

            ImGui.Begin(plugin.Name, ref IsImguiConfigOpen);

#if DEBUG
            UiBuilder_TestButton();
#endif

            if (ImGui.Checkbox($"Enabled", ref plugin.Configuration.Enabled))
            {
                plugin.SaveConfiguration();
            }

            UiBuilder_TextNodeButtons();
            UiBuilder_TextNodes();
            ResolveAddRemoveTextNodes();

            UiBuilder_ItemsWithoutText();

            ImGui.End();

            ImGui.PopStyleColor();
        }
예제 #2
0
        public void UiBuilder_OnBuildUi()
        {
            if (!IsImguiSetupOpen)
            {
                return;
            }

            ImGui.SetNextWindowSize(new Vector2(525, 600), ImGuiCond.FirstUseEver);

            ImGui.PushStyleColor(ImGuiCol.ResizeGrip, 0);

            if (!ImGui.Begin(plugin.Name, ref IsImguiSetupOpen))
            {
                return;
            }

            if (ImGui.Checkbox($"Enabled", ref plugin.Configuration.Enabled))
            {
                plugin.SaveConfiguration();
            }

            UiBuilder_TextEntryButtons();
            UiBuilder_TextEntries();
            UiBuilder_TextEntryOptionsPopup();
            UiBuilder_TextEntryQuickDelete();

            UiBuilder_ItemsWithoutText();

            ImGui.End();

            ImGui.PopStyleColor();
        }