added shift click search for itemlinks
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
AuxVersion = '2.4.19'
|
||||
AuxVersion = '2.4.20'
|
||||
AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)'
|
||||
|
||||
Aux = {
|
||||
@@ -166,7 +166,10 @@ function Aux.setup_hooks()
|
||||
|
||||
Aux.orig.PickupContainerItem = PickupContainerItem
|
||||
PickupContainerItem = Aux.PickupContainerItem
|
||||
|
||||
|
||||
Aux.orig.SetItemRef = SetItemRef
|
||||
SetItemRef = Aux.SetItemRef
|
||||
|
||||
Aux.orig.ContainerFrameItemButton_OnClick = ContainerFrameItemButton_OnClick
|
||||
ContainerFrameItemButton_OnClick = Aux.ContainerFrameItemButton_OnClick
|
||||
|
||||
@@ -216,13 +219,13 @@ function Aux.on_tab_click(index)
|
||||
Aux.auctions_frame.on_close()
|
||||
Aux.bids_frame.on_close()
|
||||
|
||||
AuxFilterSearchFrame:Hide()
|
||||
AuxSearchFrame:Hide()
|
||||
AuxPostFrame:Hide()
|
||||
AuxAuctionsFrame:Hide()
|
||||
AuxBidsFrame:Hide()
|
||||
|
||||
if index == 1 then
|
||||
AuxFilterSearchFrame:Show()
|
||||
AuxSearchFrame:Show()
|
||||
Aux.search_frame.on_open()
|
||||
elseif index == 2 then
|
||||
AuxPostFrame:Show()
|
||||
@@ -270,43 +273,55 @@ do
|
||||
end
|
||||
end
|
||||
|
||||
function Aux.SetItemRef(itemstring)
|
||||
if IsShiftKeyDown() and AuxSearchFrame:IsVisible() then
|
||||
local item_info = Aux.static.item_info(tonumber(({strfind(itemstring, '^item:(%d+)')})[3]))
|
||||
if item_info then
|
||||
Aux.search_frame.set_filter(item_info.name..'/exact')
|
||||
Aux.search_frame.start_search()
|
||||
return
|
||||
end
|
||||
end
|
||||
return Aux.orig.SetItemRef(itemstring)
|
||||
end
|
||||
|
||||
function Aux.ContainerFrameItemButton_OnClick(button)
|
||||
local bag, slot = this:GetParent():GetID(), this:GetID()
|
||||
local item_info = Aux.info.container_item(bag, slot)
|
||||
|
||||
if AuxFrame:IsVisible() and button == "LeftButton" and item_info then
|
||||
if IsAltKeyDown() then
|
||||
if Aux.active_panel ~= 1 then
|
||||
Aux.on_tab_click(1)
|
||||
end
|
||||
|
||||
Aux.control.as_soon_as(function() return Aux.active_panel == 1 end, function()
|
||||
-- if AuxFrame:IsVisible() and button == 'LeftButton' and item_info then
|
||||
-- if IsAltKeyDown() then
|
||||
-- if Aux.active_panel ~= 1 then
|
||||
-- Aux.on_tab_click(1)
|
||||
-- end
|
||||
--
|
||||
-- Aux.control.as_soon_as(function() return Aux.active_panel == 1 end, function()
|
||||
-- AuxItemSearchFrameItemItemInputBox:Hide()
|
||||
-- Aux.item_search_frame.set_item(item_info.item_id)
|
||||
end)
|
||||
|
||||
return
|
||||
end
|
||||
end
|
||||
-- end)
|
||||
--
|
||||
-- return
|
||||
-- end
|
||||
-- end
|
||||
|
||||
return Aux.orig.ContainerFrameItemButton_OnClick(button)
|
||||
end
|
||||
|
||||
function Aux.quality_color(code)
|
||||
if code == 0 then
|
||||
return "ff9d9d9d" -- poor, gray
|
||||
return 'ff9d9d9d' -- poor, gray
|
||||
elseif code == 1 then
|
||||
return "ffffffff" -- common, white
|
||||
return 'ffffffff' -- common, white
|
||||
elseif code == 2 then
|
||||
return "ff1eff00" -- uncommon, green
|
||||
return 'ff1eff00' -- uncommon, green
|
||||
elseif code == 3 then -- rare, blue
|
||||
return "ff0070dd"
|
||||
return 'ff0070dd'
|
||||
elseif code == 4 then
|
||||
return "ffa335ee" -- epic, purple
|
||||
return 'ffa335ee' -- epic, purple
|
||||
elseif code == 5 then
|
||||
return "ffff8000" -- legendary, orange
|
||||
return 'ffff8000' -- legendary, orange
|
||||
elseif code == 6 then
|
||||
return "ffe6cc80" -- artifact, pale gold
|
||||
return 'ffe6cc80' -- artifact, pale gold
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ function public.container_item(bag, slot)
|
||||
return
|
||||
end
|
||||
|
||||
local item_id, suffix_id, unique_id, enchant_id = private.parse_hyperlink(hyperlink)
|
||||
local item_id, suffix_id, unique_id, enchant_id = public.parse_hyperlink(hyperlink)
|
||||
local item_info = public.item(item_id, suffix_id, unique_id, enchant_id)
|
||||
|
||||
local texture, count, locked, quality, readable, lootable = GetContainerItemInfo(bag, slot) -- quality not working?
|
||||
@@ -110,7 +110,7 @@ function public.auction(index, type)
|
||||
return
|
||||
end
|
||||
|
||||
local item_id, suffix_id, unique_id, enchant_id = private.parse_hyperlink(hyperlink)
|
||||
local item_id, suffix_id, unique_id, enchant_id = public.parse_hyperlink(hyperlink)
|
||||
local item_info = public.item(item_id, suffix_id, unique_id, enchant_id)
|
||||
|
||||
local name, texture, count, quality, usable, level, start_price, min_increment, buyout_price, high_bid, high_bidder, owner, sale_status = GetAuctionItemInfo(type, index)
|
||||
@@ -301,11 +301,11 @@ function private.item_charges(tooltip)
|
||||
end
|
||||
|
||||
function public.item_key(hyperlink)
|
||||
local item_id, suffix_id = private.parse_hyperlink(hyperlink)
|
||||
local item_id, suffix_id = public.parse_hyperlink(hyperlink)
|
||||
return item_id..':'..suffix_id
|
||||
end
|
||||
|
||||
function private.parse_hyperlink(hyperlink)
|
||||
function public.parse_hyperlink(hyperlink)
|
||||
local _, _, item_id, enchant_id, suffix_id, unique_id, name = strfind(hyperlink, '|Hitem:(%d+):(%d+):(%d+):(%d+)|h[[]([^]]+)[]]|h')
|
||||
return tonumber(item_id) or 0, tonumber(suffix_id) or 0, tonumber(unique_id) or 0, tonumber(enchant_id) or 0, name
|
||||
end
|
||||
|
||||
+69
-65
@@ -69,26 +69,30 @@ function private.update_tab(tab)
|
||||
private.search_results_button:UnlockHighlight()
|
||||
private.saved_searches_button:UnlockHighlight()
|
||||
private.new_filter_button:UnlockHighlight()
|
||||
AuxFilterSearchFrameResults:Hide()
|
||||
AuxFilterSearchFrameSaved:Hide()
|
||||
AuxFilterSearchFrameFilter:Hide()
|
||||
AuxSearchFrameResults:Hide()
|
||||
AuxSearchFrameSaved:Hide()
|
||||
AuxSearchFrameFilter:Hide()
|
||||
Aux.hide_elements(RESULTS)
|
||||
Aux.hide_elements(private.elements[FILTER])
|
||||
|
||||
if tab == RESULTS then
|
||||
Aux.show_elements(RESULTS)
|
||||
AuxFilterSearchFrameResults:Show()
|
||||
AuxSearchFrameResults:Show()
|
||||
private.search_results_button:LockHighlight()
|
||||
elseif tab == SAVED then
|
||||
AuxFilterSearchFrameSaved:Show()
|
||||
AuxSearchFrameSaved:Show()
|
||||
private.saved_searches_button:LockHighlight()
|
||||
elseif tab == FILTER then
|
||||
AuxFilterSearchFrameFilter:Show()
|
||||
AuxSearchFrameFilter:Show()
|
||||
Aux.show_elements(private.elements[FILTER])
|
||||
private.new_filter_button:LockHighlight()
|
||||
end
|
||||
end
|
||||
|
||||
function public.set_filter(filter_string)
|
||||
private.search_box:SetText(filter_string)
|
||||
end
|
||||
|
||||
function private.add_filter(filter_string)
|
||||
filter_string = filter_string or Aux.scan_util.filter_to_string(private.get_form_filter())
|
||||
local old_filter_string = private.search_box:GetText()
|
||||
@@ -102,16 +106,16 @@ function private.add_filter(filter_string)
|
||||
end
|
||||
|
||||
function private.clear_filter()
|
||||
AuxFilterSearchFrameFilterNameInputBox:SetText('')
|
||||
AuxFilterSearchFrameFilterExactCheckButton:SetChecked(nil)
|
||||
AuxFilterSearchFrameFilterMinLevel:SetText('')
|
||||
AuxFilterSearchFrameFilterMaxLevel:SetText('')
|
||||
AuxSearchFrameFilterNameInputBox:SetText('')
|
||||
AuxSearchFrameFilterExactCheckButton:SetChecked(nil)
|
||||
AuxSearchFrameFilterMinLevel:SetText('')
|
||||
AuxSearchFrameFilterMaxLevel:SetText('')
|
||||
UIDropDownMenu_ClearAll(private.class_dropdown)
|
||||
UIDropDownMenu_ClearAll(private.subclass_dropdown)
|
||||
UIDropDownMenu_ClearAll(private.slot_dropdown)
|
||||
UIDropDownMenu_ClearAll(private.quality_dropdown)
|
||||
AuxFilterSearchFrameFilterUsableCheckButton:SetChecked(nil)
|
||||
AuxFilterSearchFrameFilterDiscardCheckButton:SetChecked(nil)
|
||||
AuxSearchFrameFilterUsableCheckButton:SetChecked(nil)
|
||||
AuxSearchFrameFilterDiscardCheckButton:SetChecked(nil)
|
||||
private.max_buyout_price:SetText('')
|
||||
private.max_percent:SetText('')
|
||||
private.tooltip1:SetText('')
|
||||
@@ -123,7 +127,7 @@ function private.clear_filter()
|
||||
end
|
||||
|
||||
function private.get_form_filter()
|
||||
local exact = AuxFilterSearchFrameFilterExactCheckButton:GetChecked()
|
||||
local exact = AuxSearchFrameFilterExactCheckButton:GetChecked()
|
||||
local max_price = Aux.money.from_string(private.max_buyout_price:GetText())
|
||||
local tooltip = Aux.util.filter({
|
||||
private.tooltip1:GetText(),
|
||||
@@ -143,16 +147,16 @@ function private.get_form_filter()
|
||||
end
|
||||
|
||||
return {
|
||||
name = AuxFilterSearchFrameFilterNameInputBox:GetText(),
|
||||
exact = AuxFilterSearchFrameFilterExactCheckButton:GetChecked(),
|
||||
min_level = not exact and tonumber(AuxFilterSearchFrameFilterMinLevel:GetText()),
|
||||
max_level = not exact and tonumber(AuxFilterSearchFrameFilterMaxLevel:GetText()),
|
||||
name = AuxSearchFrameFilterNameInputBox:GetText(),
|
||||
exact = AuxSearchFrameFilterExactCheckButton:GetChecked(),
|
||||
min_level = not exact and tonumber(AuxSearchFrameFilterMinLevel:GetText()),
|
||||
max_level = not exact and tonumber(AuxSearchFrameFilterMaxLevel:GetText()),
|
||||
class = not exact and UIDropDownMenu_GetSelectedValue(private.class_dropdown) ~= 0 and UIDropDownMenu_GetSelectedValue(private.class_dropdown),
|
||||
subclass = not exact and UIDropDownMenu_GetSelectedValue(private.subclass_dropdown) ~= 0 and UIDropDownMenu_GetSelectedValue(private.subclass_dropdown),
|
||||
slot = not exact and UIDropDownMenu_GetSelectedValue(private.slot_dropdown) ~= 0 and UIDropDownMenu_GetSelectedValue(private.slot_dropdown),
|
||||
quality = not exact and UIDropDownMenu_GetSelectedValue(private.quality_dropdown) ~= 0 and UIDropDownMenu_GetSelectedValue(private.quality_dropdown),
|
||||
usable = not exact and AuxFilterSearchFrameFilterUsableCheckButton:GetChecked(),
|
||||
discard = AuxFilterSearchFrameFilterDiscardCheckButton:GetChecked(),
|
||||
usable = not exact and AuxSearchFrameFilterUsableCheckButton:GetChecked(),
|
||||
discard = AuxSearchFrameFilterDiscardCheckButton:GetChecked(),
|
||||
max_price = max_price > 0 and max_price,
|
||||
max_percent = tonumber(private.max_percent:GetText()),
|
||||
tooltip = getn(tooltip) > 0 and tooltip,
|
||||
@@ -189,12 +193,12 @@ end
|
||||
|
||||
function public.on_load()
|
||||
-- do
|
||||
-- local panel = Aux.gui.panel(AuxFilterSearchFrame, '$parentFilters')
|
||||
-- local panel = Aux.gui.panel(AuxSearchFrame, '$parentFilters')
|
||||
-- panel:SetAllPoints(AuxFrameContent)
|
||||
-- private.elements[FILTER].filters = panel
|
||||
-- end
|
||||
do
|
||||
local btn = Aux.gui.button(AuxFilterSearchFrame, 22)
|
||||
local btn = Aux.gui.button(AuxSearchFrame, 22)
|
||||
btn:SetPoint('TOPRIGHT', -5, -8)
|
||||
btn:SetWidth(60)
|
||||
btn:SetHeight(25)
|
||||
@@ -206,7 +210,7 @@ function public.on_load()
|
||||
private.search_button = btn
|
||||
end
|
||||
do
|
||||
local btn = Aux.gui.button(AuxFilterSearchFrame, 22)
|
||||
local btn = Aux.gui.button(AuxSearchFrame, 22)
|
||||
btn:SetPoint('TOPRIGHT', -5, -8)
|
||||
btn:SetWidth(60)
|
||||
btn:SetHeight(25)
|
||||
@@ -216,7 +220,7 @@ function public.on_load()
|
||||
private.stop_button = btn
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrame)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrame)
|
||||
editbox:SetMaxLetters(nil)
|
||||
editbox:EnableMouse(1)
|
||||
editbox.complete = Aux.completion.complete
|
||||
@@ -253,10 +257,10 @@ function public.on_load()
|
||||
private.search_box = editbox
|
||||
end
|
||||
do
|
||||
Aux.gui.horizontal_line(AuxFilterSearchFrame, -40)
|
||||
Aux.gui.horizontal_line(AuxSearchFrame, -40)
|
||||
end
|
||||
do
|
||||
local btn = Aux.gui.button(AuxFilterSearchFrame, 18)
|
||||
local btn = Aux.gui.button(AuxSearchFrame, 18)
|
||||
btn:SetPoint('BOTTOMLEFT', AuxFrameContent, 'TOPLEFT', 10, 8)
|
||||
btn:SetWidth(243)
|
||||
btn:SetHeight(22)
|
||||
@@ -265,7 +269,7 @@ function public.on_load()
|
||||
private.search_results_button = btn
|
||||
end
|
||||
do
|
||||
local btn = Aux.gui.button(AuxFilterSearchFrame, 18)
|
||||
local btn = Aux.gui.button(AuxSearchFrame, 18)
|
||||
btn:SetPoint('TOPLEFT', private.search_results_button, 'TOPRIGHT', 5, 0)
|
||||
btn:SetWidth(243)
|
||||
btn:SetHeight(22)
|
||||
@@ -274,7 +278,7 @@ function public.on_load()
|
||||
private.saved_searches_button = btn
|
||||
end
|
||||
do
|
||||
local btn = Aux.gui.button(AuxFilterSearchFrame, 18)
|
||||
local btn = Aux.gui.button(AuxSearchFrame, 18)
|
||||
btn:SetPoint('TOPLEFT', private.saved_searches_button, 'TOPRIGHT', 5, 0)
|
||||
btn:SetWidth(243)
|
||||
btn:SetHeight(22)
|
||||
@@ -283,7 +287,7 @@ function public.on_load()
|
||||
private.new_filter_button = btn
|
||||
end
|
||||
do
|
||||
local status_bar = Aux.gui.status_bar(AuxFilterSearchFrame)
|
||||
local status_bar = Aux.gui.status_bar(AuxSearchFrame)
|
||||
status_bar:SetWidth(265)
|
||||
status_bar:SetHeight(25)
|
||||
status_bar:SetPoint('TOPLEFT', AuxFrameContent, 'BOTTOMLEFT', 0, -6)
|
||||
@@ -292,7 +296,7 @@ function public.on_load()
|
||||
private.status_bar = status_bar
|
||||
end
|
||||
do
|
||||
local btn = Aux.gui.button(AuxFilterSearchFrameResults, 16)
|
||||
local btn = Aux.gui.button(AuxSearchFrameResults, 16)
|
||||
btn:SetPoint('TOPLEFT', private.status_bar, 'TOPRIGHT', 5, 0)
|
||||
btn:SetWidth(80)
|
||||
btn:SetHeight(24)
|
||||
@@ -301,7 +305,7 @@ function public.on_load()
|
||||
private.bid_button = btn
|
||||
end
|
||||
do
|
||||
local btn = Aux.gui.button(AuxFilterSearchFrame, 16)
|
||||
local btn = Aux.gui.button(AuxSearchFrame, 16)
|
||||
btn:SetPoint('TOPLEFT', private.bid_button, 'TOPRIGHT', 5, 0)
|
||||
btn:SetWidth(80)
|
||||
btn:SetHeight(24)
|
||||
@@ -310,7 +314,7 @@ function public.on_load()
|
||||
RESULTS.buyout_button = btn
|
||||
end
|
||||
do
|
||||
local btn1 = Aux.gui.button(AuxFilterSearchFrameFilter, 16)
|
||||
local btn1 = Aux.gui.button(AuxSearchFrameFilter, 16)
|
||||
btn1:SetPoint('TOPLEFT', private.status_bar, 'TOPRIGHT', 5, 0)
|
||||
btn1:SetWidth(80)
|
||||
btn1:SetHeight(24)
|
||||
@@ -321,14 +325,14 @@ function public.on_load()
|
||||
public.start_search()
|
||||
end)
|
||||
|
||||
local btn2 = Aux.gui.button(AuxFilterSearchFrameFilter, 16)
|
||||
local btn2 = Aux.gui.button(AuxSearchFrameFilter, 16)
|
||||
btn2:SetPoint('LEFT', btn1, 'RIGHT', 5, 0)
|
||||
btn2:SetWidth(80)
|
||||
btn2:SetHeight(24)
|
||||
btn2:SetText('Add')
|
||||
btn2:SetScript('OnClick', private.add_filter)
|
||||
|
||||
local btn3 = Aux.gui.button(AuxFilterSearchFrameFilter, 16)
|
||||
local btn3 = Aux.gui.button(AuxSearchFrameFilter, 16)
|
||||
btn3:SetPoint('LEFT', btn2, 'RIGHT', 5, 0)
|
||||
btn3:SetWidth(80)
|
||||
btn3:SetHeight(24)
|
||||
@@ -338,12 +342,12 @@ function public.on_load()
|
||||
end)
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter, '$parentNameInputBox')
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter, '$parentNameInputBox')
|
||||
editbox.complete_item = Aux.completion.complete_item
|
||||
editbox:SetPoint('TOPLEFT', 14, -20)
|
||||
editbox:SetWidth(300)
|
||||
editbox:SetScript('OnChar', function()
|
||||
if AuxFilterSearchFrameFilterExactCheckButton:GetChecked() then
|
||||
if AuxSearchFrameFilterExactCheckButton:GetChecked() then
|
||||
this:complete_item()
|
||||
end
|
||||
end)
|
||||
@@ -369,8 +373,8 @@ function public.on_load()
|
||||
label:SetText('Name')
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter, '$parentMinLevel')
|
||||
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterNameInputBox, 'BOTTOMLEFT', 0, -22)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter, '$parentMinLevel')
|
||||
editbox:SetPoint('TOPLEFT', AuxSearchFrameFilterNameInputBox, 'BOTTOMLEFT', 0, -22)
|
||||
editbox:SetWidth(145)
|
||||
editbox:SetNumeric(true)
|
||||
editbox:SetMaxLetters(2)
|
||||
@@ -396,8 +400,8 @@ do
|
||||
label:SetText('Level Range')
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter, '$parentMaxLevel')
|
||||
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterMinLevel, 'TOPRIGHT', 10, 0)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter, '$parentMaxLevel')
|
||||
editbox:SetPoint('TOPLEFT', AuxSearchFrameFilterMinLevel, 'TOPRIGHT', 10, 0)
|
||||
editbox:SetWidth(145)
|
||||
editbox:SetNumeric(true)
|
||||
editbox:SetMaxLetters(2)
|
||||
@@ -423,8 +427,8 @@ do
|
||||
label:SetText('-')
|
||||
end
|
||||
do
|
||||
local dropdown = Aux.gui.dropdown(AuxFilterSearchFrameFilter)
|
||||
dropdown:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterMinLevel, 'BOTTOMLEFT', 0, -22)
|
||||
local dropdown = Aux.gui.dropdown(AuxSearchFrameFilter)
|
||||
dropdown:SetPoint('TOPLEFT', AuxSearchFrameFilterMinLevel, 'BOTTOMLEFT', 0, -22)
|
||||
dropdown:SetWidth(300)
|
||||
dropdown:SetHeight(10)
|
||||
local label = Aux.gui.label(dropdown, 13)
|
||||
@@ -437,7 +441,7 @@ end
|
||||
private.class_dropdown = dropdown
|
||||
end
|
||||
do
|
||||
local dropdown = Aux.gui.dropdown(AuxFilterSearchFrameFilter)
|
||||
local dropdown = Aux.gui.dropdown(AuxSearchFrameFilter)
|
||||
dropdown:SetPoint('TOPLEFT', private.class_dropdown, 'BOTTOMLEFT', 0, -22)
|
||||
dropdown:SetWidth(300)
|
||||
dropdown:SetHeight(10)
|
||||
@@ -451,7 +455,7 @@ end
|
||||
private.subclass_dropdown = dropdown
|
||||
end
|
||||
do
|
||||
local dropdown = Aux.gui.dropdown(AuxFilterSearchFrameFilter)
|
||||
local dropdown = Aux.gui.dropdown(AuxSearchFrameFilter)
|
||||
dropdown:SetPoint('TOPLEFT', private.subclass_dropdown, 'BOTTOMLEFT', 0, -22)
|
||||
dropdown:SetWidth(300)
|
||||
dropdown:SetHeight(10)
|
||||
@@ -465,7 +469,7 @@ end
|
||||
private.slot_dropdown = dropdown
|
||||
end
|
||||
do
|
||||
local dropdown = Aux.gui.dropdown(AuxFilterSearchFrameFilter)
|
||||
local dropdown = Aux.gui.dropdown(AuxSearchFrameFilter)
|
||||
dropdown:SetPoint('TOPLEFT', private.slot_dropdown, 'BOTTOMLEFT', 0, -22)
|
||||
dropdown:SetWidth(300)
|
||||
dropdown:SetHeight(10)
|
||||
@@ -478,25 +482,25 @@ end
|
||||
end)
|
||||
private.quality_dropdown = dropdown
|
||||
end
|
||||
Aux.gui.vertical_line(AuxFilterSearchFrameFilter, 332)
|
||||
Aux.gui.vertical_line(AuxSearchFrameFilter, 332)
|
||||
do
|
||||
local label = Aux.gui.label(AuxFilterSearchFrameFilterExactCheckButton, 13)
|
||||
label:SetPoint('BOTTOMLEFT', AuxFilterSearchFrameFilterExactCheckButton, 'TOPLEFT', 1, -3)
|
||||
local label = Aux.gui.label(AuxSearchFrameFilterExactCheckButton, 13)
|
||||
label:SetPoint('BOTTOMLEFT', AuxSearchFrameFilterExactCheckButton, 'TOPLEFT', 1, -3)
|
||||
label:SetText('Exact')
|
||||
end
|
||||
do
|
||||
local label = Aux.gui.label(AuxFilterSearchFrameFilterDiscardCheckButton, 13)
|
||||
label:SetPoint('BOTTOMLEFT', AuxFilterSearchFrameFilterDiscardCheckButton, 'TOPLEFT', 1, -3)
|
||||
local label = Aux.gui.label(AuxSearchFrameFilterDiscardCheckButton, 13)
|
||||
label:SetPoint('BOTTOMLEFT', AuxSearchFrameFilterDiscardCheckButton, 'TOPLEFT', 1, -3)
|
||||
label:SetText('Discard')
|
||||
end
|
||||
do
|
||||
local label = Aux.gui.label(AuxFilterSearchFrameFilterUsableCheckButton, 13)
|
||||
label:SetPoint('BOTTOMLEFT', AuxFilterSearchFrameFilterUsableCheckButton, 'TOPLEFT', 1, -3)
|
||||
local label = Aux.gui.label(AuxSearchFrameFilterUsableCheckButton, 13)
|
||||
label:SetPoint('BOTTOMLEFT', AuxSearchFrameFilterUsableCheckButton, 'TOPLEFT', 1, -3)
|
||||
label:SetText('Usable')
|
||||
end
|
||||
Aux.gui.vertical_line(AuxFilterSearchFrameFilter, 425)
|
||||
Aux.gui.vertical_line(AuxSearchFrameFilter, 425)
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter)
|
||||
editbox:SetPoint('TOPRIGHT', -14, -20)
|
||||
editbox:SetWidth(300)
|
||||
editbox:SetScript('OnTabPressed', function()
|
||||
@@ -524,7 +528,7 @@ end
|
||||
private.max_buyout_price = editbox
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter)
|
||||
editbox:SetNumeric(true)
|
||||
editbox:SetPoint('TOPLEFT', private.max_buyout_price , 'BOTTOMLEFT', 0, -22)
|
||||
editbox:SetWidth(300)
|
||||
@@ -551,7 +555,7 @@ end
|
||||
private.max_percent = editbox
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter)
|
||||
editbox:SetPoint('TOPLEFT', private.max_percent , 'BOTTOMLEFT', 0, -35)
|
||||
editbox:SetWidth(300)
|
||||
editbox:SetScript('OnTabPressed', function()
|
||||
@@ -577,7 +581,7 @@ end
|
||||
private.tooltip1 = editbox
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter)
|
||||
editbox:SetPoint('TOPLEFT', private.tooltip1 , 'BOTTOMLEFT', 0, -3)
|
||||
editbox:SetWidth(300)
|
||||
editbox:SetScript('OnTabPressed', function()
|
||||
@@ -600,7 +604,7 @@ end
|
||||
private.tooltip2 = editbox
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter)
|
||||
editbox:SetPoint('TOPLEFT', private.tooltip2 , 'BOTTOMLEFT', 0, -3)
|
||||
editbox:SetWidth(300)
|
||||
editbox:SetScript('OnTabPressed', function()
|
||||
@@ -623,7 +627,7 @@ end
|
||||
private.tooltip3 = editbox
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter)
|
||||
editbox:SetPoint('TOPLEFT', private.tooltip3 , 'BOTTOMLEFT', 0, -3)
|
||||
editbox:SetWidth(300)
|
||||
editbox:SetScript('OnTabPressed', function()
|
||||
@@ -646,7 +650,7 @@ end
|
||||
private.tooltip4 = editbox
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter)
|
||||
editbox:SetPoint('TOPLEFT', private.tooltip4 , 'BOTTOMLEFT', 0, -3)
|
||||
editbox:SetWidth(300)
|
||||
editbox:SetScript('OnTabPressed', function()
|
||||
@@ -669,7 +673,7 @@ end
|
||||
private.tooltip5 = editbox
|
||||
end
|
||||
do
|
||||
local editbox = Aux.gui.editbox(AuxFilterSearchFrameFilter)
|
||||
local editbox = Aux.gui.editbox(AuxSearchFrameFilter)
|
||||
editbox:SetPoint('TOPLEFT', private.tooltip5 , 'BOTTOMLEFT', 0, -3)
|
||||
editbox:SetWidth(300)
|
||||
editbox:SetScript('OnTabPressed', function()
|
||||
@@ -692,7 +696,7 @@ end
|
||||
private.tooltip6 = editbox
|
||||
end
|
||||
|
||||
private.results_listing = Aux.auction_listing.CreateAuctionResultsTable(AuxFilterSearchFrameResults)
|
||||
private.results_listing = Aux.auction_listing.CreateAuctionResultsTable(AuxSearchFrameResults)
|
||||
private.results_listing:Show()
|
||||
private.results_listing:SetSort(9)
|
||||
private.results_listing:Clear()
|
||||
@@ -755,16 +759,16 @@ end
|
||||
end
|
||||
}
|
||||
|
||||
private.recent_searches_listing = Aux.listing.CreateScrollingTable(AuxFilterSearchFrameSavedRecent)
|
||||
private.recent_searches_listing = Aux.listing.CreateScrollingTable(AuxSearchFrameSavedRecent)
|
||||
private.recent_searches_listing:DisableSelection(true)
|
||||
private.recent_searches_listing:SetColInfo({{name='Recent Searches', width=1}})
|
||||
private.recent_searches_listing:SetHandler('OnClick', handlers.OnClick)
|
||||
private.recent_searches_listing:SetHandler('OnEnter', handlers.OnEnter)
|
||||
private.recent_searches_listing:SetHandler('OnLeave', handlers.OnLeave)
|
||||
|
||||
Aux.gui.vertical_line(AuxFilterSearchFrameSaved, 379)
|
||||
Aux.gui.vertical_line(AuxSearchFrameSaved, 379)
|
||||
|
||||
private.favorite_searches_listing = Aux.listing.CreateScrollingTable(AuxFilterSearchFrameSavedFavorite)
|
||||
private.favorite_searches_listing = Aux.listing.CreateScrollingTable(AuxSearchFrameSavedFavorite)
|
||||
private.favorite_searches_listing:DisableSelection(true)
|
||||
private.favorite_searches_listing:SetColInfo({{name='Favorite Searches', width=1}})
|
||||
private.favorite_searches_listing:SetHandler('OnClick', handlers.OnClick)
|
||||
@@ -925,7 +929,7 @@ do
|
||||
end
|
||||
|
||||
function public.on_update()
|
||||
if not AuxFilterSearchFrame:IsVisible() then
|
||||
if not AuxSearchFrame:IsVisible() then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
</Scripts>
|
||||
</Frame>
|
||||
|
||||
<Frame name="AuxFilterSearchFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
|
||||
<Frame name="AuxSearchFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
|
||||
<Frames>
|
||||
<Frame name="$parentFilter" inherits="AuxFrameBoxTemplate">
|
||||
<Anchors>
|
||||
|
||||
Reference in New Issue
Block a user