Fix right-click on server info bar 'character switch' icon
This commit is contained in:
parent
794b07ff0a
commit
22025cdbc9
@ -62,7 +62,7 @@ internal sealed class CharacterSwitch : IDisposable
|
|||||||
{
|
{
|
||||||
UIInputData* uiInputData = UIInputData.Instance();
|
UIInputData* uiInputData = UIInputData.Instance();
|
||||||
MouseButtonFlags mouseButtonFlags =
|
MouseButtonFlags mouseButtonFlags =
|
||||||
uiInputData != null ? uiInputData->CursorInputs.MouseButtonReleasedFlags : MouseButtonFlags.LBUTTON;
|
uiInputData != null ? uiInputData->CursorInputs.MouseButtonHeldThrottledFlags : MouseButtonFlags.LBUTTON;
|
||||||
var target = FindCharacter(mouseButtonFlags.HasFlag(MouseButtonFlags.RBUTTON) ? -1 : 1);
|
var target = FindCharacter(mouseButtonFlags.HasFlag(MouseButtonFlags.RBUTTON) ? -1 : 1);
|
||||||
SwitchCharacter(target);
|
SwitchCharacter(target);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<Project Sdk="Dalamud.NET.Sdk/11.0.0">
|
<Project Sdk="Dalamud.NET.Sdk/11.0.0">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>2.1</Version>
|
<Version>2.2</Version>
|
||||||
<OutputPath>dist</OutputPath>
|
<OutputPath>dist</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user