diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 90e8432..0a96461 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,6 +2,7 @@ + @@ -69,28 +70,28 @@ - - + + - + - + - + - - + + @@ -119,7 +120,7 @@ - + @@ -146,16 +147,6 @@ - - - - - - - - - - @@ -166,6 +157,16 @@ + + + + + + + + + + @@ -185,10 +186,10 @@ @@ -370,7 +371,7 @@ - + @@ -434,22 +435,6 @@ - - - - - - - - - - - - - - - - @@ -466,14 +451,6 @@ - - - - - - - - @@ -490,26 +467,50 @@ - + - - + + - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/buy.lua b/buy.lua index c033b69..6568c72 100644 --- a/buy.lua +++ b/buy.lua @@ -42,7 +42,7 @@ Aux.buy.modes = { }, { title = 'Auction Item', - width = 214, + width = 274, comparator = function(group1, group2) return Aux.util.compare(group1[1].name, group2[1].name, Aux.util.GT) end, cell_initializer = function(cell) local icon = CreateFrame('Button', nil, cell) @@ -106,8 +106,8 @@ Aux.buy.modes = { end, }, { - title = 'No', - width = 43, + title = 'Auctions', + width = 83, comparator = function(group1, group2) return Aux.util.compare(getn(group1), getn(group2), Aux.util.LT) end, cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'), cell_setter = function(cell, group) @@ -117,7 +117,7 @@ Aux.buy.modes = { }, { title = 'Buy/ea', - width = 140, + width = 90, comparator = function(group1, group2) return Aux.util.compare(group1[1].buyout_price_per_unit, group2[1].buyout_price_per_unit, Aux.util.GT) end, cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'), cell_setter = function(cell, group) @@ -127,7 +127,7 @@ Aux.buy.modes = { }, { title = 'Buy', - width = 140, + width = 90, comparator = function(group1, group2) return Aux.util.compare(group1[1].buyout_price, group2[1].buyout_price, Aux.util.GT) end, cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'), cell_setter = function(cell, group) diff --git a/core.lua b/core.lua index eb60c54..64a9019 100644 --- a/core.lua +++ b/core.lua @@ -98,17 +98,9 @@ function Aux_OnAddonLoaded() end end -function Aux.log_scroll(direction) - if direction == 1 then - this:ScrollUp() - elseif direction == -1 then - this:ScrollDown() - end -end - function Aux.log_frame_load() this:EnableMouseWheel() - this.flashTimer = 0 + -- this.flashTimer = 0 TODO remove end function Aux.log_frame_update(elapsedSec) diff --git a/core.xml b/core.xml index d760503..77bf0bf 100644 --- a/core.xml +++ b/core.xml @@ -65,8 +65,15 @@ ChatFrame_OnHyperlinkHide() - Aux.log_scroll(arg1) + if arg1 == 1 then + this:ScrollUp() + elseif arg1 == -1 then + this:ScrollDown() + end + + this:ScrollToBottom() +