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

Commit

Permalink
fix: changed the checkitem's tooltip.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 1, 2023
1 parent c2f6771 commit 434be78
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 3 additions & 4 deletions RotationSolver/Helpers/ImguiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace RotationSolver.Helpers;
internal static class ImGuiHelper
{
public static void DrawEnableTexture<T>(this T texture, bool isSelected, Action selected,
Action<string> showToolTip = null,Action additonalHeader = null, Action otherThing = null)
where T : class, ITexture
Action<string> showToolTip = null, Action<Action<string>> additonalHeader = null,
Action otherThing = null) where T : class, ITexture
{
showToolTip ??= text =>
{
Expand Down Expand Up @@ -65,8 +65,7 @@ public static void DrawEnableTexture<T>(this T texture, bool isSelected, Action
}
}


additonalHeader?.Invoke();
additonalHeader?.Invoke(showToolTip);

if (enable)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public unsafe void Display(ICustomRotation[] rotations, bool canAddButton)
ImGui.End();
}

}, () =>
}, showToolTip =>
{
if (!string.IsNullOrEmpty(RotationName) && rotations != null)
{
Expand All @@ -83,7 +83,7 @@ public unsafe void Display(ICustomRotation[] rotations, bool canAddButton)
}
if (ImGui.IsItemHovered())
{
ImGui.SetTooltip(r.Description);
showToolTip?.Invoke(r.Description);
}
}
ImGui.EndCombo();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
using RotationSolver.Helpers;
using RotationSolver.Rotations.Basic;
using RotationSolver.Updaters;
#if DEBUG

namespace RotationSolver.Rotations.RangedMagicial.BLU;

internal class BLU_25 : BLU_Base
internal class BLU_Simplify : BLU_Base
{
public override string GameVersion => "6.3";

public override string RotationName => "25";
public override string RotationName => "Simplify";

public override string Description => "This is a simplfied version for me (ArchiTed) using, \nwhich doesn't contain all actions.";

private protected override bool AttackAbility(byte abilitiesRemaining, out IAction act)
{
Expand Down Expand Up @@ -43,4 +45,3 @@ private protected override bool GeneralGCD(out IAction act)
return false;
}
}
#endif
1 change: 1 addition & 0 deletions docs/_navbar.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Translations
- [:uk: English](/)
- [:cn: 简体中文](/ChineseServer/)

0 comments on commit 434be78

Please sign in to comment.