From be8473e1acdafa90366d3e9bf9cd2bf0087d8a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Thu, 19 Jan 2023 22:45:28 +0800 Subject: [PATCH] feat: add some linking button. --- .../Windows/RotationConfigWindow_Help.cs | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/RotationSolver/Windows/RotationConfigWindow_Help.cs b/RotationSolver/Windows/RotationConfigWindow_Help.cs index 3b6cb2a17..0ed2c1e10 100644 --- a/RotationSolver/Windows/RotationConfigWindow_Help.cs +++ b/RotationSolver/Windows/RotationConfigWindow_Help.cs @@ -1,5 +1,8 @@ -using ImGuiNET; +using Dalamud.Interface.Colors; +using Dalamud.Utility; +using ImGuiNET; using RotationSolver.Commands; +using RotationSolver.Helpers; using RotationSolver.Localization; using System.Numerics; @@ -11,6 +14,29 @@ private void DrawHelpTab() { ImGui.Text(LocalizationManager.RightLang.ConfigWindow_HelpItem_Description); + ImGui.PushStyleColor(ImGuiCol.Button, ImGuiColors.ParsedGreen); + if (ImGui.Button("Github")) + { + Util.OpenLink("https://github.com/ArchiDog1998/RotationSolver"); + } + + ImGui.SameLine(); + ImGuiHelper.Spacing(); + + if (ImGui.Button("Discord")) + { + Util.OpenLink("https://discord.gg/4fECHunam9"); + } + + ImGui.SameLine(); + ImGuiHelper.Spacing(); + + if (ImGui.Button("Wiki")) + { + Util.OpenLink("https://archidog1998.github.io/RotationSolver/"); + } + ImGui.PopStyleColor(); + if (ImGui.BeginChild("Help Infomation", new Vector2(0f, -1f), true)) { ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, new Vector2(0f, 5f));