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

Commit

Permalink
fix: add tooltip for cooldown action.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 2, 2023
1 parent f186ec6 commit 1e47bdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions RotationSolver/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
"ConfigWindow_Control_ControlWindowNextSizeRatio": "Next Action Size Ratio",
"ConfigWindow_Control_ResetButtonOrKeyCommand": "Right click to reset the gamepad button or key board key.\nHold Left Ctrl and middle click to clear the key setting.",
"ConfigWindow_Control_NeedToEnable": " (Need to enable)",
"ConfigWindow_Control_ClickToUse": "Click to use it!",
"Timeline_DragdropDescription": "Drag&drop to move,Ctrl+Alt+RightClick to delete.",
"Timeline_SearchBar": "Search Bar",
"Timeline_MustUse": "MustUse",
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ internal partial class Strings
public string ConfigWindow_Control_ControlWindowNextSizeRatio { get; set; } = "Next Action Size Ratio";
public string ConfigWindow_Control_ResetButtonOrKeyCommand { get; set; } = "Right click to reset the gamepad button or key board key.\nHold Left Ctrl and middle click to clear the key setting.";
public string ConfigWindow_Control_NeedToEnable { get; set; } = " (Need to enable)";
public string ConfigWindow_Control_ClickToUse { get; set; } = "Click to use it!";

#endregion

Expand Down
3 changes: 2 additions & 1 deletion RotationSolver/UI/CooldownWindow.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using ImGuiNET;
using RotationSolver.Basic;
using RotationSolver.Basic.Actions;
using RotationSolver.Localization;
using RotationSolver.Updaters;
using System.Numerics;

Expand Down Expand Up @@ -61,7 +62,7 @@ private static void DrawActionCooldown(IAction act)
}
ControlWindow.DrawIAction(act, width, r);
var size = ImGui.GetItemRectSize();
ImGuiHelper.HoveredString(act.Name);
ImGuiHelper.HoveredString(act.Name + "\n" + LocalizationManager.RightLang.ConfigWindow_Control_ClickToUse);

if (!act.EnoughLevel)
{
Expand Down

0 comments on commit 1e47bdc

Please sign in to comment.