diff --git a/auctions_frame.lua b/auctions_frame.lua index fe7c46c..a91a869 100644 --- a/auctions_frame.lua +++ b/auctions_frame.lua @@ -119,7 +119,7 @@ function public.on_load() status_bar:SetWidth(265) status_bar:SetHeight(25) status_bar:SetPoint('TOPLEFT', AuxFrameContent, 'BOTTOMLEFT', 0, -6) - status_bar:update_status(100, 0) + status_bar:update_status(100, 100) status_bar:set_text('') private.status_bar = status_bar end diff --git a/gui.lua b/gui.lua index 252e3b3..1a2409a 100644 --- a/gui.lua +++ b/gui.lua @@ -313,6 +313,13 @@ function m.status_bar(parent) status_bar:SetStatusBarTexture([[Interface\Buttons\WHITE8X8]]) status_bar:SetStatusBarColor(.42, .42, .42, .7) status_bar:SetFrameLevel(level + 2) + status_bar:SetScript('OnUpdate', function() + if this:GetValue() < 100 then + this:SetAlpha(1 - ((math.sin(GetTime()*math.pi)+1)/2)/2) + else + this:SetAlpha(1) + end + end) -- local ag = status_bar:CreateAnimationGroup() -- local alpha = ag:CreateAnimation('Alpha') -- alpha:SetDuration(1) @@ -331,6 +338,13 @@ function m.status_bar(parent) status_bar:SetStatusBarTexture([[Interface\Buttons\WHITE8X8]]) status_bar:SetStatusBarColor(.19, .22, .33, .9) status_bar:SetFrameLevel(level + 3) + status_bar:SetScript('OnUpdate', function() + if this:GetValue() < 100 then + this:SetAlpha(1 - ((math.sin(GetTime()*math.pi)+1)/2)/2) + else + this:SetAlpha(1) + end + end) -- local ag = status_bar:CreateAnimationGroup() -- local alpha = ag:CreateAnimation('Alpha') -- alpha:SetDuration(1) diff --git a/info.lua b/info.lua index da0424b..106ab40 100644 --- a/info.lua +++ b/info.lua @@ -159,6 +159,9 @@ function public.set_tooltip(itemstring, EnhTooltip_info, owner, anchor, x_offset local item_id = tonumber(({strfind(itemstring, '^item:(%d+)')})[3]) local item_info = Aux.static.item_info(item_id) local slot_index = item_info.class and item_info.subclass and Aux.item_slot_index(item_info.class, item_info.subclass, item_info.slot) + snipe.log(item_info.class) + snipe.log(item_info.subclass) + snipe.log(slot_index) if slot_index then ShoppingTooltip1:SetOwner(GameTooltip, 'ANCHOR_BOTTOMRIGHT') diff --git a/post_frame.lua b/post_frame.lua index 3d773b0..000be6b 100644 --- a/post_frame.lua +++ b/post_frame.lua @@ -118,7 +118,7 @@ function public.on_load() status_bar:SetWidth(265) status_bar:SetHeight(25) status_bar:SetPoint('TOPLEFT', AuxFrameContent, 'BOTTOMLEFT', 0, -6) - status_bar:update_status(100, 0) + status_bar:update_status(100, 100) status_bar:set_text('') private.status_bar = status_bar end diff --git a/search_frame.lua b/search_frame.lua index 901e65d..8ba0330 100644 --- a/search_frame.lua +++ b/search_frame.lua @@ -257,7 +257,7 @@ function public.on_load() status_bar:SetWidth(265) status_bar:SetHeight(25) status_bar:SetPoint('TOPLEFT', AuxFrameContent, 'BOTTOMLEFT', 0, -6) - status_bar:update_status(100, 0) + status_bar:update_status(100, 100) status_bar:set_text('') private.status_bar = status_bar end