diff --git a/init.lua b/init.lua index 893f95c..c0ad6bc 100644 --- a/init.lua +++ b/init.lua @@ -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 @@ -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)