buy modes and sell sliders done
This commit is contained in:
Generated
+50
-51
@@ -3,12 +3,11 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3c1af1d3-ae57-470d-8daa-a9295703c6fc" name="Default" comment="">
|
<list default="true" id="3c1af1d3-ae57-470d-8daa-a9295703c6fc" name="Default" comment="">
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/buy.lua" afterPath="$PROJECT_DIR$/buy.lua" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/buy.lua" afterPath="$PROJECT_DIR$/buy.lua" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/buy.xml" afterPath="$PROJECT_DIR$/buy.xml" />
|
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/core.lua" afterPath="$PROJECT_DIR$/core.lua" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/core.lua" afterPath="$PROJECT_DIR$/core.lua" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/core.xml" afterPath="$PROJECT_DIR$/core.xml" />
|
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/info.lua" afterPath="$PROJECT_DIR$/info.lua" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/info.lua" afterPath="$PROJECT_DIR$/info.lua" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/list.lua" afterPath="$PROJECT_DIR$/list.lua" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/list.lua" afterPath="$PROJECT_DIR$/list.lua" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/scan.lua" afterPath="$PROJECT_DIR$/scan.lua" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/scan.lua" afterPath="$PROJECT_DIR$/scan.lua" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
||||||
</list>
|
</list>
|
||||||
<ignored path="Aux-Addon.iws" />
|
<ignored path="Aux-Addon.iws" />
|
||||||
<ignored path=".idea/workspace.xml" />
|
<ignored path=".idea/workspace.xml" />
|
||||||
@@ -74,8 +73,8 @@
|
|||||||
<file leaf-file-name="core.lua" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="core.lua" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/core.lua">
|
<entry file="file://$PROJECT_DIR$/core.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="8602">
|
<state vertical-scroll-proportion="0.0" vertical-offset="2295" max-vertical-offset="8602">
|
||||||
<caret line="0" column="17" selection-start-line="0" selection-start-column="17" selection-end-line="0" selection-end-column="17" />
|
<caret line="150" column="0" selection-start-line="150" selection-start-column="0" selection-end-line="150" selection-end-column="0" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@@ -84,8 +83,8 @@
|
|||||||
<file leaf-file-name="info.lua" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="info.lua" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/info.lua">
|
<entry file="file://$PROJECT_DIR$/info.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="921" max-vertical-offset="3060">
|
<state vertical-scroll-proportion="-15.892858" vertical-offset="1833" max-vertical-offset="3060">
|
||||||
<caret line="67" column="26" selection-start-line="67" selection-start-column="26" selection-end-line="67" selection-end-column="26" />
|
<caret line="134" column="49" selection-start-line="134" selection-start-column="49" selection-end-line="134" selection-end-column="49" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@@ -94,8 +93,8 @@
|
|||||||
<file leaf-file-name="scan.lua" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="scan.lua" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/scan.lua">
|
<entry file="file://$PROJECT_DIR$/scan.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="700" max-vertical-offset="2737">
|
<state vertical-scroll-proportion="0.0" vertical-offset="2043" max-vertical-offset="2737">
|
||||||
<caret line="54" column="9" selection-start-line="54" selection-start-column="9" selection-end-line="54" selection-end-column="9" />
|
<caret line="138" column="14" selection-start-line="138" selection-start-column="14" selection-end-line="138" selection-end-column="14" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@@ -104,8 +103,18 @@
|
|||||||
<file leaf-file-name="buy.lua" pinned="false" current="true" current-in-tab="true">
|
<file leaf-file-name="buy.lua" pinned="false" current="true" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/buy.lua">
|
<entry file="file://$PROJECT_DIR$/buy.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.36456558" vertical-offset="3645" max-vertical-offset="15045">
|
<state vertical-scroll-proportion="0.36456558" vertical-offset="12111" max-vertical-offset="15198">
|
||||||
<caret line="227" column="34" selection-start-line="227" selection-start-column="34" selection-end-line="227" selection-end-column="34" />
|
<caret line="725" column="77" selection-start-line="725" selection-start-column="77" selection-end-line="725" selection-end-column="77" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="util.lua" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/util.lua">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="1224" max-vertical-offset="4420">
|
||||||
|
<caret line="92" column="24" selection-start-line="92" selection-start-column="18" selection-end-line="92" selection-end-column="24" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@@ -151,16 +160,6 @@
|
|||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file leaf-file-name="options.xml" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/options.xml">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="3672" max-vertical-offset="6579">
|
|
||||||
<caret line="237" column="0" selection-start-line="237" selection-start-column="0" selection-end-line="249" selection-end-column="34" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="core.xml" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="core.xml" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/core.xml">
|
<entry file="file://$PROJECT_DIR$/core.xml">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
@@ -190,11 +189,11 @@
|
|||||||
<option value="$PROJECT_DIR$/sell.lua" />
|
<option value="$PROJECT_DIR$/sell.lua" />
|
||||||
<option value="$PROJECT_DIR$/core.xml" />
|
<option value="$PROJECT_DIR$/core.xml" />
|
||||||
<option value="$PROJECT_DIR$/buy.xml" />
|
<option value="$PROJECT_DIR$/buy.xml" />
|
||||||
<option value="$PROJECT_DIR$/buy.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/list.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/core.lua" />
|
<option value="$PROJECT_DIR$/core.lua" />
|
||||||
<option value="$PROJECT_DIR$/scan.lua" />
|
<option value="$PROJECT_DIR$/scan.lua" />
|
||||||
<option value="$PROJECT_DIR$/info.lua" />
|
<option value="$PROJECT_DIR$/info.lua" />
|
||||||
|
<option value="$PROJECT_DIR$/list.lua" />
|
||||||
|
<option value="$PROJECT_DIR$/buy.lua" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
@@ -440,14 +439,6 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/util.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="-137.21428" vertical-offset="408" max-vertical-offset="4420">
|
|
||||||
<caret line="250" column="11" selection-start-line="250" selection-start-column="11" selection-end-line="250" selection-end-column="11" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/sell.lua">
|
<entry file="file://$PROJECT_DIR$/sell.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="-3.0" vertical-offset="3520" max-vertical-offset="10353">
|
<state vertical-scroll-proportion="-3.0" vertical-offset="3520" max-vertical-offset="10353">
|
||||||
@@ -456,14 +447,6 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/options.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2040">
|
|
||||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/options.xml">
|
<entry file="file://$PROJECT_DIR$/options.xml">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="3672" max-vertical-offset="6579">
|
<state vertical-scroll-proportion="0.0" vertical-offset="3672" max-vertical-offset="6579">
|
||||||
@@ -488,26 +471,34 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/list.lua">
|
<entry file="file://$PROJECT_DIR$/core.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="-11.928572" vertical-offset="4052" max-vertical-offset="4624">
|
<state vertical-scroll-proportion="0.0" vertical-offset="2295" max-vertical-offset="8602">
|
||||||
<caret line="258" column="8" selection-start-line="258" selection-start-column="8" selection-end-line="258" selection-end-column="8" />
|
<caret line="150" column="0" selection-start-line="150" selection-start-column="0" selection-end-line="150" selection-end-column="0" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/core.lua">
|
<entry file="file://$PROJECT_DIR$/options.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="8602">
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2040">
|
||||||
<caret line="0" column="17" selection-start-line="0" selection-start-column="17" selection-end-line="0" selection-end-column="17" />
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/scan.lua">
|
<entry file="file://$PROJECT_DIR$/scan.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="700" max-vertical-offset="2737">
|
<state vertical-scroll-proportion="0.0" vertical-offset="2043" max-vertical-offset="2737">
|
||||||
<caret line="54" column="9" selection-start-line="54" selection-start-column="9" selection-end-line="54" selection-end-column="9" />
|
<caret line="138" column="14" selection-start-line="138" selection-start-column="14" selection-end-line="138" selection-end-column="14" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/info.lua">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="-15.892858" vertical-offset="1833" max-vertical-offset="3060">
|
||||||
|
<caret line="134" column="49" selection-start-line="134" selection-start-column="49" selection-end-line="134" selection-end-column="49" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@@ -520,18 +511,26 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/info.lua">
|
<entry file="file://$PROJECT_DIR$/util.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="921" max-vertical-offset="3060">
|
<state vertical-scroll-proportion="0.0" vertical-offset="1224" max-vertical-offset="4420">
|
||||||
<caret line="67" column="26" selection-start-line="67" selection-start-column="26" selection-end-line="67" selection-end-column="26" />
|
<caret line="92" column="24" selection-start-line="92" selection-start-column="18" selection-end-line="92" selection-end-column="24" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/list.lua">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="-11.928572" vertical-offset="4052" max-vertical-offset="4624">
|
||||||
|
<caret line="258" column="8" selection-start-line="258" selection-start-column="8" selection-end-line="258" selection-end-column="8" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/buy.lua">
|
<entry file="file://$PROJECT_DIR$/buy.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.36456558" vertical-offset="3645" max-vertical-offset="15045">
|
<state vertical-scroll-proportion="0.36456558" vertical-offset="12111" max-vertical-offset="15198">
|
||||||
<caret line="227" column="34" selection-start-line="227" selection-start-column="34" selection-end-line="227" selection-end-column="34" />
|
<caret line="725" column="77" selection-start-line="725" selection-start-column="77" selection-end-line="725" selection-end-column="77" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ Aux.buy.modes = {
|
|||||||
end,
|
end,
|
||||||
columns = {
|
columns = {
|
||||||
{
|
{
|
||||||
title = 'Auctions',
|
title = 'Avail',
|
||||||
width = 70,
|
width = 40,
|
||||||
comparator = function(group1, group2) return Aux.util.compare(getn(Aux.util.filter(group1, function(auction) return not auction.gone end)), getn(Aux.util.filter(group2, function(auction) return not auction.gone end)), Aux.util.LT) end,
|
comparator = function(group1, group2) return Aux.util.compare(getn(Aux.util.filter(group1, function(auction) return not auction.gone end)), getn(Aux.util.filter(group2, function(auction) return not auction.gone end)), Aux.util.LT) end,
|
||||||
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
||||||
cell_setter = function(cell, group)
|
cell_setter = function(cell, group)
|
||||||
@@ -46,7 +46,7 @@ Aux.buy.modes = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title = 'Auction Item',
|
title = 'Auction Item',
|
||||||
width = 282,
|
width = 312,
|
||||||
comparator = function(group1, group2) return Aux.util.compare(group1[1].name, group2[1].name, Aux.util.GT) end,
|
comparator = function(group1, group2) return Aux.util.compare(group1[1].name, group2[1].name, Aux.util.GT) end,
|
||||||
cell_initializer = function(cell)
|
cell_initializer = function(cell)
|
||||||
local icon = CreateFrame('Button', nil, cell)
|
local icon = CreateFrame('Button', nil, cell)
|
||||||
@@ -93,7 +93,7 @@ Aux.buy.modes = {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title = '#',
|
title = 'Qty',
|
||||||
width = 23,
|
width = 23,
|
||||||
comparator = function(group1, group2) return Aux.util.compare(group1[1].stack_size, group2[1].stack_size, Aux.util.LT) end,
|
comparator = function(group1, group2) return Aux.util.compare(group1[1].stack_size, group2[1].stack_size, Aux.util.LT) end,
|
||||||
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
||||||
@@ -152,7 +152,7 @@ Aux.buy.modes = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title = 'Auction Item',
|
title = 'Auction Item',
|
||||||
width = 181,
|
width = 206,
|
||||||
comparator = function(row1, row2) return Aux.util.compare(row1.tooltip[1][1].text, row2.tooltip[1][1].text, Aux.util.GT) end,
|
comparator = function(row1, row2) return Aux.util.compare(row1.tooltip[1][1].text, row2.tooltip[1][1].text, Aux.util.GT) end,
|
||||||
cell_initializer = function(cell)
|
cell_initializer = function(cell)
|
||||||
local icon = CreateFrame('Button', nil, cell)
|
local icon = CreateFrame('Button', nil, cell)
|
||||||
@@ -219,17 +219,17 @@ Aux.buy.modes = {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title = 'High Bidder',
|
title = 'Status',
|
||||||
width = 95,
|
width = 70,
|
||||||
comparator = function(auction1, auction2) return Aux.util.compare(auction1.high_bidder, auction2.high_bidder, Aux.util.GT) end,
|
comparator = function(auction1, auction2) return Aux.util.compare(auction1.status, auction2.status, Aux.util.GT) end,
|
||||||
cell_initializer = Aux.sheet.default_cell_initializer('LEFT'),
|
cell_initializer = Aux.sheet.default_cell_initializer('CENTER'),
|
||||||
cell_setter = function(cell, auction)
|
cell_setter = function(cell, auction)
|
||||||
cell.text:SetText(auction.high_bidder)
|
cell.text:SetText(auction.status)
|
||||||
auction_alpha_setter(cell, auction)
|
auction_alpha_setter(cell, auction)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title = '#',
|
title = 'Qty',
|
||||||
width = 23,
|
width = 23,
|
||||||
comparator = function(row1, row2) return Aux.util.compare(row1.stack_size, row2.stack_size, Aux.util.LT) end,
|
comparator = function(row1, row2) return Aux.util.compare(row1.stack_size, row2.stack_size, Aux.util.LT) end,
|
||||||
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
||||||
@@ -277,7 +277,7 @@ Aux.buy.modes = {
|
|||||||
end,
|
end,
|
||||||
columns = {
|
columns = {
|
||||||
{
|
{
|
||||||
title = '#',
|
title = 'Qty',
|
||||||
width = 23,
|
width = 23,
|
||||||
comparator = function(row1, row2) return Aux.util.compare(row1.stack_size, row2.stack_size, Aux.util.LT) end,
|
comparator = function(row1, row2) return Aux.util.compare(row1.stack_size, row2.stack_size, Aux.util.LT) end,
|
||||||
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
||||||
@@ -469,10 +469,10 @@ function update_sheet()
|
|||||||
|
|
||||||
local mode = UIDropDownMenu_GetSelectedValue(AuxBuyModeDropDown)
|
local mode = UIDropDownMenu_GetSelectedValue(AuxBuyModeDropDown)
|
||||||
if mode == BUYOUT then
|
if mode == BUYOUT then
|
||||||
local buyout_auctions = auctions and Aux.util.filter(auctions, function(auction) return auction.name ~= UnitName('player') and auction.buyout_price end) or {}
|
local buyout_auctions = auctions and Aux.util.filter(auctions, function(auction) return auction.owner ~= UnitName('player') and auction.buyout_price end) or {}
|
||||||
Aux.list.populate(AuxBuyBuyList.sheet, auctions and Aux.util.group_by(buyout_auctions, function(a1, a2) return a1.hyperlink == a2.hyperlink and a1.stack_size == a2.stack_size and a1.buyout_price == a2.buyout_price end) or {})
|
Aux.list.populate(AuxBuyBuyList.sheet, auctions and Aux.util.group_by(buyout_auctions, function(a1, a2) return a1.hyperlink == a2.hyperlink and a1.stack_size == a2.stack_size and a1.buyout_price == a2.buyout_price end) or {})
|
||||||
elseif mode == BID then
|
elseif mode == BID then
|
||||||
local bid_auctions = auctions and Aux.util.filter(auctions, function(auction) return auction.name ~= UnitName('player') end) or {}
|
local bid_auctions = auctions and Aux.util.filter(auctions, function(auction) return auction.owner ~= UnitName('player') end) or {}
|
||||||
Aux.list.populate(AuxBuyBidList.sheet, bid_auctions)
|
Aux.list.populate(AuxBuyBidList.sheet, bid_auctions)
|
||||||
elseif mode == FULL then
|
elseif mode == FULL then
|
||||||
Aux.list.populate(AuxBuyFullList.sheet, auctions or {})
|
Aux.list.populate(AuxBuyFullList.sheet, auctions or {})
|
||||||
@@ -717,6 +717,14 @@ function create_auction_record(auction_item, current_page)
|
|||||||
local bid = (auction_item.current_bid > 0 and auction_item.current_bid or auction_item.min_bid) + auction_item.min_increment
|
local bid = (auction_item.current_bid > 0 and auction_item.current_bid or auction_item.min_bid) + auction_item.min_increment
|
||||||
local buyout_price = auction_item.buyout_price > 0 and auction_item.buyout_price or nil
|
local buyout_price = auction_item.buyout_price > 0 and auction_item.buyout_price or nil
|
||||||
local buyout_price_per_unit = buyout_price and Aux_Round(auction_item.buyout_price/stack_size)
|
local buyout_price_per_unit = buyout_price and Aux_Round(auction_item.buyout_price/stack_size)
|
||||||
|
local status
|
||||||
|
if auction_item.current_bid == 0 then
|
||||||
|
status = 'No Bid'
|
||||||
|
elseif auction_item.high_bidder then
|
||||||
|
status = GREEN_FONT_COLOR_CODE..'Your Bid'..FONT_COLOR_CODE_CLOSE
|
||||||
|
else
|
||||||
|
status = RED_FONT_COLOR_CODE .. 'Other Bidder'..FONT_COLOR_CODE_CLOSE
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
signature = Aux.auction_signature(auction_item.hyperlink, stack_size, bid, auction_item.buyout_price),
|
signature = Aux.auction_signature(auction_item.hyperlink, stack_size, bid, auction_item.buyout_price),
|
||||||
@@ -738,6 +746,7 @@ function create_auction_record(auction_item, current_page)
|
|||||||
duration = auction_item.duration,
|
duration = auction_item.duration,
|
||||||
usable = auction_item.usable,
|
usable = auction_item.usable,
|
||||||
high_bidder = auction_item.high_bidder,
|
high_bidder = auction_item.high_bidder,
|
||||||
|
status = status,
|
||||||
|
|
||||||
EnhTooltip_info = auction_item.EnhTooltip_info,
|
EnhTooltip_info = auction_item.EnhTooltip_info,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ function Aux.log(msg)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Aux_SetupHookFunctions()
|
function Aux_SetupHookFunctions()
|
||||||
|
|
||||||
Aux.orig.AuctionFrameAuctions_OnShow = AuctionFrameAuctions_OnShow
|
Aux.orig.AuctionFrameAuctions_OnShow = AuctionFrameAuctions_OnShow
|
||||||
AuctionFrameAuctions_OnShow = Aux_Sell_AuctionFrameAuctions_OnShow
|
AuctionFrameAuctions_OnShow = Aux_Sell_AuctionFrameAuctions_OnShow
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ function Aux.info.tooltip(setter)
|
|||||||
right.text = getglobal('AuxInfoTooltipTextRight'..i):GetText()
|
right.text = getglobal('AuxInfoTooltipTextRight'..i):GetText()
|
||||||
right.r, right.b, right.g = getglobal('AuxInfoTooltipTextRight'..i):GetTextColor()
|
right.r, right.b, right.g = getglobal('AuxInfoTooltipTextRight'..i):GetTextColor()
|
||||||
|
|
||||||
tinsert(tooltip, {left, right})
|
tinsert(tooltip, {left or '', right or ''})
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 1, TOOLTIP_LENGTH do
|
for i = 1, TOOLTIP_LENGTH do
|
||||||
|
|||||||
@@ -257,8 +257,8 @@ function Aux.list.sort(sheet, column_index)
|
|||||||
if sheet.sort_order[1].column == column then
|
if sheet.sort_order[1].column == column then
|
||||||
sheet.sort_order[1].sort_ascending = not sheet.sort_order[1].sort_ascending
|
sheet.sort_order[1].sort_ascending = not sheet.sort_order[1].sort_ascending
|
||||||
else
|
else
|
||||||
sort_order = Aux.util.filter(sort_order, function(sort_info) return not sort_info.column == column end)
|
sheet.sort_order = Aux.util.filter(sheet.sort_order, function(sort_info) return not sort_info.column == column end)
|
||||||
tinsert(sort_order, 1, {column=column, sort_ascending=true})
|
tinsert(sheet.sort_order, 1, {column=column, sort_ascending=true})
|
||||||
end
|
end
|
||||||
|
|
||||||
Aux.util.merge_sort(sheet.data, Aux.list.row_comparator(sheet))
|
Aux.util.merge_sort(sheet.data, Aux.list.row_comparator(sheet))
|
||||||
|
|||||||
@@ -131,12 +131,12 @@ function submit_query(k)
|
|||||||
state.job.on_submit_query()
|
state.job.on_submit_query()
|
||||||
end
|
end
|
||||||
wait_for_results(function()
|
wait_for_results(function()
|
||||||
wait_for_complete_results(function()
|
--wait_for_complete_results(function()
|
||||||
if state.job.on_page_loaded then
|
if state.job.on_page_loaded then
|
||||||
state.job.on_page_loaded(state.page)
|
state.job.on_page_loaded(state.page)
|
||||||
end
|
end
|
||||||
k()
|
k()
|
||||||
end)end)
|
end)--end)
|
||||||
QueryAuctionItems(
|
QueryAuctionItems(
|
||||||
state.job.query.name,
|
state.job.query.name,
|
||||||
state.job.query.min_level,
|
state.job.query.min_level,
|
||||||
|
|||||||
Reference in New Issue
Block a user