post icon improvement

This commit is contained in:
Manuel Simon Hirsig
2016-07-13 21:44:52 +02:00
parent 0a9f951fa1
commit 991a8302ec
3 changed files with 18 additions and 11 deletions
+15 -8
View File
@@ -9,14 +9,21 @@ function Aux.post_frame.create_frames(private, public)
end
ClearCursor()
end)
-- AuxPostParametersItemIconTexture:SetScript('OnEnter', function()
-- if private.selected_item then
-- Aux.info.set_tooltip(private.selected_item.itemstring, this, 'ANCHOR_RIGHT')
-- end
-- end)
-- AuxPostParametersItemIconTexture:SetScript('OnLeave', function()
-- GameTooltip:Hide()
-- end)
AuxPostParametersItem:SetScript('OnClick', function()
local item_info = Aux.cursor_item()
if item_info then
public.select_item(item_info.item_key)
end
ClearCursor()
end)
AuxPostParametersItem:SetScript('OnEnter', function()
if private.selected_item then
Aux.info.set_tooltip(private.selected_item.itemstring, this, 'ANCHOR_RIGHT')
end
end)
AuxPostParametersItem:SetScript('OnLeave', function()
GameTooltip:Hide()
end)
do
local checkbox = CreateFrame('CheckButton', nil, AuxPostInventory, 'UICheckButtonTemplate')