mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
Update text-related ImGui calls
This commit is contained in:
parent
f0021bc8f9
commit
81c3ad9421
119 changed files with 1277 additions and 1246 deletions
|
|
@ -74,46 +74,46 @@ internal unsafe class HookWidget : IDataWindowWidget
|
|||
{
|
||||
try
|
||||
{
|
||||
ImGui.Checkbox("Use MinHook (only for regular hooks, AsmHook is Reloaded-only)", ref this.hookUseMinHook);
|
||||
ImGui.Checkbox("Use MinHook (only for regular hooks, AsmHook is Reloaded-only)"u8, ref this.hookUseMinHook);
|
||||
|
||||
ImGui.Separator();
|
||||
|
||||
if (ImGui.Button("Create"))
|
||||
if (ImGui.Button("Create"u8))
|
||||
this.messageBoxMinHook = Hook<MessageBoxWDelegate>.FromSymbol("User32", "MessageBoxW", this.MessageBoxWDetour, this.hookUseMinHook);
|
||||
|
||||
if (ImGui.Button("Enable"))
|
||||
if (ImGui.Button("Enable"u8))
|
||||
this.messageBoxMinHook?.Enable();
|
||||
|
||||
if (ImGui.Button("Disable"))
|
||||
if (ImGui.Button("Disable"u8))
|
||||
this.messageBoxMinHook?.Disable();
|
||||
|
||||
if (ImGui.Button("Call Original"))
|
||||
if (ImGui.Button("Call Original"u8))
|
||||
this.messageBoxMinHook?.Original(IntPtr.Zero, "Hello from .Original", "Hook Test", MESSAGEBOX_STYLE.MB_OK);
|
||||
|
||||
if (ImGui.Button("Dispose"))
|
||||
if (ImGui.Button("Dispose"u8))
|
||||
{
|
||||
this.messageBoxMinHook?.Dispose();
|
||||
this.messageBoxMinHook = null;
|
||||
}
|
||||
|
||||
if (ImGui.Button("Test"))
|
||||
if (ImGui.Button("Test"u8))
|
||||
_ = global::Windows.Win32.PInvoke.MessageBox(HWND.Null, "Hi", "Hello", MESSAGEBOX_STYLE.MB_OK);
|
||||
|
||||
if (this.messageBoxMinHook != null)
|
||||
ImGui.Text("Enabled: " + this.messageBoxMinHook?.IsEnabled);
|
||||
ImGui.TextUnformatted("Enabled: " + this.messageBoxMinHook?.IsEnabled);
|
||||
|
||||
ImGui.Separator();
|
||||
|
||||
ImGui.BeginDisabled(this.hookStressTestRunning);
|
||||
ImGui.Text("Stress Test");
|
||||
ImGui.TextUnformatted("Stress Test"u8);
|
||||
|
||||
if (ImGui.InputInt("Max", ref this.hookStressTestMax))
|
||||
if (ImGui.InputInt("Max"u8, ref this.hookStressTestMax))
|
||||
this.hookStressTestCount = 0;
|
||||
|
||||
ImGui.InputInt("Wait (ms)", ref this.hookStressTestWait);
|
||||
ImGui.InputInt("Max Degree of Parallelism", ref this.hookStressTestMaxDegreeOfParallelism);
|
||||
ImGui.InputInt("Wait (ms)"u8, ref this.hookStressTestWait);
|
||||
ImGui.InputInt("Max Degree of Parallelism"u8, ref this.hookStressTestMaxDegreeOfParallelism);
|
||||
|
||||
if (ImGui.BeginCombo("Target", HookTargetToString(this.hookStressTestHookTarget)))
|
||||
if (ImGui.BeginCombo("Target"u8, HookTargetToString(this.hookStressTestHookTarget)))
|
||||
{
|
||||
foreach (var target in Enum.GetValues<StressTestHookTarget>())
|
||||
{
|
||||
|
|
@ -124,7 +124,7 @@ internal unsafe class HookWidget : IDataWindowWidget
|
|||
ImGui.EndCombo();
|
||||
}
|
||||
|
||||
if (ImGui.Button("Stress Test"))
|
||||
if (ImGui.Button("Stress Test"u8))
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue