Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: changed some ui stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 15, 2023
1 parent 94e6054 commit c6f329c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
26 changes: 16 additions & 10 deletions RotationSolver/UI/ImGuiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,23 @@
using Dalamud.Interface.Colors;
using Dalamud.Interface.Components;
using Dalamud.Utility;
using FFXIVClientStructs.FFXIV.Client.Game.UI;
using FFXIVClientStructs.FFXIV.Client.Game;
using FFXIVClientStructs.FFXIV.Client.Game.UI;
using ImGuiNET;
using RotationSolver.Actions.BaseAction;
using RotationSolver.Basic;
using RotationSolver.Basic.Actions;
using RotationSolver.Basic.Attributes;
using RotationSolver.Basic.Configuration;
using RotationSolver.Basic.Configuration.RotationConfig;
using RotationSolver.Basic.Data;
using RotationSolver.Basic.Helpers;
using RotationSolver.Basic.Rotations;
using RotationSolver.Localization;
using RotationSolver.Rotations.CustomRotation;
using RotationSolver.Windows.RotationConfigWindow;
using System.ComponentModel;
using System.Numerics;
using System.Reflection;
using RotationSolver.Actions.BaseAction;
using RotationSolver.Basic.Actions;
using RotationSolver.Basic.Attributes;
using RotationSolver.Basic.Helpers;
using RotationSolver.Basic.Configuration.RotationConfig;
using RotationSolver.Basic.Configuration;
using RotationSolver.Basic.Data;

namespace RotationSolver.UI;

Expand Down Expand Up @@ -440,8 +439,15 @@ public unsafe static void Display(this ICustomRotation rotation, ICustomRotation
ImGui.SameLine();
ImGui.TextDisabled(" - ");
ImGui.SameLine();
ImGui.TextColored(rotation.IsAllowed(out _) ? ImGuiColors.HealerGreen : ImGuiColors.DalamudRed,

var isAllowed = rotation.IsAllowed(out _);
ImGui.TextColored(isAllowed ? ImGuiColors.DalamudWhite : ImGuiColors.DalamudViolet,
rotation.GetAuthor());
if(!isAllowed && ImGui.IsItemHovered())
{
ImGui.SetTooltip("This rotation is not allowed to be used in High-end Duty!");
}

ImGui.SameLine();
ImGui.TextDisabled(" - " + LocalizationManager.RightLang.Configwindow_Helper_GameVersion + ": ");
ImGui.SameLine();
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/UI/RotationConfigWindow_Rotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ private void DrawRotationTab()
Util.OpenLink("https://archidog1998.github.io/RotationSolver/#/RotationDev/");
}
ImGui.SameLine();
ImGuiHelper.Spacing();
if (ImGui.Button("Load Rotation"))
{
RotationUpdater.GetAllCustomRotations();
Expand Down

0 comments on commit c6f329c

Please sign in to comment.