Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-15-14, 06:37 AM   #1
sercankd
A Murloc Raider
Join Date: Oct 2005
Posts: 4
How to interact with all items

As you know when you shift click any item while auction window is open, it writes item name to search box. what i wanted is make similiar function like this with ALT+click instead of shift click. i managed to hook up items in bags but i want to interact with all items in profession window, bags etc.

i use this to interact with bag items

Lua Code:
  1. function PandaTranslate:AUCTION_HOUSE_SHOW(...)
  2.      self:SecureHook(_G, "ContainerFrameItemButton_OnModifiedClick")
  3.  end
  4.  function PandaTranslate:ContainerFrameItemButton_OnModifiedClick(this, button)
  5.      if (button ~= "RightButton") or (not IsAltKeyDown()) then
  6.          return
  7.      end
  8.     BrowseName:SetText(Item_List[GetContainerItemID(this:GetParent():GetID(), this:GetID())])
  9.  end
since there isnt similiar object to hook in profession window like ContainerFrameItemButton, i couldnt make it work. but i dont just want to hook profession frame, is there anyway to hook all items like this?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » How to interact with all items


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off