Commit a16b8b70 authored by Azilroka's avatar Azilroka

3.38

parent 32555da7
## Interface: 70000
## Title: |cff1784d1AddOnSkins|r
## Version: 3.37
## Version: 3.38
## Author: Azilroka, Sortokk
## SavedVariablesPerCharacter: AddOnSkinsOptions
## OptionalDep: ElvUI, BuyEmAll, DSM, Tukui, HydraUI
......
......@@ -9,28 +9,32 @@ function AS:Auctionator(event)
end
if event == 'PLAYER_ENTERING_WORLD' then return end
if event == 'AUCTION_HOUSE_SHOW' then
AS:SkinFrame(Atr_BasicOptionsFrame)
AS:SkinFrame(Atr_TooltipsOptionsFrame)
AS:SkinFrame(Atr_UCConfigFrame)
AS:SkinFrame(Atr_StackingOptionsFrame)
AS:SkinFrame(Atr_ScanningOptionsFrame)
AS:SkinFrame(AuctionatorResetsFrame)
AS:SkinFrame(Atr_ShpList_Options_Frame)
AS:SkinFrame(AuctionatorDescriptionFrame)
AS:SkinFrame(Atr_Stacking_List)
AS:SkinFrame(Atr_ShpList_Frame)
AS:SkinCheckBox(AuctionatorOption_Enable_Alt_CB)
AS:SkinCheckBox(AuctionatorOption_Show_StartingPrice_CB)
AS:SkinCheckBox(ATR_tipsVendorOpt_CB)
AS:SkinCheckBox(ATR_tipsAuctionOpt_CB)
AS:SkinCheckBox(ATR_tipsDisenchantOpt_CB)
AS:SkinDropDownBox(AuctionatorOption_Deftab)
AS:SkinDropDownBox(Atr_tipsShiftDD)
AS:SkinDropDownBox(Atr_deDetailsDD)
AS:SkinDropDownBox(Atr_scanLevelDD)
Atr_deDetailsDDText:SetJustifyH('RIGHT')
local moneyEditBoxes = {
local Frames = {
Atr_BasicOptionsFrame,
Atr_TooltipsOptionsFrame,
Atr_UCConfigFrame,
Atr_StackingOptionsFrame,
Atr_ScanningOptionsFrame,
AuctionatorResetsFrame,
Atr_ShpList_Options_Frame,
AuctionatorDescriptionFrame,
Atr_Stacking_List,
Atr_ShpList_Frame,
Atr_ListTabsTab1,
Atr_ListTabsTab2,
Atr_ListTabsTab3,
Atr_FullScanResults,
Atr_Adv_Search_Dialog,
Atr_FullScanFrame,
Atr_Error_Frame,
}
for _, Frame in pairs(Frames) do
AS:SkinFrame(Frame)
end
local MoneyEditBoxes = {
'UC_5000000_MoneyInput',
'UC_1000000_MoneyInput',
'UC_200000_MoneyInput',
......@@ -38,19 +42,31 @@ function AS:Auctionator(event)
'UC_10000_MoneyInput',
'UC_2000_MoneyInput',
'UC_500_MoneyInput',
'Atr_StackPrice',
'Atr_StartingPrice',
'Atr_ItemPrice',
}
for i = 1, #moneyEditBoxes do
AS:SkinEditBox(_G[moneyEditBoxes[i]..'Gold'])
AS:SkinEditBox(_G[moneyEditBoxes[i]..'Silver'])
AS:SkinEditBox(_G[moneyEditBoxes[i]..'Copper'])
for _, MoneyEditBox in pairs(MoneyEditBoxes) do
AS:SkinEditBox(_G[MoneyEditBox..'Gold'])
AS:SkinEditBox(_G[MoneyEditBox..'Silver'])
AS:SkinEditBox(_G[MoneyEditBox..'Copper'])
end
AS:SkinEditBox(Atr_Starting_Discount)
AS:SkinEditBox(Atr_ScanOpts_MaxHistAge)
AS:SkinButton(Atr_UCConfigFrame_Reset)
AS:SkinButton(Atr_StackingOptionsFrame_Edit)
AS:SkinButton(Atr_StackingOptionsFrame_New)
local DropDownBoxes = {
AuctionatorOption_Deftab,
Atr_tipsShiftDD,
Atr_deDetailsDD,
Atr_scanLevelDD,
Atr_Duration,
Atr_DropDownSL,
Atr_ASDD_Class,
Atr_ASDD_Subclass,
}
for _, DropDown in pairs(DropDownBoxes) do
AS:SkinDropDownBox(DropDown)
end
for i = 1, Atr_ShpList_Options_Frame:GetNumChildren() do
local object = select(i, Atr_ShpList_Options_Frame:GetChildren())
......@@ -58,6 +74,7 @@ function AS:Auctionator(event)
AS:SkinButton(object)
end
end
for i = 1, AuctionatorResetsFrame:GetNumChildren() do
local object = select(i, AuctionatorResetsFrame:GetChildren())
if object:IsObjectType('Button') then
......@@ -65,76 +82,87 @@ function AS:Auctionator(event)
end
end
AS:SkinDropDownBox(Atr_Duration)
AS:SkinDropDownBox(Atr_DropDownSL)
AS:SkinDropDownBox(Atr_ASDD_Class)
AS:SkinDropDownBox(Atr_ASDD_Subclass)
local Buttons = {
Atr_Search_Button,
Atr_Back_Button,
Atr_Buy1_Button,
Auctionator1Button,
Atr_CreateAuctionButton,
Atr_RemFromSListButton,
Atr_AddToSListButton,
Atr_SrchSListButton,
Atr_MngSListsButton,
Atr_NewSListButton,
Atr_CheckActiveButton,
AuctionatorCloseButton,
Atr_CancelSelectionButton,
Atr_FullScanStartButton,
Atr_FullScanDone,
Atr_CheckActives_Yes_Button,
Atr_CheckActives_No_Button,
Atr_Adv_Search_ResetBut,
Atr_Adv_Search_OKBut,
Atr_Adv_Search_CancelBut,
Atr_Buy_Confirm_OKBut,
Atr_Buy_Confirm_CancelBut,
Atr_SaveThisList_Button,
Atr_UCConfigFrame_Reset,
Atr_StackingOptionsFrame_Edit,
Atr_StackingOptionsFrame_New,
Atr_FullScanButton,
}
for _, Button in pairs(Buttons) do
AS:SkinButton(Button, true)
end
local EditBoxes = {
Atr_Batch_NumAuctions,
Atr_Batch_Stacksize,
Atr_Search_Box,
Atr_AS_Searchtext,
Atr_AS_Minlevel,
Atr_AS_Maxlevel,
Atr_AS_MinItemlevel,
Atr_AS_MaxItemlevel,
Atr_Starting_Discount,
Atr_ScanOpts_MaxHistAge,
}
for _, EditBox in pairs(EditBoxes) do
AS:SkinEditBox(EditBox)
end
AS:SkinButton(Atr_Search_Button, true)
AS:SkinButton(Atr_Back_Button, true)
AS:SkinButton(Atr_Buy1_Button, true)
AS:SkinCheckBox(AuctionatorOption_Enable_Alt_CB)
AS:SkinCheckBox(AuctionatorOption_Show_StartingPrice_CB)
AS:SkinCheckBox(ATR_tipsVendorOpt_CB)
AS:SkinCheckBox(ATR_tipsAuctionOpt_CB)
AS:SkinCheckBox(ATR_tipsDisenchantOpt_CB)
AS:SkinCheckBox(Atr_Adv_Search_Button)
AS:SkinCheckBox(Atr_Exact_Search_Button)
AS:SkinButton(Atr_FullScanButton, true)
AS:SkinFrame(Atr_HeadingsBar, 'Default')
AS:SkinFrame(Atr_Hlist, 'Default')
AS:SkinFrame(Atr_Buy_Confirm_Frame, 'Default')
AS:SkinFrame(Atr_CheckActives_Frame, 'Default')
AS:SkinScrollBar(Atr_Hlist_ScrollFrameScrollBar)
Atr_FullScanButton:ClearAllPoints()
Atr_FullScanButton:SetPoint('TOPRIGHT', Auctionator1Button, 'BOTTOMRIGHT', 0, -2)
AS:SkinButton(Auctionator1Button, true)
AS:SkinFrame(Atr_ListTabsTab1)
AS:SkinFrame(Atr_ListTabsTab2)
AS:SkinFrame(Atr_ListTabsTab3)
AS:SkinButton(Atr_CreateAuctionButton, true)
AS:SkinButton(Atr_RemFromSListButton, true)
AS:SkinButton(Atr_AddToSListButton, true)
AS:SkinButton(Atr_SrchSListButton, true)
AS:SkinButton(Atr_MngSListsButton, true)
AS:SkinButton(Atr_NewSListButton, true)
AS:SkinButton(Atr_CheckActiveButton, true)
AS:SkinButton(AuctionatorCloseButton, true)
AS:SkinButton(Atr_CancelSelectionButton, true)
AS:SkinButton(Atr_FullScanStartButton, true)
AS:SkinButton(Atr_FullScanDone, true)
AS:SkinButton(Atr_CheckActives_Yes_Button, true)
AS:SkinButton(Atr_CheckActives_No_Button, true)
AS:SkinButton(Atr_Adv_Search_ResetBut, true)
AS:SkinButton(Atr_Adv_Search_OKBut, true)
AS:SkinButton(Atr_Adv_Search_CancelBut, true)
AS:SkinButton(Atr_Buy_Confirm_OKBut, true)
AS:SkinButton(Atr_Buy_Confirm_CancelBut, true)
AS:SkinButton(Atr_SaveThisList_Button, true)
AS:SkinEditBox(Atr_StackPriceGold)
AS:SkinEditBox(Atr_StackPriceSilver)
AS:SkinEditBox(Atr_StackPriceCopper)
AS:SkinEditBox(Atr_StartingPriceGold)
AS:SkinEditBox(Atr_StartingPriceSilver)
AS:SkinEditBox(Atr_StartingPriceCopper)
AS:SkinEditBox(Atr_ItemPriceGold)
AS:SkinEditBox(Atr_ItemPriceSilver)
AS:SkinEditBox(Atr_ItemPriceCopper)
AS:SkinEditBox(Atr_Batch_NumAuctions)
AS:SkinEditBox(Atr_Batch_Stacksize)
AS:SkinEditBox(Atr_Search_Box)
AS:SkinEditBox(Atr_AS_Searchtext)
AS:SkinEditBox(Atr_AS_Minlevel)
AS:SkinEditBox(Atr_AS_Maxlevel)
AS:SkinEditBox(Atr_AS_MinItemlevel)
AS:SkinEditBox(Atr_AS_MaxItemlevel)
AS:SkinFrame(Atr_FullScanResults)
AS:SkinFrame(Atr_Adv_Search_Dialog)
AS:SkinFrame(Atr_FullScanFrame)
AS:SkinFrame(Atr_HeadingsBar, 'Default')
Atr_deDetailsDDText:SetJustifyH('RIGHT')
Atr_HeadingsBar:Height(19)
AS:SkinFrame(Atr_Error_Frame)
AS:SkinFrame(Atr_Hlist, 'Default')
Atr_Hlist:Width(196)
Atr_Hlist:ClearAllPoints()
Atr_Hlist:Point('TOPLEFT', -195, -75)
AS:SkinFrame(Atr_Buy_Confirm_Frame, 'Default')
AS:SkinFrame(Atr_CheckActives_Frame, 'Default')
Atr_SrchSListButton:Width(196)
Atr_MngSListsButton:Width(196)
Atr_NewSListButton:Width(196)
Atr_CheckActiveButton:Width(196)
AS:SkinScrollBar(Atr_Hlist_ScrollFrameScrollBar)
Atr_ListTabs:Point('BOTTOMRIGHT', Atr_HeadingsBar, 'TOPRIGHT', 8, 1)
Atr_Back_Button:Point('TOPLEFT', Atr_HeadingsBar, 'TOPLEFT', 0, 19)
......@@ -142,10 +170,13 @@ function AS:Auctionator(event)
AuctionatorCloseButton:Point('BOTTOMRIGHT', Atr_Main_Panel, 'BOTTOMRIGHT', -10, 10)
Atr_Buy1_Button:Point('RIGHT', AuctionatorCloseButton, 'LEFT', -5, 0)
Atr_CancelSelectionButton:Point('RIGHT', Atr_Buy1_Button, 'LEFT', -5, 0)
AS:StripTextures(Atr_SellControls_Tex)
AS:StyleButton(Atr_SellControls_Tex)
Atr_SellControls_Tex:SetTemplate('Default', true)
AS:UnregisterSkinEvent('Auctionator', 'AUCTION_HOUSE_SHOW')
for i = 1, AuctionFrame.numTabs do
AS:SkinTab(_G["AuctionFrameTab"..i])
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment