finalized the searchframe header

This commit is contained in:
Manuel Simon Hirsig
2016-02-01 13:21:27 +01:00
parent f6f099eda4
commit c5130a6d97
9 changed files with 64 additions and 210 deletions
-1
View File
@@ -193,7 +193,6 @@ function private.update_listing()
AuxAuctionsFrameListingAuctionListing:Show()
Aux.sheet.populate(private.listing, auction_records)
AuxAuctionsFrameListing:SetWidth(AuxAuctionsFrameListingAuctionListing:GetWidth() + 40)
AuxFrame:SetWidth(AuxAuctionsFrameListing:GetWidth() + 15)
end
function private.create_auction_record(auction_info)
-1
View File
@@ -208,7 +208,6 @@ function private.update_listing()
AuxBidsFrameListingBidListing:Show()
Aux.sheet.populate(private.listing, bid_records)
AuxBidsFrameListing:SetWidth(AuxBidsFrameListingBidListing:GetWidth() + 40)
AuxFrame:SetWidth(AuxBidsFrameListing:GetWidth() + 15)
end
function private.create_auction_record(auction_info)
+1 -1
View File
@@ -1,4 +1,4 @@
AuxVersion = '2.3.4'
AuxVersion = '2.4.0'
AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)'
local lastRightClickAction = GetTime()
-41
View File
@@ -79,47 +79,6 @@
<!--</Scripts>-->
</Frame>
<EditBox name="AuxInputBoxTemplate" autoFocus="false" inherits="InputBoxTemplate" virtual="true">
<Size><AbsDimension x="119" y="22"/></Size>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentLabel" inherits="GameFontNormalSmall" justifyH="LEFT">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="-3" y="9"/></Offset></Anchor></Anchors>
</FontString>
</Layer>
</Layers>
</EditBox>
<Slider name="AuxSliderTemplate" orientation="HORIZONTAL" enableMouse="true" virtual="true">
<Size><AbsDimension x="150" y="17"/></Size>
<HitRectInsets>
<AbsInset left="0" right="0" top="-10" bottom="-10"/>
</HitRectInsets>
<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
<EdgeSize>
<AbsValue val="8"/>
</EdgeSize>
<TileSize>
<AbsValue val="8"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="3" right="3" top="6" bottom="6"/>
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentText" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"><Offset><AbsDimension x="3" y="0"/></Offset></Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
<Size><AbsDimension x="32" y="32"/></Size>
</ThumbTexture>
</Slider>
<Frame name="AuxItemTemplate" virtual="true">
<Size><AbsDimension x="193" y="37"/></Size>
<Layers>
+51 -73
View File
@@ -48,9 +48,11 @@ function private.update_tab(tab)
private.new_filter_button:UnlockHighlight()
AuxFilterSearchFrameResults:Hide()
AuxFilterSearchFrameSaved:Hide()
Aux.hide_elements(RESULTS)
Aux.hide_elements(private.elements[FILTER])
if tab == RESULTS then
Aux.show_elements(RESULTS)
AuxFilterSearchFrameResults:Show()
private.search_results_button:LockHighlight()
elseif tab == SAVED then
@@ -79,27 +81,27 @@ end
function private.get_form_filter()
return {
name = AuxFilterSearchFrameFiltersNameInputBox:GetText(),
min_level = tonumber(AuxFilterSearchFrameFiltersMinLevel:GetText()),
max_level = tonumber(AuxFilterSearchFrameFiltersMaxLevel:GetText()),
name = AuxFilterSearchFrameFilterNameInputBox:GetText(),
min_level = tonumber(AuxFilterSearchFrameFilterMinLevel:GetText()),
max_level = tonumber(AuxFilterSearchFrameFilterMaxLevel:GetText()),
class = UIDropDownMenu_GetSelectedValue(private.class_dropdown),
subclass = UIDropDownMenu_GetSelectedValue(private.subclass_dropdown),
slot = UIDropDownMenu_GetSelectedValue(private.slot_dropdown),
quality = UIDropDownMenu_GetSelectedValue(private.quality_dropdown),
usable = AuxFilterSearchFrameFiltersUsableCheckButton:GetChecked(),
exact = AuxFilterSearchFrameFiltersExactCheckButton:GetChecked(),
usable = AuxFilterSearchFrameFilterUsableCheckButton:GetChecked(),
exact = AuxFilterSearchFrameFilterExactCheckButton:GetChecked(),
}
end
function private.select_auction(entry)
selected_auction = entry
private.buyout_button:Disable()
RESULTS.buyout_button:Disable()
private.bid_button:Disable()
end
function private.clear_selection(entry)
selected_auction = nil
private.buyout_button:Disable()
RESULTS.buyout_button:Disable()
private.bid_button:Disable()
end
@@ -109,20 +111,17 @@ end
function public.on_open()
private.update_search_listings()
-- AuxFrame:SetWidth(991)
end
function public.on_load()
do
local panel = Aux.gui.panel(AuxFilterSearchFrame, '$parentFilters')
panel:SetWidth(600)
panel:SetHeight(290)
panel:SetPoint('TOPLEFT', 5, -70)
panel:SetAllPoints(AuxFrameContent)
private.elements[FILTER].filters = panel
end
do
local btn = Aux.gui.button(AuxFilterSearchFrame, 22)
btn:SetPoint('TOPRIGHT', -5, -6)
btn:SetPoint('TOPRIGHT', -5, -8)
btn:SetWidth(60)
btn:SetHeight(25)
btn:SetText('Search')
@@ -131,7 +130,7 @@ function public.on_load()
end
do
local btn = Aux.gui.button(AuxFilterSearchFrame, 22)
btn:SetPoint('TOPRIGHT', -5, -6)
btn:SetPoint('TOPRIGHT', -5, -8)
btn:SetWidth(60)
btn:SetHeight(25)
btn:SetText('Stop')
@@ -143,7 +142,7 @@ function public.on_load()
local editbox = Aux.gui.editbox(AuxFilterSearchFrame)
editbox:EnableMouse(1)
editbox.complete = Aux.test.complete
editbox:SetPoint('TOPLEFT', 5, -6)
editbox:SetPoint('TOPLEFT', 5, -8)
editbox:SetPoint('RIGHT', private.search_button, 'LEFT', -4, 0)
editbox:SetWidth(400)
editbox:SetHeight(25)
@@ -175,12 +174,12 @@ function public.on_load()
private.search_box = editbox
end
do
Aux.gui.horizontal_line(AuxFilterSearchFrame, -37)
Aux.gui.horizontal_line(AuxFilterSearchFrame, -40)
end
do
local btn = Aux.gui.button(AuxFilterSearchFrame, 18)
btn:SetPoint('TOPLEFT', 10, -49)
btn:SetWidth(246)
btn:SetPoint('BOTTOMLEFT', AuxFrameContent, 'TOPLEFT', 10, 8)
btn:SetWidth(243)
btn:SetHeight(22)
btn:SetText('Search Results')
btn:SetScript('OnClick', function() private.update_tab(RESULTS) end)
@@ -189,7 +188,7 @@ function public.on_load()
do
local btn = Aux.gui.button(AuxFilterSearchFrame, 18)
btn:SetPoint('TOPLEFT', private.search_results_button, 'TOPRIGHT', 5, 0)
btn:SetWidth(246)
btn:SetWidth(243)
btn:SetHeight(22)
btn:SetText('Saved Searches')
btn:SetScript('OnClick', function() private.update_tab(SAVED) end)
@@ -198,7 +197,7 @@ function public.on_load()
do
local btn = Aux.gui.button(AuxFilterSearchFrame, 18)
btn:SetPoint('TOPLEFT', private.saved_searches_button, 'TOPRIGHT', 5, 0)
btn:SetWidth(246)
btn:SetWidth(243)
btn:SetHeight(22)
btn:SetText('New Filter')
btn:SetScript('OnClick', function() private.update_tab(FILTER) end)
@@ -248,11 +247,11 @@ function public.on_load()
btn:SetHeight(24)
btn:SetText('Buyout')
btn:Disable()
private.buyout_button = btn
RESULTS.buyout_button = btn
end
do
local btn = Aux.gui.button(AuxFilterSearchFrame, 16)
btn:SetPoint('TOPLEFT', private.buyout_button, 'TOPRIGHT', 5, 0)
local btn = Aux.gui.button(AuxFilterSearchFrameResults, 16)
btn:SetPoint('TOPLEFT', RESULTS.buyout_button, 'TOPRIGHT', 5, 0)
btn:SetWidth(80)
btn:SetHeight(24)
btn:SetText('Bid')
@@ -386,8 +385,8 @@ function public.on_load()
label:SetText('-')
end
do
local label = Aux.gui.label(AuxFilterSearchFrameFiltersUsableCheckButton, 13)
label:SetPoint('BOTTOMLEFT', AuxFilterSearchFrameFiltersUsableCheckButton, 'TOPLEFT', 1, -3)
local label = Aux.gui.label(AuxFilterSearchFrameFilterUsableCheckButton, 13)
label:SetPoint('BOTTOMLEFT', AuxFilterSearchFrameFilterUsableCheckButton, 'TOPLEFT', 1, -3)
label:SetText('Usable')
end
@@ -416,7 +415,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox2')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox1 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox1 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -435,7 +434,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox3')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox2 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox2 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -454,7 +453,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox4')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox3 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox3 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -497,7 +496,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox2')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox1 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox1 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -516,7 +515,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox3')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox2 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox2 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -535,7 +534,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox4')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox3 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox3 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -578,7 +577,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox2')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox1 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox1 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -597,7 +596,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox3')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox2 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox2 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -616,7 +615,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox4')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox3 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox3 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -659,7 +658,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox2')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox1 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox1 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -678,7 +677,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox3')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox2 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox2 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -697,7 +696,7 @@ function public.on_load()
end
do
local editbox = Aux.gui.editbox(private.elements[FILTER].filters, '$parentTooltipInputBox4')
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFiltersTooltipInputBox3 , 'BOTTOMLEFT', 0, -3)
editbox:SetPoint('TOPLEFT', AuxFilterSearchFrameFilterTooltipInputBox3 , 'BOTTOMLEFT', 0, -3)
editbox:SetWidth(250)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
@@ -714,34 +713,6 @@ function public.on_load()
this:ClearFocus()
end)
end
-- TODO replace with real gui dropdown
-- CreateFrame('Frame', '$parentCategoryDropDown', AuxFilterSearchFrameFilters, 'UIDropDownMenuTemplate')
-- local dropdown = CreateFrame('Frame', '$parentQualityDropDown', AuxFilterSearchFrameFilters, 'UIDropDownMenuTemplate')
-- for _, dropdown in ipairs({AuxFilterSearchFrameFiltersCategoryDropDown, AuxFilterSearchFrameFiltersQualityDropDown}) do
-- dropdown:SetWidth(250)
-- dropdown:SetHeight(10)
-- dropdown:SetBackdrop({bgFile='Interface\\Buttons\\WHITE8X8', edgeFile='Interface\\Buttons\\WHITE8X8', edgeSize=Aux.gui.config.edge_size, insets={top=5,bottom=5}})
-- dropdown:SetBackdropColor(unpack(Aux.gui.config.content_color))
-- dropdown:SetBackdropBorderColor(unpack(Aux.gui.config.content_border_color))
-- local left = getglobal(dropdown:GetName()..'Left'):Hide()
-- local middle = getglobal(dropdown:GetName()..'Middle'):Hide()
-- local right = getglobal(dropdown:GetName()..'Right'):Hide()
--
-- local button = getglobal(dropdown:GetName()..'Button')
---- button:RegisterForClicks('AnyUp')
-- button:ClearAllPoints()
-- button:SetPoint('RIGHT', dropdown, 0, 0)
--
-- local text = getglobal(dropdown:GetName()..'Text')
-- text:ClearAllPoints()
-- text:SetPoint('RIGHT', button, 'LEFT', -2, 0)
-- text:SetPoint('LEFT', dropdown, 'LEFT', 8, 0)
-- text:SetFont(Aux.gui.config.content_font, 13)
-- text:SetShadowColor(0, 0, 0, 0)
-- end
private.update_tab(SAVED)
private.testlisting = CreateAuctionResultsTable(AuxFilterSearchFrameResults)
private.testlisting:Show()
@@ -817,10 +788,15 @@ function public.on_load()
private.recent_searches_listing:SetHandler('OnClick', handlers.OnClick)
private.recent_searches_listing:SetHandler('OnEnter', handlers.OnEnter)
Aux.gui.vertical_line(AuxFilterSearchFrameSaved, 379)
private.favorite_searches_listing = CreateScrollingTable(AuxFilterSearchFrameSavedFavorite)
private.favorite_searches_listing:SetColInfo({{name='Favorite Searches', width=1}})
private.favorite_searches_listing:SetHandler('OnClick', handlers.OnClick)
private.favorite_searches_listing:SetHandler('OnEnter', handlers.OnEnter)
private.update_tab(SAVED)
end
function public.stop_search()
@@ -831,13 +807,13 @@ function public.start_search()
Aux.scan.abort(function()
local tooltip_patterns = {}
for i=1,4 do
local tooltip_pattern = getglobal('AuxFilterSearchFrameFiltersTooltipInputBox'..i):GetText()
if tooltip_pattern ~= '' then
tinsert(tooltip_patterns, tooltip_pattern)
end
end
-- local tooltip_patterns = {}
-- for i=1,4 do
-- local tooltip_pattern = getglobal('AuxFilterSearchFrameFilterTooltipInputBox'..i):GetText()
-- if tooltip_pattern ~= '' then
-- tinsert(tooltip_patterns, tooltip_pattern)
-- end
-- end
local queries
@@ -891,6 +867,7 @@ function public.start_search()
tinsert(scanned_records, auction_info)
end,
on_complete = function()
private.testlisting:SetDatabase()
private.status_bar:update_status(100, 100)
private.status_bar:set_text('Done Scanning')
@@ -898,6 +875,7 @@ function public.start_search()
private.search_button:Show()
end,
on_abort = function()
private.testlisting:SetDatabase()
private.status_bar:update_status(100, 100)
private.status_bar:set_text('Done Scanning')
private.stop_button:Hide()
@@ -947,13 +925,13 @@ function private.process_request(entry, express_mode, buyout_mode)
end
if entry.buyout_price then
private.buyout_button:SetScript('OnClick', function()
RESULTS.buyout_button:SetScript('OnClick', function()
if test(index) and not entry.gone then
Aux.place_bid('list', index, entry.buyout_price, remove_entry)
end
private.clear_selection()
end)
private.buyout_button:Enable()
RESULTS.buyout_button:Enable()
end
end)
end
+7 -6
View File
@@ -4,10 +4,11 @@
<Frame name="AuxFilterSearchFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
<Frames>
<Frame name="$parentFilters">
<Size><AbsDimension x="600" y="290"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="5" y="-70"/></Offset></Anchor></Anchors>
<Frames>
<Frame name="$parentFilter">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="AuxFrameContent"></Anchor>
<Anchor point="BOTTOMRIGHT" relativeTo="AuxFrameContent"></Anchor>
</Anchors> <Frames>
<CheckButton name="$parentUsableCheckButton" inherits="UICheckButtonTemplate" hidden="true">
<Size><AbsDimension x="22" y="22"/></Size>
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="87" y="-136" /></Offset></Anchor></Anchors>
@@ -40,14 +41,14 @@
</Anchors>
<Frames>
<Frame name="$parentFavorite" inherits="AuxFrameBoxTemplate">
<Size><AbsDimension x="370" y="270"/></Size>
<Size><AbsDimension x="373" y="270"/></Size>
<Anchors>
<Anchor point="TOPLEFT"><Offset><AbsDimension x="4" y="-4"/></Offset></Anchor>
<Anchor point="BOTTOMLEFT"><Offset><AbsDimension x="4" y="4"/></Offset></Anchor>
</Anchors>
</Frame>
<Frame name="$parentRecent" inherits="AuxFrameBoxTemplate">
<Size><AbsDimension x="370" y="270"/></Size>
<Size><AbsDimension x="373" y="270"/></Size>
<Anchors>
<Anchor point="TOPRIGHT"><Offset><AbsDimension x="-4" y="-4"/></Offset></Anchor>
<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-4" y="4"/></Offset></Anchor>
+5 -4
View File
@@ -206,6 +206,7 @@ local methods = {
st.sizes.headHeight = 0
end
st.sizes.numRows = max(floor((st:GetParent():GetHeight() - st.sizes.headHeight - ST_HEAD_SPACE) / ST_ROW_HEIGHT), 0)
snipe.log(st.sizes.numRows)
-- update the frame
st.scrollBar:ClearAllPoints()
@@ -236,7 +237,7 @@ local methods = {
for colNum, col in ipairs(st.headCols) do
if st.colInfo[colNum] then
col:Show()
col:SetWidth(st.colInfo[colNum].width*width)
col:SetWidth(st.colInfo[colNum].width * width)
col:SetHeight(st.sizes.headHeight)
col:SetText(st.colInfo[colNum].name or "")
col.text:SetJustifyH(st.colInfo[colNum].headAlign or 'CENTER')
@@ -264,7 +265,7 @@ local methods = {
for colNum, col in ipairs(row.cols) do
if st.headCols[colNum] and st.colInfo[colNum] then
col:Show()
col:SetWidth(st.colInfo[colNum].width*width)
col:SetWidth(st.colInfo[colNum].width * width)
col.text:SetJustifyH(st.colInfo[colNum].align or 'LEFT')
else
col:Hide()
@@ -396,7 +397,7 @@ function CreateScrollingTable(parent)
ST_COUNT = ST_COUNT + 1
local st = CreateFrame('Frame', 'TSMScrollingTable'..ST_COUNT, parent)
st:SetAllPoints()
st:SetScript('OnSizeChanged', function() st:Redraw() end)
-- st:SetScript('OnSizeChanged', function() st:Redraw() end)
local contentFrame = CreateFrame('Frame', nil, st)
contentFrame:SetPoint('TOPLEFT', 0, 0)
@@ -412,7 +413,7 @@ function CreateScrollingTable(parent)
st.scrollFrame = scrollFrame
-- make the scroll bar consistent with the TSM theme
local scrollBar = _G[scrollFrame:GetName()..'ScrollBar']
local scrollBar = getglobal(scrollFrame:GetName()..'ScrollBar')
scrollBar:SetWidth(12)
st.scrollBar = scrollBar
local thumbTex = scrollBar:GetThumbTexture()
-1
View File
@@ -342,7 +342,6 @@ function public.on_open()
private.deposit:SetText('Deposit: '..Aux.money.to_string(0))
AuxSellInventory:SetWidth(AuxSellInventoryListing:GetWidth() + 40)
AuxSellAuctions:SetWidth(AuxSellAuctionsListing:GetWidth() + 40)
AuxFrame:SetWidth(AuxSellInventory:GetWidth() + AuxSellParameters:GetWidth() + AuxSellAuctions:GetWidth() + 15)
-- UIDropDownMenu_SetSelectedValue(AuxSellParametersStrategyDropDown, LIVE)
private.set_auction_duration(AUX_AUCTION_DURATION)
-82
View File
@@ -35,66 +35,6 @@
<Frame name="$parentItem" inherits="AuxItemTemplate">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="10" y="-10"/></Offset></Anchor></Anchors>
</Frame>
<!--<EditBox name="AuxSellStackSize" letters="3" numeric="true" autoFocus="false" inherits="InputBoxTemplate">-->
<!--<Size><AbsDimension x="30" y="16"/></Size>-->
<!--<Anchors><Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxSellStackSizeSlider"><Offset><AbsDimension x="10" y="0"/></Offset></Anchor></Anchors>-->
<!--<Scripts>-->
<!--<OnTextChanged>-->
<!--if AuxSellStackSizeSlider.charge_classes then-->
<!--local charge_slider_value = Aux.util.index_of(this:GetNumber(), AuxSellStackSizeSlider.charge_classes)-->
<!--if charge_slider_value then-->
<!--AuxSellStackSizeSlider:SetValue(charge_slider_value)-->
<!--end-->
<!--else-->
<!--AuxSellStackSizeSlider:SetValue(this:GetNumber())-->
<!--end-->
<!--Aux.post_frame.quantity_update()-->
<!--</OnTextChanged>-->
<!--<OnTabPressed>-->
<!--&lt;!&ndash; if (IsShiftKeyDown()) then-->
<!--getglobal(this:GetParent():GetName().."BuyoutPriceCopper"):SetFocus();-->
<!--else-->
<!--getglobal(this:GetParent():GetName().."StackCount"):SetFocus();-->
<!--end &ndash;&gt;-->
<!--</OnTabPressed>-->
<!--<OnEditFocusLost>-->
<!--this:HighlightText(0, 0)-->
<!--</OnEditFocusLost>-->
<!--<OnEditFocusGained>-->
<!--this:HighlightText()-->
<!--</OnEditFocusGained>-->
<!--</Scripts>-->
<!--</EditBox>-->
<!--<EditBox name="AuxSellStackCount" numeric="true" autoFocus="false" inherits="InputBoxTemplate">-->
<!--<Size><AbsDimension x="30" y="16"/></Size>-->
<!--<Anchors><Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxSellStackCountSlider"><Offset><AbsDimension x="10" y="0"/></Offset></Anchor></Anchors>-->
<!--<Scripts>-->
<!--<OnTextChanged>-->
<!--if AuxSellStackCountSlider.charge_classes then-->
<!--local index = Aux.util.index_of(this:GetNumber(), AuxSellStackCountSlider.charge_classes)-->
<!--if index then-->
<!--AuxSellStackCountSlider:SetValue(index)-->
<!--end-->
<!--else-->
<!--AuxSellStackCountSlider:SetValue(this:GetNumber())-->
<!--end-->
<!--Aux.post_frame.quantity_update()-->
<!--</OnTextChanged>-->
<!--<OnTabPressed>-->
<!--&lt;!&ndash; if (IsShiftKeyDown()) then-->
<!--getglobal(this:GetParent():GetName().."StackSize"):SetFocus();-->
<!--else-->
<!--getglobal(this:GetParent():GetName().."StartPriceGold"):SetFocus();-->
<!--end &ndash;&gt;-->
<!--</OnTabPressed>-->
<!--<OnEditFocusLost>-->
<!--this:HighlightText(0, 0)-->
<!--</OnEditFocusLost>-->
<!--<OnEditFocusGained>-->
<!--this:HighlightText()-->
<!--</OnEditFocusGained>-->
<!--</Scripts>-->
<!--</EditBox>-->
<CheckButton name="$parentShortDurationRadio" inherits="AuxRadioButtonTemplate">
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="14" y="-170"/></Offset></Anchor></Anchors>
<Scripts>
@@ -128,28 +68,6 @@
</OnClick>
</Scripts>
</CheckButton>
<!--<Frame name="$parentStrategyDropDown" inherits="UIDropDownMenuTemplate">-->
<!--<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="-11" y="-180" /></Offset></Anchor></Anchors>-->
<!--<Layers>-->
<!--<Layer level="BACKGROUND">-->
<!--<FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Suggestion Based On">-->
<!--<Anchors><Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"><Offset><AbsDimension x="21" y="0"/></Offset></Anchor></Anchors>-->
<!--</FontString>-->
<!--<FontString name="$parentStaleWarning" inherits="GameFontRedSmall">-->
<!--<Anchors><Anchor point="LEFT" relativePoint="RIGHT"><Offset><AbsDimension x="-6" y="3"/></Offset></Anchor></Anchors>-->
<!--</FontString>-->
<!--</Layer>-->
<!--</Layers>-->
<!--<Scripts>-->
<!--<OnLoad>-->
<!--UIDropDownMenu_SetWidth(100)-->
<!--UIDropDownMenu_Initialize(this, Aux.post_frame.initialize_strategy_dropdown)-->
<!--</OnLoad>-->
<!--<OnShow>-->
<!--UIDropDownMenu_Initialize(this, Aux.post_frame.initialize_strategy_dropdown)-->
<!--</OnShow>-->
<!--</Scripts>-->
<!--</Frame>-->
</frames>
</frame>
<Frame name="AuxSellAuctions" inherits="AuxFrameBoxTemplate">