This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add config for show toast about do ation. add an test window.
- Loading branch information
1 parent
9e8564f
commit 38de866
Showing
11 changed files
with
101 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using Dalamud.Interface.Colors; | ||
|
||
namespace RotationSolver.UI; | ||
|
||
internal static class ImguiTooltips | ||
{ | ||
const ImGuiWindowFlags TOOLTIP_FLAG = | ||
ImGuiWindowFlags.Tooltip | | ||
ImGuiWindowFlags.NoMove | | ||
ImGuiWindowFlags.NoSavedSettings | | ||
ImGuiWindowFlags.NoBringToFrontOnFocus | | ||
ImGuiWindowFlags.NoDecoration | | ||
ImGuiWindowFlags.NoInputs | | ||
ImGuiWindowFlags.AlwaysAutoResize; | ||
|
||
const string TOOLTIP_ID = "RotationSolver Tooltips"; | ||
|
||
public static void ShowTooltip(string text) | ||
{ | ||
if(string.IsNullOrEmpty(text)) return; | ||
ShowTooltip(() => ImGui.Text(text)); | ||
} | ||
|
||
public static void ShowTooltip(Action act) | ||
{ | ||
if (act == null) return; | ||
if (!Service.Config.ShowTooltips) return; | ||
|
||
ImGui.SetNextWindowBgAlpha(1); | ||
ImGui.PushStyleColor(ImGuiCol.BorderShadow, ImGuiColors.DalamudWhite); | ||
|
||
//ImGui.SetNextWindowSizeConstraints(new Vector2(0, 0), new Vector2(800, 1500)); | ||
ImGui.SetWindowPos(TOOLTIP_ID, ImGui.GetIO().MousePos); | ||
|
||
if (ImGui.Begin(TOOLTIP_ID, TOOLTIP_FLAG)) | ||
{ | ||
act(); | ||
ImGui.End(); | ||
} | ||
|
||
ImGui.PopStyleColor(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Dalamud.Interface.Windowing; | ||
|
||
namespace RotationSolver.UI; | ||
|
||
public class RotationConfigWindowNew : Window | ||
{ | ||
public RotationConfigWindowNew() | ||
: base(nameof(RotationConfigWindowNew), 0, false) | ||
{ | ||
SizeCondition = ImGuiCond.FirstUseEver; | ||
Size = new Vector2(740f, 490f); | ||
RespectCloseHotkey = true; | ||
} | ||
|
||
public override void Draw() | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters