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
1 parent 1ce1f05 commit b0b3499
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions init.lua
Expand Up @@ -356,17 +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())
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 All @@ -383,6 +372,9 @@ local function DrawGroupMember(id)
ImGui.EndTooltip()
if ImGui.IsMouseClicked(0) then
mq.cmdf("/target id %s", member.Pet.ID())
if mq.TLO.Cursor() then
mq.cmdf('/multiline ; /tar id %s; /face; /if (${Cursor.ID}) /click left target',member.Pet.ID())
end
end
end
end
Expand All @@ -393,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 b0b3499

Please sign in to comment.