Skip to content

Commit

Permalink
feat:
Browse files Browse the repository at this point in the history
If you left click a group member or their pet. with an item on your cursor, and they are in range you will open a trade
  • Loading branch information
grimmier378 committed Apr 2, 2024
2 parents 8a46585 + b0b3499 commit 612fa37
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions init.lua
Expand Up @@ -356,20 +356,6 @@ local function DrawGroupMember(id)
ImGui.EndTooltip()
end
end
ImGui.EndGroup()
if ImGui.IsItemHovered() and ImGui.IsMouseReleased(ImGuiMouseButton.Left) then
mq.cmdf("/target id %s", member.ID())
if mq.TLO.Cursor() then
mq.cmdf('/multiline ; /tar id %s; /face; /if (${Cursor.ID}) /click left target',member.ID())
end
end
if ImGui.IsItemHovered() and ImGui.IsMouseReleased(ImGuiMouseButton.Right) then
if useEQBC then
mq.cmdf("/bct %s //foreground", memberName)
else
mq.cmdf("/dex %s /foreground", memberName)
end
end

-- Pet Health

Expand Down Expand Up @@ -399,6 +385,20 @@ local function DrawGroupMember(id)
ImGui.Dummy(ImGui.GetContentRegionAvail(), 20)

end
ImGui.EndGroup()
if ImGui.IsItemHovered() and ImGui.IsMouseReleased(ImGuiMouseButton.Left) then
mq.cmdf("/target id %s", member.ID())
if mq.TLO.Cursor() then
mq.cmdf('/multiline ; /tar id %s; /face; /if (${Cursor.ID}) /click left target',member.ID())
end
end
if ImGui.IsItemHovered() and ImGui.IsMouseReleased(ImGuiMouseButton.Right) then
if useEQBC then
mq.cmdf("/bct %s //foreground", memberName)
else
mq.cmdf("/dex %s /foreground", memberName)
end
end
end

local function GUI_Group(open)
Expand Down

0 comments on commit 612fa37

Please sign in to comment.