plain tables
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
AuxVersion = '2.2.23'
|
AuxVersion = '2.3.0'
|
||||||
AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)'
|
AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)'
|
||||||
|
|
||||||
local lastRightClickAction = GetTime()
|
local lastRightClickAction = GetTime()
|
||||||
@@ -59,14 +59,32 @@ function Aux_OnLoad()
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
local tab_group = Aux.gui.tab_group(AuxFrame, 'BOTTOM')
|
do
|
||||||
tab_group:create_tab('Item Search')
|
local tab_group = Aux.gui.tab_group(AuxFrame, 'BOTTOM')
|
||||||
tab_group:create_tab('Filter Search')
|
tab_group:create_tab('Item Search')
|
||||||
tab_group:create_tab('Post')
|
tab_group:create_tab('Filter Search')
|
||||||
tab_group:create_tab('Auctions')
|
tab_group:create_tab('Post')
|
||||||
tab_group:create_tab('Bids')
|
tab_group:create_tab('Auctions')
|
||||||
tab_group.on_select = Aux.on_tab_click
|
tab_group:create_tab('Bids')
|
||||||
tab_group:set_tab(1)
|
tab_group.on_select = Aux.on_tab_click
|
||||||
|
tab_group:set_tab(1)
|
||||||
|
end
|
||||||
|
do
|
||||||
|
local btn = Aux.gui.button(AuxFrame, 12)
|
||||||
|
btn:SetPoint('RIGHT', AuxCloseButton, 'LEFT')
|
||||||
|
btn:SetWidth(60)
|
||||||
|
btn:SetHeight(17)
|
||||||
|
btn:SetText('Default UI')
|
||||||
|
btn:SetScript('OnClick',function()
|
||||||
|
if AuctionFrame:IsVisible() then
|
||||||
|
Aux.blizzard_ui_shown = false
|
||||||
|
HideUIPanel(AuctionFrame)
|
||||||
|
else
|
||||||
|
Aux.blizzard_ui_shown = true
|
||||||
|
ShowUIPanel(AuctionFrame)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
Aux.item_search_frame.on_load()
|
Aux.item_search_frame.on_load()
|
||||||
Aux.filter_search_frame.on_load()
|
Aux.filter_search_frame.on_load()
|
||||||
|
|||||||
@@ -380,25 +380,25 @@
|
|||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Button>
|
</Button>
|
||||||
<Button name="AuxAuctionFrameButton" inherits="UIPanelButtonTemplate" text="Default UI">
|
<!--<Button name="AuxAuctionFrameButton" inherits="UIPanelButtonTemplate" text="Default UI">-->
|
||||||
<Size><AbsDimension x="65" y="17"/></Size>
|
<!--<Size><AbsDimension x="65" y="17"/></Size>-->
|
||||||
<Anchors><Anchor point="RIGHT" relativePoint="LEFT" relativeTo="AuxCloseButton"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
<!--<Anchors><Anchor point="RIGHT" relativePoint="LEFT" relativeTo="AuxCloseButton"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>-->
|
||||||
<Scripts>
|
<!--<Scripts>-->
|
||||||
<OnLoad>
|
<!--<OnLoad>-->
|
||||||
this:SetTextFontObject('GameFontNormalSmall')
|
<!--this:SetTextFontObject('GameFontNormalSmall')-->
|
||||||
this:SetHighlightFontObject('GameFontHighlightSmall')
|
<!--this:SetHighlightFontObject('GameFontHighlightSmall')-->
|
||||||
</OnLoad>
|
<!--</OnLoad>-->
|
||||||
<OnClick>
|
<!--<OnClick>-->
|
||||||
if AuctionFrame:IsVisible() then
|
<!--if AuctionFrame:IsVisible() then-->
|
||||||
Aux.blizzard_ui_shown = false
|
<!--Aux.blizzard_ui_shown = false-->
|
||||||
HideUIPanel(AuctionFrame)
|
<!--HideUIPanel(AuctionFrame)-->
|
||||||
else
|
<!--else-->
|
||||||
Aux.blizzard_ui_shown = true
|
<!--Aux.blizzard_ui_shown = true-->
|
||||||
ShowUIPanel(AuctionFrame)
|
<!--ShowUIPanel(AuctionFrame)-->
|
||||||
end
|
<!--end-->
|
||||||
</OnClick>
|
<!--</OnClick>-->
|
||||||
</Scripts>
|
<!--</Scripts>-->
|
||||||
</Button>
|
<!--</Button>-->
|
||||||
<Frame name="AuxLogFrame" inherits="AuxFrameBoxTemplate">
|
<Frame name="AuxLogFrame" inherits="AuxFrameBoxTemplate">
|
||||||
<Size><AbsDimension x="400" y="40"/></Size>
|
<Size><AbsDimension x="400" y="40"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
|
|||||||
+18
-18
@@ -12,25 +12,25 @@
|
|||||||
|
|
||||||
<Frame name="AuxHistoryFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
|
<Frame name="AuxHistoryFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
|
||||||
<Frames>
|
<Frames>
|
||||||
<Button name="AuxHistoryScanButton" inherits="UIPanelButtonTemplate" text="Scan">
|
<!--<Button name="AuxHistoryScanButton" inherits="UIPanelButtonTemplate" text="Scan">-->
|
||||||
<Size><AbsDimension x="90" y="26"/></Size>
|
<!--<Size><AbsDimension x="90" y="26"/></Size>-->
|
||||||
<Anchors><Anchor point="RIGHT" relativePoint="LEFT" relativeTo="AuxAuctionFrameButton"><Offset><AbsDimension x="-25" y="0"/></Offset></Anchor></Anchors>
|
<!--<Anchors><Anchor point="RIGHT" relativePoint="LEFT" relativeTo="AuxAuctionFrameButton"><Offset><AbsDimension x="-25" y="0"/></Offset></Anchor></Anchors>-->
|
||||||
<Scripts>
|
<!--<Scripts>-->
|
||||||
<OnClick>
|
<!--<OnClick>-->
|
||||||
Aux.history.start_scan()
|
<!--Aux.history.start_scan()-->
|
||||||
</OnClick>
|
<!--</OnClick>-->
|
||||||
</Scripts>
|
<!--</Scripts>-->
|
||||||
</Button>
|
<!--</Button>-->
|
||||||
|
|
||||||
<Button name="AuxHistoryStopButton" inherits="UIPanelButtonTemplate" text="Stop" hidden="true">
|
<!--<Button name="AuxHistoryStopButton" inherits="UIPanelButtonTemplate" text="Stop" hidden="true">-->
|
||||||
<Size><AbsDimension x="90" y="26"/></Size>
|
<!--<Size><AbsDimension x="90" y="26"/></Size>-->
|
||||||
<Anchors><Anchor point="RIGHT" relativePoint="LEFT" relativeTo="AuxAuctionFrameButton"><Offset><AbsDimension x="-25" y="0"/></Offset></Anchor></Anchors>
|
<!--<Anchors><Anchor point="RIGHT" relativePoint="LEFT" relativeTo="AuxAuctionFrameButton"><Offset><AbsDimension x="-25" y="0"/></Offset></Anchor></Anchors>-->
|
||||||
<Scripts>
|
<!--<Scripts>-->
|
||||||
<OnClick>
|
<!--<OnClick>-->
|
||||||
Aux.history.stop_scan()
|
<!--Aux.history.stop_scan()-->
|
||||||
</OnClick>
|
<!--</OnClick>-->
|
||||||
</Scripts>
|
<!--</Scripts>-->
|
||||||
</Button>
|
<!--</Button>-->
|
||||||
</Frames>
|
</Frames>
|
||||||
</Frame>
|
</Frame>
|
||||||
</Ui>
|
</Ui>
|
||||||
|
|||||||
@@ -111,10 +111,10 @@ function public.create(params)
|
|||||||
for i = 1,getn(params.columns) do
|
for i = 1,getn(params.columns) do
|
||||||
local button = CreateFrame('Button', nil, content)
|
local button = CreateFrame('Button', nil, content)
|
||||||
if i == 1 then
|
if i == 1 then
|
||||||
button:SetPoint('TOPLEFT', content, 'TOPLEFT', 5, 0)
|
button:SetPoint('TOPLEFT', content, 'TOPLEFT', 5, params.plain and 16 or 0)
|
||||||
total_width = total_width + 5
|
total_width = total_width + 5
|
||||||
else
|
else
|
||||||
button:SetPoint('TOPLEFT', content, 'TOPLEFT', total_width + 3, 0)
|
button:SetPoint('TOPLEFT', content, 'TOPLEFT', total_width + 3, params.plain and 16 or 0)
|
||||||
total_width = total_width + 3
|
total_width = total_width + 3
|
||||||
end
|
end
|
||||||
local label = content:CreateFontString(nil, 'OVERLAY', 'GameFontHighlight')
|
local label = content:CreateFontString(nil, 'OVERLAY', 'GameFontHighlight')
|
||||||
@@ -162,6 +162,12 @@ function public.create(params)
|
|||||||
label.sort_texture = sort_texture
|
label.sort_texture = sort_texture
|
||||||
label.background = background
|
label.background = background
|
||||||
labels[i] = label
|
labels[i] = label
|
||||||
|
|
||||||
|
if params.plain then
|
||||||
|
for _, obj in ipairs({button, label, texture, sort_texture, background}) do
|
||||||
|
obj:Hide()
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
total_width = total_width + 5
|
total_width = total_width + 5
|
||||||
params.frame:SetWidth(total_width)
|
params.frame:SetWidth(total_width)
|
||||||
|
|||||||
Reference in New Issue
Block a user