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
+1 -1
View File
@@ -1,5 +1,5 @@
Aux = {
version = '2.15.6',
version = '2.15.7',
blizzard_ui_shown = false,
orig = {},
}
+2 -2
View File
@@ -31,9 +31,9 @@
<Anchor point="TOPRIGHT"><Offset><AbsDimension x="-4" y="0"/></Offset></Anchor>
</Anchors>
<frames>
<Frame name="$parentItem" inherits="AuxItemTemplate">
<Button name="$parentItem" inherits="AuxItemTemplate">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="10" y="-10"/></Offset></Anchor></Anchors>
</Frame>
</Button>
</frames>
</frame>
<Frame name="AuxPostAuctions" inherits="AuxFrameBoxTemplate">
+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')