Add an option to disable ESC
This commit is contained in:
parent
035b7383ae
commit
3ff529b99a
@ -18,6 +18,7 @@ internal sealed class Configuration : IPluginConfiguration
|
|||||||
public uint MountId { get; set; } = 71;
|
public uint MountId { get; set; } = 71;
|
||||||
public GrandCompany GrandCompany { get; set; } = GrandCompany.None;
|
public GrandCompany GrandCompany { get; set; } = GrandCompany.None;
|
||||||
public bool HideInAllInstances { get; set; } = true;
|
public bool HideInAllInstances { get; set; } = true;
|
||||||
|
public bool UseEscToCancelQuesting { get; set; } = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal sealed class AdvancedConfiguration
|
internal sealed class AdvancedConfiguration
|
||||||
|
@ -140,7 +140,7 @@ internal sealed class QuestController
|
|||||||
_combatController.Stop("HP = 0");
|
_combatController.Stop("HP = 0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (_keyState[VirtualKey.ESCAPE])
|
else if (_configuration.General.UseEscToCancelQuesting && _keyState[VirtualKey.ESCAPE])
|
||||||
{
|
{
|
||||||
if (_currentTask != null || _taskQueue.Count > 0)
|
if (_currentTask != null || _taskQueue.Count > 0)
|
||||||
{
|
{
|
||||||
|
@ -76,6 +76,13 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig
|
|||||||
Save();
|
Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool useEscToCancelQuesting = _configuration.General.UseEscToCancelQuesting;
|
||||||
|
if (ImGui.Checkbox("Use ESC to cancel questing/movement", ref useEscToCancelQuesting))
|
||||||
|
{
|
||||||
|
_configuration.General.UseEscToCancelQuesting = useEscToCancelQuesting;
|
||||||
|
Save();
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.EndTabItem();
|
ImGui.EndTabItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user