Example #1
0
 private static void DrawNoModsAvailable()
 {
     ImGui.Text("You don't have any mods :(");
     ImGuiCustom.VerticalDistance(20f);
     ImGui.Text("You'll need to install them first by creating a folder close to the root of your drive (preferably an SSD).");
     ImGui.Text("For example: D:/ffxiv/mods/");
     ImGui.Text("And pasting that path into the settings tab and clicking the 'Rediscover Mods' button.");
     ImGui.Text("You can return to this tab once you've done that.");
 }
            public void Draw()
            {
                if (Mod == null)
                {
                    return;
                }

                try
                {
                    var ret = ImGui.BeginChild(LabelModPanel, AutoFillSize, true);
                    if (!ret)
                    {
                        return;
                    }

                    DrawHeaderLine();

                    // Next line with fixed distance.
                    ImGuiCustom.VerticalDistance(HeaderLineDistance);

                    DrawEnabledMark();
                    if (_base._plugin !.Configuration !.ShowAdvanced)
                    {
                        ImGui.SameLine();
                        DrawEditableMark();
                    }

                    // Next line, if editable.
                    if (_editMode)
                    {
                        DrawEditLine();
                    }

                    Details.Draw(_editMode);

                    ImGui.EndChild();
                }
                catch (Exception ex)
                {
                    PluginLog.LogError(ex, "f**k");
                }
            }
Example #3
0
            public void Draw()
            {
                var ret = ImGui.BeginTabItem(LabelTab);

                if (!ret)
                {
                    return;
                }

                DrawRootFolder();

                DrawRediscoverButton();
                ImGui.SameLine();
                DrawOpenModsButton();

                ImGuiCustom.VerticalDistance(DefaultVerticalSpace);
                DrawEnabledBox();

                ImGuiCustom.VerticalDistance(DefaultVerticalSpace);
                DrawInvertModOrderBox();

                ImGuiCustom.VerticalDistance(DefaultVerticalSpace);
                DrawShowAdvancedBox();

                if (_config.ShowAdvanced)
                {
                    DrawAdvancedSettings();
                }

                if (_configChanged)
                {
                    _config.Save();
                    _configChanged = false;
                }

                ImGui.EndTabItem();
            }