E:Point, E:Size, E:Width, E:Height, & cleanup

This commit is contained in:
Crum
2018-05-16 23:20:04 -05:00
parent eac6a04517
commit d52da42f77
65 changed files with 958 additions and 1102 deletions
+45 -45
View File
@@ -14,8 +14,8 @@ local function LoadSkin()
E:StripTextures(AuctionFrame, true)
E:CreateBackdrop(AuctionFrame, "Transparent")
AuctionFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
AuctionFrame.backdrop:SetPoint("BOTTOMRIGHT", 0, 4)
E:Point(AuctionFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(AuctionFrame.backdrop, "BOTTOMRIGHT", 0, 4)
E:StripTextures(BrowseFilterScrollFrame)
E:StripTextures(BrowseScrollFrame)
@@ -41,9 +41,9 @@ local function LoadSkin()
E:SetOutside(AuctionDressUpFrame.backdrop, AuctionDressUpBackgroundTop, nil, nil, AuctionDressUpBackgroundBot)
S:HandleRotateButton(AuctionDressUpModelRotateLeftButton)
AuctionDressUpModelRotateLeftButton:SetPoint("TOPLEFT", AuctionDressUpFrame, 8, -17)
E:Point(AuctionDressUpModelRotateLeftButton, "TOPLEFT", AuctionDressUpFrame, 8, -17)
S:HandleRotateButton(AuctionDressUpModelRotateRightButton)
AuctionDressUpModelRotateRightButton:SetPoint("TOPLEFT", AuctionDressUpModelRotateLeftButton, "TOPRIGHT", 3, 0)
E:Point(AuctionDressUpModelRotateRightButton, "TOPLEFT", AuctionDressUpModelRotateLeftButton, "TOPRIGHT", 3, 0)
S:HandleButton(AuctionDressUpFrameResetButton)
S:HandleCloseButton(AuctionDressUpFrameCloseButton, AuctionDressUpFrame.backdrop)
@@ -66,24 +66,24 @@ local function LoadSkin()
end
--Fix Button Positions
AuctionsCloseButton:SetPoint("BOTTOMRIGHT", AuctionFrameAuctions, "BOTTOMRIGHT", 66, 14)
AuctionsCancelAuctionButton:SetPoint("RIGHT", AuctionsCloseButton, "LEFT", -4, 0)
BidBuyoutButton:SetPoint("RIGHT", BidCloseButton, "LEFT", -4, 0)
BidBidButton:SetPoint("RIGHT", BidBuyoutButton, "LEFT", -4, 0)
BrowseBuyoutButton:SetPoint("RIGHT", BrowseCloseButton, "LEFT", -4, 0)
BrowseBidButton:SetPoint("RIGHT", BrowseBuyoutButton, "LEFT", -4, 0)
AuctionsCreateAuctionButton:SetPoint("BOTTOMLEFT", 18, 44)
E:Point(AuctionsCloseButton, "BOTTOMRIGHT", AuctionFrameAuctions, "BOTTOMRIGHT", 66, 14)
E:Point(AuctionsCancelAuctionButton, "RIGHT", AuctionsCloseButton, "LEFT", -4, 0)
E:Point(BidBuyoutButton, "RIGHT", BidCloseButton, "LEFT", -4, 0)
E:Point(BidBidButton, "RIGHT", BidBuyoutButton, "LEFT", -4, 0)
E:Point(BrowseBuyoutButton, "RIGHT", BrowseCloseButton, "LEFT", -4, 0)
E:Point(BrowseBidButton, "RIGHT", BrowseBuyoutButton, "LEFT", -4, 0)
E:Point(AuctionsCreateAuctionButton, "BOTTOMLEFT", 18, 44)
BrowseSearchButton:ClearAllPoints()
BrowseSearchButton:SetPoint("TOPRIGHT", AuctionFrameBrowse, "TOPRIGHT", 25, -30)
E:Point(BrowseSearchButton, "TOPRIGHT", AuctionFrameBrowse, "TOPRIGHT", 25, -30)
S:HandleNextPrevButton(BrowseNextPageButton)
BrowseNextPageButton:ClearAllPoints()
BrowseNextPageButton:SetPoint("BOTTOMLEFT", BrowseSearchButton, "BOTTOMRIGHT", 10, -27)
E:Point(BrowseNextPageButton, "BOTTOMLEFT", BrowseSearchButton, "BOTTOMRIGHT", 10, -27)
S:HandleNextPrevButton(BrowsePrevPageButton)
BrowsePrevPageButton:ClearAllPoints()
BrowsePrevPageButton:SetPoint("BOTTOMRIGHT", BrowseSearchButton, "BOTTOMLEFT", -10, -27)
E:Point(BrowsePrevPageButton, "BOTTOMRIGHT", BrowseSearchButton, "BOTTOMLEFT", -10, -27)
E:StripTextures(AuctionsItemButton)
E:SetTemplate(AuctionsItemButton, "Default", true)
@@ -139,7 +139,7 @@ local function LoadSkin()
end
AuctionFrameTab1:ClearAllPoints()
AuctionFrameTab1:SetPoint("BOTTOMLEFT", AuctionFrame, "BOTTOMLEFT", 25, -26)
E:Point(AuctionFrameTab1, "BOTTOMLEFT", AuctionFrame, "BOTTOMLEFT", 25, -26)
AuctionFrameTab1.SetPoint = E.noop
for i = 1, NUM_FILTERS_TO_DISPLAY do
@@ -172,31 +172,31 @@ local function LoadSkin()
_G[editbox]:SetTextInsets(1, 1, -1, 1)
end
BrowseBidPrice:SetPoint("BOTTOM", -15, 18)
BrowseBidText:SetPoint("BOTTOMRIGHT", AuctionFrameBrowse, "BOTTOM", -116, 21)
E:Point(BrowseBidPrice, "BOTTOM", -15, 18)
E:Point(BrowseBidText, "BOTTOMRIGHT", AuctionFrameBrowse, "BOTTOM", -116, 21)
BrowseMinLevel:SetWidth(32)
E:Width(BrowseMinLevel, 32)
BrowseLevelHyphen:SetPoint("LEFT", BrowseMinLevel, "RIGHT", -7, 1)
E:Point(BrowseLevelHyphen, "LEFT", BrowseMinLevel, "RIGHT", -7, 1)
BrowseMaxLevel:SetPoint("LEFT", BrowseMinLevel, "RIGHT", 8, 0)
BrowseMaxLevel:SetWidth(32)
BrowseLevelText:SetPoint("BOTTOMLEFT", AuctionFrameBrowse, "TOPLEFT", 195, -48)
E:Point(BrowseMaxLevel, "LEFT", BrowseMinLevel, "RIGHT", 8, 0)
E:Width(BrowseMaxLevel, 32)
E:Point(BrowseLevelText, "BOTTOMLEFT", AuctionFrameBrowse, "TOPLEFT", 195, -48)
BrowseName:SetWidth(164)
BrowseName:SetPoint("TOPLEFT", AuctionFrameBrowse, "TOPLEFT", 20, -54)
BrowseNameText:SetPoint("TOPLEFT", BrowseName, "TOPLEFT", 0, 16)
E:Width(BrowseName, 164)
E:Point(BrowseName, "TOPLEFT", AuctionFrameBrowse, "TOPLEFT", 20, -54)
E:Point(BrowseNameText, "TOPLEFT", BrowseName, "TOPLEFT", 0, 16)
S:HandleCheckBox(IsUsableCheckButton)
IsUsableCheckButton:ClearAllPoints()
IsUsableCheckButton:SetPoint("RIGHT", BrowseIsUsableText, "LEFT", 2, 0)
BrowseIsUsableText:SetPoint("TOPLEFT", 440, -40)
E:Point(IsUsableCheckButton, "RIGHT", BrowseIsUsableText, "LEFT", 2, 0)
E:Point(BrowseIsUsableText, "TOPLEFT", 440, -40)
S:HandleCheckBox(ShowOnPlayerCheckButton)
ShowOnPlayerCheckButton:ClearAllPoints()
ShowOnPlayerCheckButton:SetPoint("RIGHT", BrowseShowOnCharacterText, "LEFT", 2, 0)
E:Point(ShowOnPlayerCheckButton, "RIGHT", BrowseShowOnCharacterText, "LEFT", 2, 0)
BrowseShowOnCharacterText:SetPoint("TOPLEFT", 440, -60)
E:Point(BrowseShowOnCharacterText, "TOPLEFT", 440, -60)
for i = 1, NUM_BROWSE_TO_DISPLAY do
local button = _G["BrowseButton"..i]
@@ -228,8 +228,8 @@ local function LoadSkin()
E:StyleButton(button, false, true)
_G["BrowseButton"..i.."Highlight"] = button:GetHighlightTexture()
button:GetHighlightTexture():ClearAllPoints()
button:GetHighlightTexture():SetPoint("TOPLEFT", icon, "TOPRIGHT", 2, 0)
button:GetHighlightTexture():SetPoint("BOTTOMRIGHT", button, "BOTTOMRIGHT", -2, 5)
E:Point(button:GetHighlightTexture(), "TOPLEFT", icon, "TOPRIGHT", 2, 0)
E:Point(button:GetHighlightTexture(), "BOTTOMRIGHT", button, "BOTTOMRIGHT", -2, 5)
-- button:GetPushedTexture():SetAllPoints(button:GetHighlightTexture())
end
@@ -263,8 +263,8 @@ local function LoadSkin()
E:StyleButton(button, false, true)
_G["AuctionsButton"..i.."Highlight"] = button:GetHighlightTexture()
button:GetHighlightTexture():ClearAllPoints()
button:GetHighlightTexture():SetPoint("TOPLEFT", icon, "TOPRIGHT", 2, 0)
button:GetHighlightTexture():SetPoint("BOTTOMRIGHT", button, "BOTTOMRIGHT", -2, 5)
E:Point(button:GetHighlightTexture(), "TOPLEFT", icon, "TOPRIGHT", 2, 0)
E:Point(button:GetHighlightTexture(), "BOTTOMRIGHT", button, "BOTTOMRIGHT", -2, 5)
-- button:GetPushedTexture():SetAllPoints(button:GetHighlightTexture())
end
@@ -298,42 +298,42 @@ local function LoadSkin()
E:StyleButton(button, false, true)
_G["BidButton"..i.."Highlight"] = button:GetHighlightTexture()
button:GetHighlightTexture():ClearAllPoints()
button:GetHighlightTexture():SetPoint("TOPLEFT", icon, "TOPRIGHT", 2, 0)
button:GetHighlightTexture():SetPoint("BOTTOMRIGHT", button, "BOTTOMRIGHT", -2, 5)
E:Point(button:GetHighlightTexture(), "TOPLEFT", icon, "TOPRIGHT", 2, 0)
E:Point(button:GetHighlightTexture(), "BOTTOMRIGHT", button, "BOTTOMRIGHT", -2, 5)
-- button:GetPushedTexture():SetAllPoints(button:GetHighlightTexture())
end
--Custom Backdrops
AuctionFrameBrowse.bg1 = CreateFrame("Frame", nil, AuctionFrameBrowse)
E:SetTemplate(AuctionFrameBrowse.bg1, "Default")
AuctionFrameBrowse.bg1:SetPoint("TOPLEFT", 20, -103)
AuctionFrameBrowse.bg1:SetPoint("BOTTOMRIGHT", -575, 40)
E:Point(AuctionFrameBrowse.bg1, "TOPLEFT", 20, -103)
E:Point(AuctionFrameBrowse.bg1, "BOTTOMRIGHT", -575, 40)
BrowseNoResultsText:SetParent(AuctionFrameBrowse.bg1)
BrowseSearchCountText:SetParent(AuctionFrameBrowse.bg1)
AuctionFrameBrowse.bg1:SetFrameLevel(AuctionFrameBrowse.bg1:GetFrameLevel() - 1)
AuctionFrameBrowse.bg2 = CreateFrame("Frame", nil, AuctionFrameBrowse)
E:SetTemplate(AuctionFrameBrowse.bg2, "Default")
AuctionFrameBrowse.bg2:SetPoint("TOPLEFT", AuctionFrameBrowse.bg1, "TOPRIGHT", 4, 0)
AuctionFrameBrowse.bg2:SetPoint("BOTTOMRIGHT", AuctionFrame, "BOTTOMRIGHT", -8, 40)
E:Point(AuctionFrameBrowse.bg2, "TOPLEFT", AuctionFrameBrowse.bg1, "TOPRIGHT", 4, 0)
E:Point(AuctionFrameBrowse.bg2, "BOTTOMRIGHT", AuctionFrame, "BOTTOMRIGHT", -8, 40)
AuctionFrameBrowse.bg2:SetFrameLevel(AuctionFrameBrowse.bg2:GetFrameLevel() - 1)
AuctionFrameBid.bg = CreateFrame("Frame", nil, AuctionFrameBid)
E:SetTemplate(AuctionFrameBid.bg, "Default")
AuctionFrameBid.bg:SetPoint("TOPLEFT", 20, -72)
AuctionFrameBid.bg:SetPoint("BOTTOMRIGHT", 66, 40)
E:Point(AuctionFrameBid.bg, "TOPLEFT", 20, -72)
E:Point(AuctionFrameBid.bg, "BOTTOMRIGHT", 66, 40)
AuctionFrameBid.bg:SetFrameLevel(AuctionFrameBid.bg:GetFrameLevel() - 1)
AuctionFrameAuctions.bg1 = CreateFrame("Frame", nil, AuctionFrameAuctions)
E:SetTemplate(AuctionFrameAuctions.bg1, "Default")
AuctionFrameAuctions.bg1:SetPoint("TOPLEFT", 15, -72)
AuctionFrameAuctions.bg1:SetPoint("BOTTOMRIGHT", -545, 40)
E:Point(AuctionFrameAuctions.bg1, "TOPLEFT", 15, -72)
E:Point(AuctionFrameAuctions.bg1, "BOTTOMRIGHT", -545, 40)
AuctionFrameAuctions.bg1:SetFrameLevel(AuctionFrameAuctions.bg1:GetFrameLevel() - 1)
AuctionFrameAuctions.bg2 = CreateFrame("Frame", nil, AuctionFrameAuctions)
E:SetTemplate(AuctionFrameAuctions.bg2, "Default")
AuctionFrameAuctions.bg2:SetPoint("TOPLEFT", AuctionFrameAuctions.bg1, "TOPRIGHT", 3, 0)
AuctionFrameAuctions.bg2:SetPoint("BOTTOMRIGHT", AuctionFrame, -8, 40)
E:Point(AuctionFrameAuctions.bg2, "TOPLEFT", AuctionFrameAuctions.bg1, "TOPRIGHT", 3, 0)
E:Point(AuctionFrameAuctions.bg2, "BOTTOMRIGHT", AuctionFrame, -8, 40)
AuctionFrameAuctions.bg2:SetFrameLevel(AuctionFrameAuctions.bg2:GetFrameLevel() - 1)
end
+2 -2
View File
@@ -12,8 +12,8 @@ local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.bgscore ~= true then return end
E:CreateBackdrop(WorldStateScoreFrame, "Transparent")
WorldStateScoreFrame.backdrop:SetPoint("TOPLEFT", 10, -15)
WorldStateScoreFrame.backdrop:SetPoint("BOTTOMRIGHT", -113, 67)
E:Point(WorldStateScoreFrame.backdrop, "TOPLEFT", 10, -15)
E:Point(WorldStateScoreFrame.backdrop, "BOTTOMRIGHT", -113, 67)
E:StripTextures(WorldStateScoreFrame)
+8 -8
View File
@@ -61,8 +61,8 @@ local function LoadSkin()
E:StripTextures(containerFrame, true)
E:CreateBackdrop(containerFrame, "Transparent")
containerFrame.backdrop:SetPoint("TOPLEFT", 9, -4)
containerFrame.backdrop:SetPoint("BOTTOMRIGHT", -4, 2)
E:Point(containerFrame.backdrop, "TOPLEFT", 9, -4)
E:Point(containerFrame.backdrop, "BOTTOMRIGHT", -4, 2)
S:HandleCloseButton(containerFrameClose)
@@ -92,8 +92,8 @@ local function LoadSkin()
-- BankFrame
E:CreateBackdrop(BankFrame, "Transparent")
BankFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
BankFrame.backdrop:SetPoint("BOTTOMRIGHT", -26, 93)
E:Point(BankFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(BankFrame.backdrop, "BOTTOMRIGHT", -26, 93)
E:StripTextures(BankFrame, true)
@@ -115,8 +115,8 @@ local function LoadSkin()
BankFrame.itemBackdrop = CreateFrame("Frame", "BankFrameItemBackdrop", BankFrame)
E:SetTemplate(BankFrame.itemBackdrop, "Default")
BankFrame.itemBackdrop:SetPoint("TOPLEFT", BankFrameItem1, "TOPLEFT", -6, 6)
BankFrame.itemBackdrop:SetPoint("BOTTOMRIGHT", BankFrameItem24, "BOTTOMRIGHT", 6, -6)
E:Point(BankFrame.itemBackdrop, "TOPLEFT", BankFrameItem1, "TOPLEFT", -6, 6)
E:Point(BankFrame.itemBackdrop, "BOTTOMRIGHT", BankFrameItem24, "BOTTOMRIGHT", 6, -6)
BankFrame.itemBackdrop:SetFrameLevel(BankFrame:GetFrameLevel())
for i = 1, NUM_BANKBAGSLOTS, 1 do
@@ -137,8 +137,8 @@ local function LoadSkin()
BankFrame.bagBackdrop = CreateFrame("Frame", "BankFrameBagBackdrop", BankFrame)
E:SetTemplate(BankFrame.bagBackdrop, "Default")
BankFrame.bagBackdrop:SetPoint("TOPLEFT", BankFrameBag1, "TOPLEFT", -6, 6)
BankFrame.bagBackdrop:SetPoint("BOTTOMRIGHT", BankFrameBag6, "BOTTOMRIGHT", 6, -6)
E:Point(BankFrame.bagBackdrop, "TOPLEFT", BankFrameBag1, "TOPLEFT", -6, 6)
E:Point(BankFrame.bagBackdrop, "BOTTOMRIGHT", BankFrameBag6, "BOTTOMRIGHT", 6, -6)
BankFrame.bagBackdrop:SetFrameLevel(BankFrame:GetFrameLevel())
S:HandleButton(BankFramePurchaseButton)
+2 -2
View File
@@ -12,8 +12,8 @@ local function LoadSkin()
E:StripTextures(BattlefieldFrame)
E:CreateBackdrop(BattlefieldFrame, "Transparent")
BattlefieldFrame.backdrop:SetPoint("TOPLEFT", 11, -12)
BattlefieldFrame.backdrop:SetPoint("BOTTOMRIGHT", -34, 74)
E:Point(BattlefieldFrame.backdrop, "TOPLEFT", 11, -12)
E:Point(BattlefieldFrame.backdrop, "BOTTOMRIGHT", -34, 74)
E:StripTextures(BattlefieldListScrollFrame)
S:HandleScrollBar(BattlefieldListScrollFrameScrollBar)
+5 -5
View File
@@ -11,8 +11,8 @@ local function LoadSkin()
E:StripTextures(KeyBindingFrame)
E:CreateBackdrop(KeyBindingFrame, "Transparent")
KeyBindingFrame.backdrop:SetPoint("TOPLEFT", 2, 0)
KeyBindingFrame.backdrop:SetPoint("BOTTOMRIGHT", -42, 12)
E:Point(KeyBindingFrame.backdrop, "TOPLEFT", 2, 0)
E:Point(KeyBindingFrame.backdrop, "BOTTOMRIGHT", -42, 12)
local bindingKey1, bindingKey2
for i = 1, KEY_BINDINGS_DISPLAYED do
@@ -21,7 +21,7 @@ local function LoadSkin()
S:HandleButton(bindingKey1)
S:HandleButton(bindingKey2)
bindingKey2:SetPoint("LEFT", bindingKey1, "RIGHT", 1, 0)
E:Point(bindingKey2, "LEFT", bindingKey1, "RIGHT", 1, 0)
end
S:HandleScrollBar(KeyBindingFrameScrollFrameScrollBar)
@@ -31,9 +31,9 @@ local function LoadSkin()
S:HandleButton(KeyBindingFrameDefaultButton)
S:HandleButton(KeyBindingFrameCancelButton)
S:HandleButton(KeyBindingFrameOkayButton)
KeyBindingFrameOkayButton:SetPoint("RIGHT", KeyBindingFrameCancelButton, "LEFT", -3, 0)
E:Point(KeyBindingFrameOkayButton, "RIGHT", KeyBindingFrameCancelButton, "LEFT", -3, 0)
S:HandleButton(KeyBindingFrameUnbindButton)
KeyBindingFrameUnbindButton:SetPoint("RIGHT", KeyBindingFrameOkayButton, "LEFT", -3, 0)
E:Point(KeyBindingFrameUnbindButton, "RIGHT", KeyBindingFrameOkayButton, "LEFT", -3, 0)
end
S:AddCallbackForAddon("Blizzard_BindingUI", "Binding", LoadSkin)
+29 -36
View File
@@ -22,8 +22,8 @@ local function LoadSkin()
E:StripTextures(CharacterFrame, true)
E:CreateBackdrop(CharacterFrame, "Transparent")
CharacterFrame.backdrop:SetPoint("TOPLEFT", 11, -12)
CharacterFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 76)
E:Point(CharacterFrame.backdrop, "TOPLEFT", 11, -12)
E:Point(CharacterFrame.backdrop, "BOTTOMRIGHT", -32, 76)
S:HandleCloseButton(CharacterFrameCloseButton)
@@ -35,17 +35,16 @@ local function LoadSkin()
E:StripTextures(PaperDollFrame)
S:HandleRotateButton(CharacterModelFrameRotateLeftButton)
CharacterModelFrameRotateLeftButton:SetPoint("TOPLEFT", 3, -3)
E:Point(CharacterModelFrameRotateLeftButton, "TOPLEFT", 3, -3)
S:HandleRotateButton(CharacterModelFrameRotateRightButton)
CharacterModelFrameRotateRightButton:SetPoint("TOPLEFT", CharacterModelFrameRotateLeftButton, "TOPRIGHT", 3, 0)
E:Point(CharacterModelFrameRotateRightButton, "TOPLEFT", CharacterModelFrameRotateLeftButton, "TOPRIGHT", 3, 0)
E:StripTextures(CharacterAttributesFrame)
local function HandleResistanceFrame(frameName)
for i = 1, 5 do
local frame = _G[frameName..i]
frame:SetWidth(24)
frame:SetHeight(24)
E:Size(frame, 24)
local icon, text = _G[frameName..i]:GetRegions()
E:SetInside(icon)
@@ -56,7 +55,7 @@ local function LoadSkin()
if i ~= 1 then
frame:ClearAllPoints()
frame:SetPoint("TOP", _G[frameName..i-1], "BOTTOM", 0, -(E.Border + E.Spacing))
E:Point(frame, "TOP", _G[frameName..i-1], "BOTTOM", 0, -(E.Border + E.Spacing))
end
end
end
@@ -116,35 +115,33 @@ local function LoadSkin()
E:StripTextures(factionBar)
E:CreateBackdrop(factionBar, "Default")
factionBar:SetStatusBarTexture(E.media.normTex)
factionBar:SetWidth(108)
factionBar:SetHeight(13)
E:Size(factionBar, 108, 13)
E:RegisterStatusBar(factionBar)
if i == 1 then
factionBar:SetPoint("TOPLEFT", 190, -86)
E:Point(factionBar, "TOPLEFT", 190, -86)
end
factionName:SetPoint("LEFT", factionBar, "LEFT", -150, 0)
factionName:SetWidth(140)
E:Point(factionName, "LEFT", factionBar, "LEFT", -150, 0)
E:Width(factionName, 140)
factionName.SetWidth = E.noop
E:StripTextures(factionAtWarCheck)
factionAtWarCheck:SetPoint("LEFT", factionBar, "RIGHT", 0, 0)
E:Point(factionAtWarCheck, "LEFT", factionBar, "RIGHT", 0, 0)
factionAtWarCheck.Icon = factionAtWarCheck:CreateTexture(nil, "OVERLAY")
factionAtWarCheck.Icon:SetPoint("LEFT", 6, -8)
factionAtWarCheck.Icon:SetWidth(32)
factionAtWarCheck.Icon:SetHeight(32)
E:Point(factionAtWarCheck.Icon, "LEFT", 6, -8)
E:Size(factionAtWarCheck.Icon, 32)
factionAtWarCheck.Icon:SetTexture("Interface\\Buttons\\UI-CheckBox-SwordCheck")
E:StripTextures(factionHeader)
factionHeader:SetNormalTexture(nil)
factionHeader.SetNormalTexture = E.noop
factionHeader:SetPoint("TOPLEFT", factionBar, "TOPLEFT", -175, 0)
E:Point(factionHeader, "TOPLEFT", factionBar, "TOPLEFT", -175, 0)
factionHeader.Text = factionHeader:CreateFontString(nil, "OVERLAY")
E:FontTemplate(factionHeader.Text, nil, 22)
factionHeader.Text:SetPoint("LEFT", 3, 0)
E:Point(factionHeader.Text, "LEFT", 3, 0)
factionHeader.Text:SetText("+")
end
@@ -156,10 +153,10 @@ local function LoadSkin()
S:HandleRotateButton(PetModelFrameRotateLeftButton)
PetModelFrameRotateLeftButton:ClearAllPoints()
PetModelFrameRotateLeftButton:SetPoint("TOPLEFT", 3, -3)
E:Point(PetModelFrameRotateLeftButton, "TOPLEFT", 3, -3)
S:HandleRotateButton(PetModelFrameRotateRightButton)
PetModelFrameRotateRightButton:ClearAllPoints()
PetModelFrameRotateRightButton:SetPoint("TOPLEFT", PetModelFrameRotateLeftButton, "TOPRIGHT", 3, 0)
E:Point(PetModelFrameRotateRightButton, "TOPLEFT", PetModelFrameRotateLeftButton, "TOPRIGHT", 3, 0)
E:StripTextures(PetAttributesFrame)
@@ -168,8 +165,7 @@ local function LoadSkin()
for i = 1, 5 do
local frame = _G["PetMagicResFrame"..i]
frame:SetWidth(24)
frame:SetHeight(24)
E:Size(frame, 24)
end
PetMagicResFrame1:GetRegions():SetTexCoord(0.21875, 0.78125, 0.25, 0.3203125)
@@ -199,12 +195,11 @@ local function LoadSkin()
end
end
PetPaperDollPetInfo:SetPoint("TOPLEFT", PetModelFrameRotateLeftButton, "BOTTOMLEFT", 9, -3)
E:Point(PetPaperDollPetInfo, "TOPLEFT", PetModelFrameRotateLeftButton, "BOTTOMLEFT", 9, -3)
PetPaperDollPetInfo:GetRegions():SetTexCoord(0.04, 0.15, 0.06, 0.30)
PetPaperDollPetInfo:SetFrameLevel(PetModelFrame:GetFrameLevel() + 2)
E:CreateBackdrop(PetPaperDollPetInfo, "Default")
PetPaperDollPetInfo:SetWidth(24)
PetPaperDollPetInfo:SetHeight(24)
E:Size(PetPaperDollPetInfo, 24)
PetPaperDollPetInfo:RegisterEvent("UNIT_HAPPINESS")
PetPaperDollPetInfo:SetScript("OnEvent", updHappiness)
@@ -234,10 +229,10 @@ local function LoadSkin()
E:StripTextures(ReputationDetailFrame)
E:SetTemplate(ReputationDetailFrame, "Transparent")
ReputationDetailFrame:SetPoint("TOPLEFT", ReputationFrame, "TOPRIGHT", -31, -12)
E:Point(ReputationDetailFrame, "TOPLEFT", ReputationFrame, "TOPRIGHT", -31, -12)
S:HandleCloseButton(ReputationDetailCloseButton)
ReputationDetailCloseButton:SetPoint("TOPRIGHT", 2, 2)
E:Point(ReputationDetailCloseButton, "TOPRIGHT", 2, 2)
S:HandleCheckBox(ReputationDetailAtWarCheckBox)
S:HandleCheckBox(ReputationDetailInactiveCheckBox)
@@ -249,14 +244,14 @@ local function LoadSkin()
SkillFrameExpandButtonFrame:DisableDrawLayer("BACKGROUND")
SkillFrameCollapseAllButton:SetPoint("LEFT", SkillFrameExpandTabLeft, "RIGHT", -40, -3)
E:Point(SkillFrameCollapseAllButton, "LEFT", SkillFrameExpandTabLeft, "RIGHT", -40, -3)
SkillFrameCollapseAllButton:SetNormalTexture("")
SkillFrameCollapseAllButton.SetNormalTexture = E.noop
SkillFrameCollapseAllButton:SetHighlightTexture(nil)
SkillFrameCollapseAllButton.Text = SkillFrameCollapseAllButton:CreateFontString(nil, "OVERLAY")
E:FontTemplate(SkillFrameCollapseAllButton.Text, nil, 22)
SkillFrameCollapseAllButton.Text:SetPoint("CENTER", -10, 0)
E:Point(SkillFrameCollapseAllButton.Text, "CENTER", -10, 0)
SkillFrameCollapseAllButton.Text:SetText("+")
hooksecurefunc(SkillFrameCollapseAllButton, "SetNormalTexture", function(self, texture)
@@ -285,7 +280,7 @@ local function LoadSkin()
label.Text = label:CreateFontString(nil, "OVERLAY")
E:FontTemplate(label.Text, nil, 22)
label.Text:SetPoint("LEFT", 3, 0)
E:Point(label.Text, "LEFT", 3, 0)
label.Text:SetText("+")
hooksecurefunc(label, "SetNormalTexture", function(self, texture)
@@ -310,14 +305,12 @@ local function LoadSkin()
E:RegisterStatusBar(SkillDetailStatusBar)
E:StripTextures(SkillDetailStatusBarUnlearnButton)
SkillDetailStatusBarUnlearnButton:SetPoint("LEFT", SkillDetailStatusBarBorder, "RIGHT", -2, -5)
SkillDetailStatusBarUnlearnButton:SetWidth(36)
SkillDetailStatusBarUnlearnButton:SetHeight(36)
E:Point(SkillDetailStatusBarUnlearnButton, "LEFT", SkillDetailStatusBarBorder, "RIGHT", -2, -5)
E:Size(SkillDetailStatusBarUnlearnButton, 36)
SkillDetailStatusBarUnlearnButton.Icon = SkillDetailStatusBarUnlearnButton:CreateTexture(nil, "OVERLAY")
SkillDetailStatusBarUnlearnButton.Icon:SetPoint("LEFT", 7, 5)
SkillDetailStatusBarUnlearnButton.Icon:SetWidth(18)
SkillDetailStatusBarUnlearnButton.Icon:SetHeight(18)
E:Point(SkillDetailStatusBarUnlearnButton.Icon, "LEFT", 7, 5)
E:Size(SkillDetailStatusBarUnlearnButton.Icon, 18)
SkillDetailStatusBarUnlearnButton.Icon:SetTexture("Interface\\Buttons\\UI-GroupLoot-Pass-Up")
+4 -5
View File
@@ -18,14 +18,13 @@ local function LoadSkin()
E:StripTextures(CraftFrame, true)
E:CreateBackdrop(CraftFrame, "Transparent")
CraftFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
CraftFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 74)
E:Point(CraftFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(CraftFrame.backdrop, "BOTTOMRIGHT", -32, 74)
E:StripTextures(CraftRankFrameBorder)
CraftRankFrame:SetWidth(322)
CraftRankFrame:SetHeight(16)
E:Size(CraftRankFrame, 322, 16)
CraftRankFrame:ClearAllPoints()
CraftRankFrame:SetPoint("TOP", -10, -45)
E:Point(CraftRankFrame, "TOP", -10, -45)
E:CreateBackdrop(CraftRankFrame)
CraftRankFrame:SetStatusBarTexture(E["media"].normTex)
CraftRankFrame:SetStatusBarColor(0.13, 0.35, 0.80)
+4 -4
View File
@@ -49,10 +49,10 @@ local function LoadSkin()
S:HandleButton(ScriptErrorsFrame.close)
ScriptErrorsFrame.reload:SetPoint("BOTTOMLEFT", 12, 8)
ScriptErrorsFrame.previous:SetPoint("BOTTOM", ScriptErrorsFrame, "BOTTOM", -50, 7)
ScriptErrorsFrame.next:SetPoint("BOTTOM", ScriptErrorsFrame, "BOTTOM", 50, 7)
ScriptErrorsFrame.close:SetPoint("BOTTOMRIGHT", -12, 8)
E:Point(ScriptErrorsFrame.reload, "BOTTOMLEFT", 12, 8)
E:Point(ScriptErrorsFrame.previous, "BOTTOM", ScriptErrorsFrame, "BOTTOM", -50, 7)
E:Point(ScriptErrorsFrame.next, "BOTTOM", ScriptErrorsFrame, "BOTTOM", 50, 7)
E:Point(ScriptErrorsFrame.close, "BOTTOMRIGHT", -12, 8)
local noscalemult = E.mult * GetCVar("uiScale")
HookScript(FrameStackTooltip, "OnShow", function()
@@ -11,8 +11,8 @@ local function LoadSkin()
E:StripTextures(DressUpFrame)
E:CreateBackdrop(DressUpFrame, "Transparent")
DressUpFrame.backdrop:SetPoint("TOPLEFT", 10, -12)
DressUpFrame.backdrop:SetPoint("BOTTOMRIGHT", -33, 73)
E:Point(DressUpFrame.backdrop, "TOPLEFT", 10, -12)
E:Point(DressUpFrame.backdrop, "BOTTOMRIGHT", -33, 73)
E:Kill(DressUpFramePortrait)
@@ -22,19 +22,19 @@ local function LoadSkin()
DressUpBackgroundBotLeft:SetDesaturated(true)
DressUpBackgroundBotRight:SetDesaturated(true)
DressUpFrameDescriptionText:SetPoint("CENTER", DressUpFrameTitleText, "BOTTOM", -5, -22)
E:Point(DressUpFrameDescriptionText, "CENTER", DressUpFrameTitleText, "BOTTOM", -5, -22)
S:HandleCloseButton(DressUpFrameCloseButton)
S:HandleRotateButton(DressUpModelRotateLeftButton)
DressUpModelRotateLeftButton:SetPoint("TOPLEFT", DressUpFrame, 25, -79)
E:Point(DressUpModelRotateLeftButton, "TOPLEFT", DressUpFrame, 25, -79)
S:HandleRotateButton(DressUpModelRotateRightButton)
DressUpModelRotateRightButton:SetPoint("TOPLEFT", DressUpModelRotateLeftButton, "TOPRIGHT", 3, 0)
E:Point(DressUpModelRotateRightButton, "TOPLEFT", DressUpModelRotateLeftButton, "TOPRIGHT", 3, 0)
S:HandleButton(DressUpFrameCancelButton)
DressUpFrameCancelButton:SetPoint("CENTER", DressUpFrame, "TOPLEFT", 306, -423)
E:Point(DressUpFrameCancelButton, "CENTER", DressUpFrame, "TOPLEFT", 306, -423)
S:HandleButton(DressUpFrameResetButton)
DressUpFrameResetButton:SetPoint("RIGHT", DressUpFrameCancelButton, "LEFT", -3, 0)
E:Point(DressUpFrameResetButton, "RIGHT", DressUpFrameCancelButton, "LEFT", -3, 0)
E:CreateBackdrop(DressUpModel, "Default")
E:SetOutside(DressUpModel.backdrop, DressUpBackgroundTopLeft, nil, nil, DressUpModel)
+59 -65
View File
@@ -20,8 +20,8 @@ function LoadSkin()
-- Friends Frame
E:StripTextures(FriendsFrame, true)
E:CreateBackdrop(FriendsFrame, "Transparent")
FriendsFrame.backdrop:SetPoint("TOPLEFT", 10, -12)
FriendsFrame.backdrop:SetPoint("BOTTOMRIGHT", -33, 76)
E:Point(FriendsFrame.backdrop, "TOPLEFT", 10, -12)
E:Point(FriendsFrame.backdrop, "BOTTOMRIGHT", -33, 76)
S:HandleCloseButton(FriendsFrameCloseButton)
@@ -34,8 +34,8 @@ function LoadSkin()
local tab = _G["FriendsFrameToggleTab"..i]
E:StripTextures(tab)
E:CreateBackdrop(tab, "Default", true)
tab.backdrop:SetPoint("TOPLEFT", 3, -7)
tab.backdrop:SetPoint("BOTTOMRIGHT", -2, -1)
E:Point(tab.backdrop, "TOPLEFT", 3, -7)
E:Point(tab.backdrop, "BOTTOMRIGHT", -2, -1)
tab:SetScript("OnEnter", S.SetModifiedBackdrop)
tab:SetScript("OnLeave", S.SetOriginalBackdrop)
@@ -48,16 +48,16 @@ function LoadSkin()
local width, height = (f:GetWidth() * (scale or 0.5)), f:GetHeight()
local leftGrad = f:CreateTexture(nil, "HIGHLIGHT")
leftGrad:SetWidth(width)
E:Width(leftGrad, width)
leftGrad:SetHeight(height)
leftGrad:SetPoint("LEFT", f, "CENTER")
E:Point(leftGrad, "LEFT", f, "CENTER")
leftGrad:SetTexture(E.media.blankTex)
leftGrad:SetGradientAlpha("Horizontal", r, g, b, 0.35, r, g, b, 0)
local rightGrad = f:CreateTexture(nil, "HIGHLIGHT")
rightGrad:SetWidth(width)
E:Width(rightGrad, width)
rightGrad:SetHeight(height)
rightGrad:SetPoint("RIGHT", f, "CENTER")
E:Point(rightGrad, "RIGHT", f, "CENTER")
rightGrad:SetTexture(E.media.blankTex)
rightGrad:SetGradientAlpha("Horizontal", r, g, b, 0, r, g, b, 0.35)
end
@@ -71,23 +71,23 @@ function LoadSkin()
S:HandleScrollBar(FriendsFrameFriendsScrollFrameScrollBar)
S:HandleButton(FriendsFrameAddFriendButton)
FriendsFrameAddFriendButton:SetPoint("BOTTOMLEFT", 17, 102)
E:Point(FriendsFrameAddFriendButton, "BOTTOMLEFT", 17, 102)
S:HandleButton(FriendsFrameSendMessageButton)
S:HandleButton(FriendsFrameRemoveFriendButton)
FriendsFrameRemoveFriendButton:SetPoint("TOP", FriendsFrameAddFriendButton, "BOTTOM", 0, -2)
E:Point(FriendsFrameRemoveFriendButton, "TOP", FriendsFrameAddFriendButton, "BOTTOM", 0, -2)
S:HandleButton(FriendsFrameGroupInviteButton)
FriendsFrameGroupInviteButton:SetPoint("TOP", FriendsFrameSendMessageButton, "BOTTOM", 0, -2)
E:Point(FriendsFrameGroupInviteButton, "TOP", FriendsFrameSendMessageButton, "BOTTOM", 0, -2)
-- Ignore List Frame
for i = 1, 2 do
local tab = _G["IgnoreFrameToggleTab"..i]
E:StripTextures(tab)
E:CreateBackdrop(tab, "Default", true)
tab.backdrop:SetPoint("TOPLEFT", 3, -7)
tab.backdrop:SetPoint("BOTTOMRIGHT", -2, -1)
E:Point(tab.backdrop, "TOPLEFT", 3, -7)
E:Point(tab.backdrop, "BOTTOMRIGHT", -2, -1)
tab:SetScript("OnEnter", function() S:SetModifiedBackdrop(this) end)
tab:SetScript("OnLeave", function() S:SetOriginalBackdrop(this) end)
@@ -102,18 +102,18 @@ function LoadSkin()
-- Who Frame
WhoFrameColumnHeader3:ClearAllPoints()
WhoFrameColumnHeader3:SetPoint("TOPLEFT", 20, -70)
E:Point(WhoFrameColumnHeader3, "TOPLEFT", 20, -70)
WhoFrameColumnHeader4:ClearAllPoints()
WhoFrameColumnHeader4:SetPoint("LEFT", WhoFrameColumnHeader3, "RIGHT", -2, -0)
WhoFrameColumnHeader4:SetWidth(48)
E:Point(WhoFrameColumnHeader4, "LEFT", WhoFrameColumnHeader3, "RIGHT", -2, -0)
E:Width(WhoFrameColumnHeader4, 48)
WhoFrameColumnHeader1:ClearAllPoints()
WhoFrameColumnHeader1:SetPoint("LEFT", WhoFrameColumnHeader4, "RIGHT", -2, -0)
WhoFrameColumnHeader1:SetWidth(105)
E:Point(WhoFrameColumnHeader1, "LEFT", WhoFrameColumnHeader4, "RIGHT", -2, -0)
E:Width(WhoFrameColumnHeader1, 105)
WhoFrameColumnHeader2:ClearAllPoints()
WhoFrameColumnHeader2:SetPoint("LEFT", WhoFrameColumnHeader1, "RIGHT", -2, -0)
E:Point(WhoFrameColumnHeader2, "LEFT", WhoFrameColumnHeader1, "RIGHT", -2, -0)
for i = 1, 4 do
E:StripTextures(_G["WhoFrameColumnHeader"..i])
@@ -128,9 +128,8 @@ function LoadSkin()
local name = _G["WhoFrameButton"..i.."Name"]
button.icon = button:CreateTexture("$parentIcon", "ARTWORK")
button.icon:SetPoint("LEFT", 45, 0)
button.icon:SetWidth(15)
button.icon:SetHeight(15)
E:Point(button.icon, "LEFT", 45, 0)
E:Size(button.icon, 15)
button.icon:SetTexture("Interface\\AddOns\\ElvUI\\Media\\Textures\\Icons-Classes")
E:CreateBackdrop(button, "Default", true)
@@ -138,12 +137,11 @@ function LoadSkin()
StyleButton(button)
level:ClearAllPoints()
level:SetPoint("TOPLEFT", 12, -2)
E:Point(level, "TOPLEFT", 12, -2)
name:SetWidth(100)
name:SetHeight(14)
E:Size(name, 100, 14)
name:ClearAllPoints()
name:SetPoint("LEFT", 85, 0)
E:Point(name, "LEFT", 85, 0)
_G["WhoFrameButton"..i.."Class"]:Hide()
end
@@ -152,17 +150,16 @@ function LoadSkin()
S:HandleScrollBar(WhoListScrollFrameScrollBar)
S:HandleEditBox(WhoFrameEditBox)
WhoFrameEditBox:SetPoint("BOTTOMLEFT", 17, 108)
WhoFrameEditBox:SetWidth(338)
WhoFrameEditBox:SetHeight(18)
E:Point(WhoFrameEditBox, "BOTTOMLEFT", 17, 108)
E:Size(WhoFrameEditBox, 338, 18)
S:HandleButton(WhoFrameWhoButton)
WhoFrameWhoButton:ClearAllPoints()
WhoFrameWhoButton:SetPoint("BOTTOMLEFT", 16, 82)
E:Point(WhoFrameWhoButton, "BOTTOMLEFT", 16, 82)
S:HandleButton(WhoFrameAddFriendButton)
WhoFrameAddFriendButton:SetPoint("LEFT", WhoFrameWhoButton, "RIGHT", 3, 0)
WhoFrameAddFriendButton:SetPoint("RIGHT", WhoFrameGroupInviteButton, "LEFT", -3, 0)
E:Point(WhoFrameAddFriendButton, "LEFT", WhoFrameWhoButton, "RIGHT", 3, 0)
E:Point(WhoFrameAddFriendButton, "RIGHT", WhoFrameGroupInviteButton, "LEFT", -3, 0)
S:HandleButton(WhoFrameGroupInviteButton)
@@ -218,19 +215,19 @@ function LoadSkin()
-- Guild Frame
GuildFrameColumnHeader3:ClearAllPoints()
GuildFrameColumnHeader3:SetPoint("TOPLEFT", 20, -70)
E:Point(GuildFrameColumnHeader3, "TOPLEFT", 20, -70)
GuildFrameColumnHeader4:ClearAllPoints()
GuildFrameColumnHeader4:SetPoint("LEFT", GuildFrameColumnHeader3, "RIGHT", -2, -0)
GuildFrameColumnHeader4:SetWidth(48)
E:Point(GuildFrameColumnHeader4, "LEFT", GuildFrameColumnHeader3, "RIGHT", -2, -0)
E:Width(GuildFrameColumnHeader4, 48)
GuildFrameColumnHeader1:ClearAllPoints()
GuildFrameColumnHeader1:SetPoint("LEFT", GuildFrameColumnHeader4, "RIGHT", -2, -0)
GuildFrameColumnHeader1:SetWidth(105)
E:Point(GuildFrameColumnHeader1, "LEFT", GuildFrameColumnHeader4, "RIGHT", -2, -0)
E:Width(GuildFrameColumnHeader1, 105)
GuildFrameColumnHeader2:ClearAllPoints()
GuildFrameColumnHeader2:SetPoint("LEFT", GuildFrameColumnHeader1, "RIGHT", -2, -0)
GuildFrameColumnHeader2:SetWidth(127)
E:Point(GuildFrameColumnHeader2, "LEFT", GuildFrameColumnHeader1, "RIGHT", -2, -0)
E:Width(GuildFrameColumnHeader2, 127)
for i = 1, GUILDMEMBERS_TO_DISPLAY do
local button = _G["GuildFrameButton"..i]
@@ -239,21 +236,19 @@ function LoadSkin()
StyleButton(_G["GuildFrameGuildStatusButton"..i])
button.icon = button:CreateTexture("$parentIcon", "ARTWORK")
button.icon:SetPoint("LEFT", 48, -3)
button.icon:SetWidth(15)
button.icon:SetHeight(15)
E:Point(button.icon, "LEFT", 48, -3)
E:Size(button.icon, 15)
button.icon:SetTexture("Interface\\AddOns\\ElvUI\\Media\\Textures\\Icons-Classes")
E:CreateBackdrop(button, "Default", true)
button.backdrop:SetAllPoints(button.icon)
_G["GuildFrameButton"..i.."Level"]:ClearAllPoints()
_G["GuildFrameButton"..i.."Level"]:SetPoint("TOPLEFT", 10, -3)
E:Point(_G["GuildFrameButton"..i.."Level"], "TOPLEFT", 10, -3)
_G["GuildFrameButton"..i.."Name"]:SetWidth(100)
_G["GuildFrameButton"..i.."Name"]:SetHeight(14)
E:Size(_G["GuildFrameButton"..i.."Name"], 100, 14)
_G["GuildFrameButton"..i.."Name"]:ClearAllPoints()
_G["GuildFrameButton"..i.."Name"]:SetPoint("LEFT", 85, -3)
E:Point(_G["GuildFrameButton"..i.."Name"], "LEFT", 85, -3)
_G["GuildFrameButton"..i.."Class"]:Hide()
end
@@ -327,20 +322,20 @@ function LoadSkin()
-- Member Detail Frame
E:StripTextures(GuildMemberDetailFrame)
E:CreateBackdrop(GuildMemberDetailFrame, "Transparent")
GuildMemberDetailFrame:SetPoint("TOPLEFT", GuildFrame, "TOPRIGHT", -31, -13)
E:Point(GuildMemberDetailFrame, "TOPLEFT", GuildFrame, "TOPRIGHT", -31, -13)
S:HandleCloseButton(GuildMemberDetailCloseButton)
GuildMemberDetailCloseButton:SetPoint("TOPRIGHT", 2, 2)
E:Point(GuildMemberDetailCloseButton, "TOPRIGHT", 2, 2)
S:HandleButton(GuildFrameControlButton)
S:HandleButton(GuildMemberRemoveButton)
GuildMemberRemoveButton:SetPoint("BOTTOMLEFT", 8, 7)
E:Point(GuildMemberRemoveButton, "BOTTOMLEFT", 8, 7)
S:HandleButton(GuildMemberGroupInviteButton)
GuildMemberGroupInviteButton:SetPoint("LEFT", GuildMemberRemoveButton, "RIGHT", 3, 0)
E:Point(GuildMemberGroupInviteButton, "LEFT", GuildMemberRemoveButton, "RIGHT", 3, 0)
S:HandleNextPrevButton(GuildFramePromoteButton, true)
S:HandleNextPrevButton(GuildFrameDemoteButton, true)
GuildFrameDemoteButton:SetPoint("LEFT", GuildFramePromoteButton, "RIGHT", 2, 0)
E:Point(GuildFrameDemoteButton, "LEFT", GuildFramePromoteButton, "RIGHT", 2, 0)
E:SetTemplate(GuildMemberNoteBackground, "Default")
E:SetTemplate(GuildMemberOfficerNoteBackground, "Default")
@@ -348,8 +343,8 @@ function LoadSkin()
-- Info Frame
E:StripTextures(GuildInfoFrame)
E:CreateBackdrop(GuildInfoFrame, "Transparent")
GuildInfoFrame.backdrop:SetPoint("TOPLEFT", 3, -6)
GuildInfoFrame.backdrop:SetPoint("BOTTOMRIGHT", -2, 3)
E:Point(GuildInfoFrame.backdrop, "TOPLEFT", 3, -6)
E:Point(GuildInfoFrame.backdrop, "BOTTOMRIGHT", -2, 3)
E:SetTemplate(GuildInfoTextBackground, "Default")
S:HandleScrollBar(GuildInfoFrameScrollFrameScrollBar)
@@ -357,19 +352,18 @@ function LoadSkin()
S:HandleCloseButton(GuildInfoCloseButton)
S:HandleButton(GuildInfoSaveButton)
GuildInfoSaveButton:SetPoint("BOTTOMLEFT", 8, 11)
E:Point(GuildInfoSaveButton, "BOTTOMLEFT", 8, 11)
S:HandleButton(GuildInfoCancelButton)
GuildInfoCancelButton:SetPoint("LEFT", GuildInfoSaveButton, "RIGHT", 3, 0)
E:Point(GuildInfoCancelButton, "LEFT", GuildInfoSaveButton, "RIGHT", 3, 0)
-- Control Frame
E:StripTextures(GuildControlPopupFrame)
E:CreateBackdrop(GuildControlPopupFrame, "Transparent")
GuildControlPopupFrame.backdrop:SetPoint("TOPLEFT", 3, -6)
GuildControlPopupFrame.backdrop:SetPoint("BOTTOMRIGHT", -27, 27)
E:Point(GuildControlPopupFrame.backdrop, "TOPLEFT", 3, -6)
E:Point(GuildControlPopupFrame.backdrop, "BOTTOMRIGHT", -27, 27)
S:HandleDropDownBox(GuildControlPopupFrameDropDown, 185)
GuildControlPopupFrameDropDownButton:SetWidth(16)
GuildControlPopupFrameDropDownButton:SetHeight(16)
E:Size(GuildControlPopupFrameDropDownButton, 16)
local function SkinPlusMinus(f, minus)
f:SetNormalTexture("")
@@ -383,7 +377,7 @@ function LoadSkin()
f.Text = f:CreateFontString(nil, "OVERLAY")
E:FontTemplate(f.Text, nil, 22)
f.Text:SetPoint("LEFT", 5, 0)
E:Point(f.Text, "LEFT", 5, 0)
if minus then
f.Text:SetText("-")
else
@@ -391,13 +385,13 @@ function LoadSkin()
end
end
GuildControlPopupFrameAddRankButton:SetPoint("LEFT", GuildControlPopupFrameDropDown, "RIGHT", -8, 3)
E:Point(GuildControlPopupFrameAddRankButton, "LEFT", GuildControlPopupFrameDropDown, "RIGHT", -8, 3)
SkinPlusMinus(GuildControlPopupFrameAddRankButton)
SkinPlusMinus(GuildControlPopupFrameRemoveRankButton, true)
S:HandleEditBox(GuildControlPopupFrameEditBox)
GuildControlPopupFrameEditBox.backdrop:SetPoint("TOPLEFT", 0, -5)
GuildControlPopupFrameEditBox.backdrop:SetPoint("BOTTOMRIGHT", 0, 5)
E:Point(GuildControlPopupFrameEditBox.backdrop, "TOPLEFT", 0, -5)
E:Point(GuildControlPopupFrameEditBox.backdrop, "BOTTOMRIGHT", 0, 5)
for i = 1, 17 do
local Checkbox = _G["GuildControlPopupFrameCheckbox"..i]
@@ -419,9 +413,9 @@ function LoadSkin()
HookScript(RaidInfoFrame, "OnShow", function()
if GetNumRaidMembers() > 0 then
RaidInfoFrame:SetPoint("TOPLEFT", RaidFrame, "TOPRIGHT", -14, -12)
E:Point(RaidInfoFrame, "TOPLEFT", RaidFrame, "TOPRIGHT", -14, -12)
else
RaidInfoFrame:SetPoint("TOPLEFT", RaidFrame, "TOPRIGHT", -34, -12)
E:Point(RaidInfoFrame, "TOPLEFT", RaidFrame, "TOPRIGHT", -34, -12)
end
end)
+7 -7
View File
@@ -16,15 +16,15 @@ local function LoadSkin()
S:HandleScrollBar(ItemTextScrollFrameScrollBar)
E:CreateBackdrop(ItemTextFrame, "Transparent")
ItemTextFrame.backdrop:SetPoint("TOPLEFT", 13, -13)
ItemTextFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 74)
E:Point(ItemTextFrame.backdrop, "TOPLEFT", 13, -13)
E:Point(ItemTextFrame.backdrop, "BOTTOMRIGHT", -32, 74)
S:HandleNextPrevButton(ItemTextPrevPageButton)
S:HandleNextPrevButton(ItemTextNextPageButton)
ItemTextPrevPageButton:ClearAllPoints()
ItemTextNextPageButton:ClearAllPoints()
ItemTextPrevPageButton:SetPoint("TOPLEFT", ItemTextFrame, "TOPLEFT", 30, -50)
ItemTextNextPageButton:SetPoint("TOPRIGHT", ItemTextFrame, "TOPRIGHT", -48, -50)
E:Point(ItemTextPrevPageButton, "TOPLEFT", ItemTextFrame, "TOPLEFT", 30, -50)
E:Point(ItemTextNextPageButton, "TOPRIGHT", ItemTextFrame, "TOPRIGHT", -48, -50)
S:HandleCloseButton(ItemTextCloseButton)
@@ -39,11 +39,11 @@ local function LoadSkin()
E:Kill(GossipFramePortrait)
E:CreateBackdrop(GossipFrame, "Transparent")
GossipFrame.backdrop:SetPoint("TOPLEFT", 15, -19)
GossipFrame.backdrop:SetPoint("BOTTOMRIGHT", -30, 67)
E:Point(GossipFrame.backdrop, "TOPLEFT", 15, -19)
E:Point(GossipFrame.backdrop, "BOTTOMRIGHT", -30, 67)
S:HandleButton(GossipFrameGreetingGoodbyeButton)
GossipFrameGreetingGoodbyeButton:SetPoint("BOTTOMRIGHT", GossipFrame, -34, 71)
E:Point(GossipFrameGreetingGoodbyeButton, "BOTTOMRIGHT", GossipFrame, -34, 71)
S:HandleCloseButton(GossipFrameCloseButton)
@@ -11,8 +11,8 @@ local function LoadSkin()
E:StripTextures(GuildRegistrarFrame, true)
E:CreateBackdrop(GuildRegistrarFrame, "Transparent")
GuildRegistrarFrame.backdrop:SetPoint("TOPLEFT", 12, -17)
GuildRegistrarFrame.backdrop:SetPoint("BOTTOMRIGHT", -28, 65)
E:Point(GuildRegistrarFrame.backdrop, "TOPLEFT", 12, -17)
E:Point(GuildRegistrarFrame.backdrop, "BOTTOMRIGHT", -28, 65)
E:StripTextures(GuildRegistrarGreetingFrame)
S:HandleButton(GuildRegistrarFrameGoodbyeButton)
S:HandleButton(GuildRegistrarFrameCancelButton)
+6 -6
View File
@@ -29,11 +29,11 @@ local function LoadSkin()
E:StripTextures(HelpFrame)
E:CreateBackdrop(HelpFrame, "Transparent")
HelpFrame.backdrop:SetPoint("TOPLEFT", 6, -2)
HelpFrame.backdrop:SetPoint("BOTTOMRIGHT", -45, 14)
E:Point(HelpFrame.backdrop, "TOPLEFT", 6, -2)
E:Point(HelpFrame.backdrop, "BOTTOMRIGHT", -45, 14)
S:HandleCloseButton(HelpFrameCloseButton)
HelpFrameCloseButton:SetPoint("TOPRIGHT", -42, 0)
E:Point(HelpFrameCloseButton, "TOPRIGHT", -42, 0)
for i = 1, getn(helpFrameButtons) do
local helpButton = _G["HelpFrame"..helpFrameButtons[i]]
@@ -51,9 +51,9 @@ local function LoadSkin()
title:SetTexture("")
title:ClearAllPoints()
if title == _G["GameMenuFrameHeader"] then
title:SetPoint("TOP", GameMenuFrame, 0, 0)
E:Point(title, "TOP", GameMenuFrame, 0, 0)
else
title:SetPoint("TOP", BlizzardHeader[i], -22, -8)
E:Point(title, "TOP", BlizzardHeader[i], -22, -8)
end
end
end
@@ -63,7 +63,7 @@ local function LoadSkin()
S:HandleScrollBar(HelpFrameOpenTicketScrollFrame)
S:HandleScrollBar(HelpFrameOpenTicketScrollFrameScrollBar)
HelpFrameOpenTicketSubmit:SetPoint("RIGHT", HelpFrameOpenTicketCancel, "LEFT", -2, 0)
E:Point(HelpFrameOpenTicketSubmit, "RIGHT", HelpFrameOpenTicketCancel, "LEFT", -2, 0)
E:Kill(HelpFrameHarassmentDivider)
E:Kill(HelpFrameHarassmentDivider2)
+4 -4
View File
@@ -18,8 +18,8 @@ local function LoadSkin()
E:StripTextures(InspectFrame, true)
E:CreateBackdrop(InspectFrame, "Transparent")
InspectFrame.backdrop:SetPoint("TOPLEFT", 10, -12)
InspectFrame.backdrop:SetPoint("BOTTOMRIGHT", -31, 75)
E:Point(InspectFrame.backdrop, "TOPLEFT", 10, -12)
E:Point(InspectFrame.backdrop, "BOTTOMRIGHT", -31, 75)
S:HandleCloseButton(InspectFrameCloseButton)
@@ -85,10 +85,10 @@ local function LoadSkin()
end)
S:HandleRotateButton(InspectModelRotateLeftButton)
InspectModelRotateLeftButton:SetPoint("TOPLEFT", 3, -3)
E:Point(InspectModelRotateLeftButton, "TOPLEFT", 3, -3)
S:HandleRotateButton(InspectModelRotateRightButton)
InspectModelRotateRightButton:SetPoint("TOPLEFT", InspectModelRotateLeftButton, "TOPRIGHT", 3, 0)
E:Point(InspectModelRotateRightButton, "TOPLEFT", InspectModelRotateLeftButton, "TOPRIGHT", 3, 0)
E:StripTextures(InspectHonorFrame)
+7 -8
View File
@@ -22,8 +22,8 @@ local function LoadSkin()
E:StripTextures(LootFrame)
E:CreateBackdrop(LootFrame, "Transparent")
LootFrame.backdrop:SetPoint("TOPLEFT", 13, -14)
LootFrame.backdrop:SetPoint("BOTTOMRIGHT", -68, 5)
E:Point(LootFrame.backdrop, "TOPLEFT", 13, -14)
E:Point(LootFrame.backdrop, "BOTTOMRIGHT", -68, 5)
LootFramePortraitOverlay:SetParent(E.HiddenFrame)
@@ -39,7 +39,7 @@ local function LoadSkin()
end]]
--[[LootFrame.Title:ClearAllPoints()
LootFrame.Title:SetPoint("TOPLEFT", LootFrame.backdrop, "TOPLEFT", 4, -4)
E:Point(LootFrame.Title, "TOPLEFT", LootFrame.backdrop, "TOPLEFT", 4, -4)
LootFrame.Title:SetJustifyH("LEFT")]]
S:HandleNextPrevButton(LootFrameDownButton)
@@ -48,8 +48,8 @@ local function LoadSkin()
S:SquareButton_SetIcon(LootFrameDownButton, "DOWN")
LootFrameDownButton:ClearAllPoints()
LootFrameDownButton:SetPoint("RIGHT", LootFrameNext, "RIGHT", 32, 0)
LootFramePrev:SetPoint("BOTTOMLEFT", 57, 22)
E:Point(LootFrameDownButton, "RIGHT", LootFrameNext, "RIGHT", 32, 0)
E:Point(LootFramePrev, "BOTTOMLEFT", 57, 22)
hooksecurefunc("LootFrame_Update", function()
local numLootItems = LootFrame.numLootItems
@@ -127,9 +127,8 @@ local function LoadRollSkin()
local decoration = _G[frameName.."Decoration"]
decoration:SetTexture("Interface\\DialogFrame\\UI-DialogBox-Gold-Dragon")
decoration:SetWidth(130)
decoration:SetHeight(130)
decoration:SetPoint("TOPLEFT", -37, 20)
E:Size(decoration, 130)
E:Point(decoration, "TOPLEFT", -37, 20)
local pass = _G[frameName.."PassButton"]
S:HandleCloseButton(pass, frame)
+15 -15
View File
@@ -13,18 +13,18 @@ local function LoadSkin()
E:StripTextures(MacroFrame)
E:CreateBackdrop(MacroFrame, "Transparent")
MacroFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
MacroFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 71)
E:Point(MacroFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(MacroFrame.backdrop, "BOTTOMRIGHT", -32, 71)
MacroFrame.bg = CreateFrame("Frame", nil, MacroFrame)
E:SetTemplate(MacroFrame.bg, "Transparent", true)
MacroFrame.bg:SetPoint("TOPLEFT", MacroButton1, -10, 10)
MacroFrame.bg:SetPoint("BOTTOMRIGHT", MacroButton18, 10, -10)
E:Point(MacroFrame.bg, "TOPLEFT", MacroButton1, -10, 10)
E:Point(MacroFrame.bg, "BOTTOMRIGHT", MacroButton18, 10, -10)
E:StripTextures(MacroFrameTextBackground)
E:CreateBackdrop(MacroFrameTextBackground, "Default")
MacroFrameTextBackground.backdrop:SetPoint("TOPLEFT", 6, -3)
MacroFrameTextBackground.backdrop:SetPoint("BOTTOMRIGHT", -2, 3)
E:Point(MacroFrameTextBackground.backdrop, "TOPLEFT", 6, -3)
E:Point(MacroFrameTextBackground.backdrop, "BOTTOMRIGHT", -2, 3)
local Buttons = {
"MacroFrameTab1",
@@ -45,11 +45,11 @@ local function LoadSkin()
for i = 1, 2 do
local tab = _G["MacroFrameTab"..i]
tab:SetHeight(22)
E:Height(tab, 22)
end
MacroFrameTab1:SetPoint("TOPLEFT", MacroFrame, "TOPLEFT", 85, -39)
MacroFrameTab2:SetPoint("LEFT", MacroFrameTab1, "RIGHT", 4, 0)
E:Point(MacroFrameTab1, "TOPLEFT", MacroFrame, "TOPLEFT", 85, -39)
E:Point(MacroFrameTab2, "LEFT", MacroFrameTab1, "RIGHT", 4, 0)
S:HandleCloseButton(MacroFrameCloseButton)
@@ -57,9 +57,9 @@ local function LoadSkin()
S:HandleScrollBar(MacroPopupScrollFrameScrollBar)
MacroEditButton:ClearAllPoints()
MacroEditButton:SetPoint("BOTTOMLEFT", MacroFrameSelectedMacroButton, "BOTTOMRIGHT", 10, 0)
E:Point(MacroEditButton, "BOTTOMLEFT", MacroFrameSelectedMacroButton, "BOTTOMRIGHT", 10, 0)
MacroFrameSelectedMacroName:SetPoint("TOPLEFT", MacroFrameSelectedMacroBackground, "TOPRIGHT", -4, -10)
E:Point(MacroFrameSelectedMacroName, "TOPLEFT", MacroFrameSelectedMacroBackground, "TOPRIGHT", -4, -10)
E:StripTextures(MacroFrameSelectedMacroButton)
E:SetTemplate(MacroFrameSelectedMacroButton, "Transparent")
@@ -70,7 +70,7 @@ local function LoadSkin()
E:SetInside(MacroFrameSelectedMacroButtonIcon)
MacroFrameCharLimitText:ClearAllPoints()
MacroFrameCharLimitText:SetPoint("BOTTOM", MacroFrameTextBackground, 0, -9)
E:Point(MacroFrameCharLimitText, "BOTTOM", MacroFrameTextBackground, 0, -9)
for i = 1, MAX_MACROS do
local Button = _G["MacroButton"..i]
@@ -91,10 +91,10 @@ local function LoadSkin()
S:HandleIconSelectionFrame(MacroPopupFrame, NUM_MACRO_ICONS_SHOWN, "MacroPopupButton", "MacroPopup")
E:CreateBackdrop(MacroPopupScrollFrame, "Transparent")
MacroPopupScrollFrame.backdrop:SetPoint("TOPLEFT", 51, 2)
MacroPopupScrollFrame.backdrop:SetPoint("BOTTOMRIGHT", 0, 4)
E:Point(MacroPopupScrollFrame.backdrop, "TOPLEFT", 51, 2)
E:Point(MacroPopupScrollFrame.backdrop, "BOTTOMRIGHT", 0, 4)
MacroPopupFrame:SetPoint("TOPLEFT", MacroFrame, "TOPRIGHT", -41, 1)
E:Point(MacroPopupFrame, "TOPLEFT", MacroFrame, "TOPRIGHT", -41, 1)
end
S:AddCallbackForAddon("Blizzard_MacroUI", "Macro", LoadSkin)
+14 -14
View File
@@ -19,8 +19,8 @@ local function LoadSkin()
-- Inbox Frame
E:StripTextures(MailFrame, true)
E:CreateBackdrop(MailFrame, "Transparent")
MailFrame.backdrop:SetPoint("TOPLEFT", 10, -12)
MailFrame.backdrop:SetPoint("BOTTOMRIGHT", -30, 74)
E:Point(MailFrame.backdrop, "TOPLEFT", 10, -12)
E:Point(MailFrame.backdrop, "BOTTOMRIGHT", -30, 74)
for i = 1, INBOXITEMS_TO_DISPLAY do
local mail = _G["MailItem"..i]
@@ -29,8 +29,8 @@ local function LoadSkin()
E:StripTextures(mail)
E:CreateBackdrop(mail, "Default")
mail.backdrop:SetPoint("TOPLEFT", 2, 1)
mail.backdrop:SetPoint("BOTTOMRIGHT", -2, 2)
E:Point(mail.backdrop, "TOPLEFT", 2, 1)
E:Point(mail.backdrop, "BOTTOMRIGHT", -2, 2)
E:StripTextures(button)
E:SetTemplate(button, "Default", true)
@@ -117,29 +117,29 @@ local function LoadSkin()
S:HandleScrollBar(SendMailScrollFrameScrollBar)
S:HandleEditBox(SendMailNameEditBox)
SendMailNameEditBox.backdrop:SetPoint("BOTTOMRIGHT", 2, 0)
SendMailNameEditBox:SetPoint("TOPLEFT", 79, -46)
E:Point(SendMailNameEditBox.backdrop, "BOTTOMRIGHT", 2, 0)
E:Point(SendMailNameEditBox, "TOPLEFT", 79, -46)
S:HandleEditBox(SendMailSubjectEditBox)
SendMailSubjectEditBox.backdrop:SetPoint("BOTTOMRIGHT", 2, 0)
E:Point(SendMailSubjectEditBox.backdrop, "BOTTOMRIGHT", 2, 0)
S:HandleEditBox(SendMailMoneyGold)
S:HandleEditBox(SendMailMoneySilver)
S:HandleEditBox(SendMailMoneyCopper)
S:HandleButton(SendMailMailButton)
SendMailMailButton:SetPoint("RIGHT", SendMailCancelButton, "LEFT", -2, 0)
E:Point(SendMailMailButton, "RIGHT", SendMailCancelButton, "LEFT", -2, 0)
S:HandleButton(SendMailCancelButton)
SendMailCancelButton:SetPoint("BOTTOMRIGHT", -45, 80)
E:Point(SendMailCancelButton, "BOTTOMRIGHT", -45, 80)
SendMailMoneyFrame:SetPoint("BOTTOMLEFT", 170, 84)
E:Point(SendMailMoneyFrame, "BOTTOMLEFT", 170, 84)
-- Open Mail Frame
E:StripTextures(OpenMailFrame, true)
E:CreateBackdrop(OpenMailFrame, "Transparent")
OpenMailFrame.backdrop:SetPoint("TOPLEFT", 12, -12)
OpenMailFrame.backdrop:SetPoint("BOTTOMRIGHT", -34, 74)
E:Point(OpenMailFrame.backdrop, "TOPLEFT", 12, -12)
E:Point(OpenMailFrame.backdrop, "BOTTOMRIGHT", -34, 74)
E:StripTextures(OpenMailPackageButton)
E:StyleButton(OpenMailPackageButton)
@@ -187,10 +187,10 @@ local function LoadSkin()
S:HandleCloseButton(OpenMailCloseButton)
S:HandleButton(OpenMailReplyButton)
OpenMailReplyButton:SetPoint("RIGHT", OpenMailDeleteButton, "LEFT", -2, 0)
E:Point(OpenMailReplyButton, "RIGHT", OpenMailDeleteButton, "LEFT", -2, 0)
S:HandleButton(OpenMailDeleteButton)
OpenMailDeleteButton:SetPoint("RIGHT", OpenMailCancelButton, "LEFT", -2, 0)
E:Point(OpenMailDeleteButton, "RIGHT", OpenMailCancelButton, "LEFT", -2, 0)
S:HandleButton(OpenMailCancelButton)
+6 -6
View File
@@ -19,8 +19,8 @@ local function LoadSkin()
E:StripTextures(MerchantFrame, true)
E:CreateBackdrop(MerchantFrame, "Transparent")
MerchantFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
MerchantFrame.backdrop:SetPoint("BOTTOMRIGHT", -28, 60)
E:Point(MerchantFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(MerchantFrame.backdrop, "BOTTOMRIGHT", -28, 60)
S:HandleCloseButton(MerchantFrameCloseButton, MerchantFrame.backdrop)
@@ -37,13 +37,13 @@ local function LoadSkin()
E:StripTextures(itemButton)
E:StyleButton(itemButton)
E:SetTemplate(itemButton, "Default", true)
itemButton:SetPoint("TOPLEFT", item, "TOPLEFT", 4, -4)
E:Point(itemButton, "TOPLEFT", item, "TOPLEFT", 4, -4)
iconTexture:SetTexCoord(unpack(E.TexCoords))
E:SetInside(iconTexture)
_G["MerchantItem"..i.."MoneyFrame"]:ClearAllPoints()
_G["MerchantItem"..i.."MoneyFrame"]:SetPoint("BOTTOMLEFT", itemButton, "BOTTOMRIGHT", 3, 0)
E:Point(_G["MerchantItem"..i.."MoneyFrame"], "BOTTOMLEFT", itemButton, "BOTTOMRIGHT", 3, 0)
end
S:HandleNextPrevButton(MerchantNextPageButton)
@@ -74,8 +74,8 @@ local function LoadSkin()
E:StripTextures(MerchantBuyBackItem, true)
E:CreateBackdrop(MerchantBuyBackItem, "Transparent")
MerchantBuyBackItem.backdrop:SetPoint("TOPLEFT", -6, 6)
MerchantBuyBackItem.backdrop:SetPoint("BOTTOMRIGHT", 6, -6)
E:Point(MerchantBuyBackItem.backdrop, "TOPLEFT", -6, 6)
E:Point(MerchantBuyBackItem.backdrop, "BOTTOMRIGHT", 6, -6)
E:StripTextures(MerchantBuyBackItemItemButton)
E:StyleButton(MerchantBuyBackItemItemButton)
@@ -38,14 +38,12 @@ local function LoadSkin()
local text = _G["MirrorTimer"..i.."Text"]
E:StripTextures(mirrorTimer)
mirrorTimer:SetWidth(222)
mirrorTimer:SetHeight(18)
E:Size(mirrorTimer, 222, 18)
mirrorTimer.label = text
statusBar:SetStatusBarTexture(E["media"].normTex)
E:RegisterStatusBar(statusBar)
E:CreateBackdrop(statusBar)
statusBar:SetWidth(222)
statusBar:SetHeight(18)
E:Size(statusBar, 222, 18)
text:Hide()
local TimerText = mirrorTimer:CreateFontString(nil, "OVERLAY")
+34 -36
View File
@@ -47,7 +47,7 @@ local function LoadSkin()
E:SetTemplate(this, "Transparent", true)
this:SetBackdropColor(unpack(E["media"].backdropfadecolor))
this:ClearAllPoints()
this:SetPoint("BOTTOMLEFT", ChatFrame1, "TOPLEFT", 0, 35)
E:Point(this, "BOTTOMLEFT", ChatFrame1, "TOPLEFT", 0, 35)
end)
else
HookScript(_G[ChatMenus[i]], "OnShow", function()
@@ -61,18 +61,16 @@ local function LoadSkin()
local width, height = (f:GetWidth() * .54), f:GetHeight()
local left = f:CreateTexture(nil, "HIGHLIGHT")
left:SetWidth(width)
left:SetHeight(height)
left:SetPoint("LEFT", f, "CENTER")
E:Size(left, width, height)
E:Point(left, "LEFT", f, "CENTER")
left:SetTexture(1, 1, 1, 0.3)
left:SetHeight(16)
E:Height(left, 16)
local right = f:CreateTexture(nil, "HIGHLIGHT")
right:SetWidth(width)
right:SetHeight(height)
right:SetPoint("RIGHT", f, "CENTER")
E:Size(right, width, height)
E:Point(right, "RIGHT", f, "CENTER")
right:SetTexture(1, 1, 1, 0.3)
right:SetHeight(16)
E:Height(right, 16)
end
for i = 1, UIDROPDOWNMENU_MAXBUTTONS do
@@ -100,11 +98,11 @@ local function LoadSkin()
buttonHighlight:SetAllPoints(button)
if i == 1 then
buttonHighlight:SetPoint("TOPLEFT", button, "TOPLEFT", -8, 0)
buttonHighlight:SetPoint("TOPRIGHT", button, "TOPRIGHT", -8, 0)
E:Point(buttonHighlight, "TOPLEFT", button, "TOPLEFT", -8, 0)
E:Point(buttonHighlight, "TOPRIGHT", button, "TOPRIGHT", -8, 0)
else
buttonHighlight:SetPoint("TOPLEFT", button, "TOPLEFT", -4, 0)
buttonHighlight:SetPoint("TOPRIGHT", button, "TOPRIGHT", -4, 0)
E:Point(buttonHighlight, "TOPLEFT", button, "TOPLEFT", -4, 0)
E:Point(buttonHighlight, "TOPRIGHT", button, "TOPRIGHT", -4, 0)
end
end
end
@@ -120,7 +118,7 @@ local function LoadSkin()
E:SetTemplate(buttonBackdropMenu, "Transparent")
if i == 2 then
buttonBackdropMenu:SetPoint("TOPRIGHT", -4, 0)
E:Point(buttonBackdropMenu, "TOPRIGHT", -4, 0)
end
for j = 1, UIDROPDOWNMENU_MAXBUTTONS do
@@ -132,8 +130,8 @@ local function LoadSkin()
buttonHighlight:SetAllPoints(button)
if i == 2 then
buttonHighlight:SetPoint("TOPLEFT", button, "TOPLEFT", -8, 0)
buttonHighlight:SetPoint("TOPRIGHT", button, "TOPRIGHT", 0, 0)
E:Point(buttonHighlight, "TOPLEFT", button, "TOPLEFT", -8, 0)
E:Point(buttonHighlight, "TOPRIGHT", button, "TOPRIGHT", 0, 0)
end
end
end
@@ -157,8 +155,8 @@ local function LoadSkin()
itemFrameBox:DisableDrawLayer("BACKGROUND")
S:HandleEditBox(itemFrameBox)
itemFrameBox.backdrop:SetPoint("TOPLEFT", -2, -4)
itemFrameBox.backdrop:SetPoint("BOTTOMRIGHT", 2, 4)
E:Point(itemFrameBox.backdrop, "TOPLEFT", -2, -4)
E:Point(itemFrameBox.backdrop, "BOTTOMRIGHT", 2, 4)
E:StripTextures(closeButton)
S:HandleCloseButton(closeButton)
@@ -169,7 +167,7 @@ local function LoadSkin()
end
--select(8, wideBox:GetRegions()):Hide()
S:HandleEditBox(wideBox)
wideBox:SetHeight(22)
E:Height(wideBox, 22)
for j = 1, 2 do
S:HandleButton(_G["StaticPopup"..i.."Button"..j])
@@ -208,9 +206,9 @@ local function LoadSkin()
title:SetTexture("")
title:ClearAllPoints()
if title == _G["GameMenuFrameHeader"] then
title:SetPoint("TOP", GameMenuFrame, 0, 7)
E:Point(title, "TOP", GameMenuFrame, 0, 7)
else
title:SetPoint("TOP", BlizzardHeader[i], 0, 0)
E:Point(title, "TOP", BlizzardHeader[i], 0, 0)
end
end
end
@@ -240,17 +238,17 @@ local function LoadSkin()
-- if a button position is not really where we want, we move it here
OptionsFrameCancel:ClearAllPoints()
OptionsFrameCancel:SetPoint("BOTTOMLEFT",OptionsFrame,"BOTTOMRIGHT",-105,15)
E:Point(OptionsFrameCancel, "BOTTOMLEFT",OptionsFrame,"BOTTOMRIGHT",-105,15)
OptionsFrameOkay:ClearAllPoints()
OptionsFrameOkay:SetPoint("RIGHT",OptionsFrameCancel,"LEFT",-4,0)
E:Point(OptionsFrameOkay, "RIGHT",OptionsFrameCancel,"LEFT",-4,0)
SoundOptionsFrameOkay:ClearAllPoints()
SoundOptionsFrameOkay:SetPoint("RIGHT",SoundOptionsFrameCancel,"LEFT",-4,0)
E:Point(SoundOptionsFrameOkay, "RIGHT",SoundOptionsFrameCancel,"LEFT",-4,0)
UIOptionsFrameOkay:ClearAllPoints()
UIOptionsFrameOkay:SetPoint("RIGHT",UIOptionsFrameCancel,"LEFT", -4,0)
E:Point(UIOptionsFrameOkay, "RIGHT",UIOptionsFrameCancel,"LEFT", -4,0)
-- others
ZoneTextFrame:ClearAllPoints()
ZoneTextFrame:SetPoint("TOP", UIParent, 0, -128)
E:Point(ZoneTextFrame, "TOP", UIParent, 0, -128)
E:StripTextures(CoinPickupFrame)
E:SetTemplate(CoinPickupFrame, "Transparent")
@@ -263,8 +261,8 @@ local function LoadSkin()
StackSplitFrame.bg1 = CreateFrame("Frame", nil, StackSplitFrame)
E:SetTemplate(StackSplitFrame.bg1, "Transparent")
StackSplitFrame.bg1:SetPoint("TOPLEFT", 10, -15)
StackSplitFrame.bg1:SetPoint("BOTTOMRIGHT", -10, 55)
E:Point(StackSplitFrame.bg1, "TOPLEFT", 10, -15)
E:Point(StackSplitFrame.bg1, "BOTTOMRIGHT", -10, 55)
StackSplitFrame.bg1:SetFrameLevel(StackSplitFrame.bg1:GetFrameLevel() - 1)
-- Declension frame
@@ -325,13 +323,13 @@ local function LoadSkin()
end
BasicOptions.backdrop = CreateFrame("Frame", nil, BasicOptions)
BasicOptions.backdrop:SetPoint("TOPLEFT", BasicOptionsGeneral, -20, 35)
BasicOptions.backdrop:SetPoint("BOTTOMRIGHT", BasicOptionsHelp, 20, -130)
E:Point(BasicOptions.backdrop, "TOPLEFT", BasicOptionsGeneral, -20, 35)
E:Point(BasicOptions.backdrop, "BOTTOMRIGHT", BasicOptionsHelp, 20, -130)
E:SetTemplate(BasicOptions.backdrop, "Transparent")
AdvancedOptions.backdrop = CreateFrame("Frame", nil, AdvancedOptions)
AdvancedOptions.backdrop:SetPoint("TOPLEFT", BasicOptionsGeneral, -20, 35)
AdvancedOptions.backdrop:SetPoint("BOTTOMRIGHT", BasicOptionsHelp, 20, -130)
E:Point(AdvancedOptions.backdrop, "TOPLEFT", BasicOptionsGeneral, -20, 35)
E:Point(AdvancedOptions.backdrop, "BOTTOMRIGHT", BasicOptionsHelp, 20, -130)
E:SetTemplate(AdvancedOptions.backdrop, "Transparent")
for i = 1, 2 do
@@ -342,8 +340,8 @@ local function LoadSkin()
tab:SetFrameLevel(tab:GetParent():GetFrameLevel() + 2)
tab.backdrop:SetFrameLevel(tab:GetParent():GetFrameLevel() + 1)
tab.backdrop:SetPoint("TOPLEFT", 5, E.PixelMode and -14 or -16)
tab.backdrop:SetPoint("BOTTOMRIGHT", -5, E.PixelMode and -4 or -6)
E:Point(tab.backdrop, "TOPLEFT", 5, E.PixelMode and -14 or -16)
E:Point(tab.backdrop, "BOTTOMRIGHT", -5, E.PixelMode and -4 or -6)
tab:SetScript("OnClick", function()
PanelTemplates_Tab_OnClick(UIOptionsFrame)
@@ -377,11 +375,11 @@ local function LoadSkin()
end--]]
OptionsFrameDefaults:ClearAllPoints()
OptionsFrameDefaults:SetPoint("TOPLEFT", OptionsFrame, "BOTTOMLEFT", 15, 36)
E:Point(OptionsFrameDefaults, "TOPLEFT", OptionsFrame, "BOTTOMLEFT", 15, 36)
S:HandleButton(UIOptionsFrameResetTutorials)
SoundOptionsFrameCheckButton1:SetPoint("TOPLEFT", "SoundOptionsFrame", "TOPLEFT", 16, -15)
E:Point(SoundOptionsFrameCheckButton1, "TOPLEFT", "SoundOptionsFrame", "TOPLEFT", 16, -15)
-- Interface Options Frame Dropdown
local interfacedropdown ={
+4 -4
View File
@@ -11,8 +11,8 @@ local function LoadSkin()
E:StripTextures(PetitionFrame, true)
E:CreateBackdrop(PetitionFrame, "Transparent")
PetitionFrame.backdrop:SetPoint("TOPLEFT", 12, -17)
PetitionFrame.backdrop:SetPoint("BOTTOMRIGHT", -28, 65)
E:Point(PetitionFrame.backdrop, "TOPLEFT", 12, -17)
E:Point(PetitionFrame.backdrop, "BOTTOMRIGHT", -28, 65)
S:HandleButton(PetitionFrameSignButton)
S:HandleButton(PetitionFrameRequestButton)
@@ -32,8 +32,8 @@ local function LoadSkin()
PetitionFrameInstructions:SetTextColor(1, 1, 1)
PetitionFrameRenameButton:SetPoint("LEFT", PetitionFrameRequestButton, "RIGHT", 3, 0)
PetitionFrameRenameButton:SetPoint("RIGHT", PetitionFrameCancelButton, "LEFT", -3, 0)
E:Point(PetitionFrameRenameButton, "LEFT", PetitionFrameRequestButton, "RIGHT", 3, 0)
E:Point(PetitionFrameRenameButton, "RIGHT", PetitionFrameCancelButton, "LEFT", -3, 0)
end
S:AddCallback("Petition", LoadSkin)
+33 -40
View File
@@ -59,13 +59,12 @@ local function LoadSkin()
E:StripTextures(item)
E:SetTemplate(item, "Default")
E:StyleButton(item)
item:SetWidth(item:GetWidth() - 4)
E:Width(item, item:GetWidth() - 4)
item:SetFrameLevel(item:GetFrameLevel() + 2)
icon:SetDrawLayer("OVERLAY")
icon:SetWidth(icon:GetWidth() -(E.Spacing*2))
icon:SetHeight(icon:GetHeight() -(E.Spacing*2))
icon:SetPoint("TOPLEFT", E.Border, -E.Border)
E:Size(icon, icon:GetWidth() -(E.Spacing*2), icon:GetHeight() -(E.Spacing*2))
E:Point(icon, "TOPLEFT", E.Border, -E.Border)
S:HandleIcon(icon)
count:SetParent(item.backdrop)
@@ -80,13 +79,12 @@ local function LoadSkin()
E:StripTextures(item)
E:SetTemplate(item, "Default")
E:StyleButton(item)
item:SetWidth(item:GetWidth() - 4)
E:Width(item, item:GetWidth() - 4)
item:SetFrameLevel(item:GetFrameLevel() + 2)
icon:SetDrawLayer("OVERLAY")
icon:SetWidth(icon:GetWidth() -(E.Spacing*2))
icon:SetHeight(icon:GetHeight() -(E.Spacing*2))
icon:SetPoint("TOPLEFT", E.Border, -E.Border)
E:Size(icon, icon:GetWidth() -(E.Spacing*2), icon:GetHeight() -(E.Spacing*2))
E:Point(icon, "TOPLEFT", E.Border, -E.Border)
S:HandleIcon(icon)
count:SetParent(item.backdrop)
@@ -101,13 +99,12 @@ local function LoadSkin()
E:StripTextures(item)
E:SetTemplate(item, "Default")
E:StyleButton(item)
item:SetWidth(item:GetWidth() - 4)
E:Width(item, item:GetWidth() - 4)
item:SetFrameLevel(item:GetFrameLevel() + 2)
icon:SetDrawLayer("OVERLAY")
icon:SetWidth(icon:GetWidth() -(E.Spacing*2))
icon:SetHeight(icon:GetHeight() -(E.Spacing*2))
icon:SetPoint("TOPLEFT", E.Border, -E.Border)
E:Size(icon, icon:GetWidth() -(E.Spacing*2), icon:GetHeight() -(E.Spacing*2))
E:Point(icon, "TOPLEFT", E.Border, -E.Border)
S:HandleIcon(icon)
count:SetParent(item.backdrop)
@@ -138,8 +135,7 @@ local function LoadSkin()
E:SetTemplate(QuestRewardItemHighlight, "Default", nil, true)
QuestRewardItemHighlight:SetBackdropBorderColor(1, 1, 0)
QuestRewardItemHighlight:SetBackdropColor(0, 0, 0, 0)
QuestRewardItemHighlight:SetWidth(142)
QuestRewardItemHighlight:SetHeight(40)
E:Size(QuestRewardItemHighlight, 142, 40)
hooksecurefunc("QuestRewardItem_OnClick", function()
QuestRewardItemHighlight:ClearAllPoints();
@@ -254,36 +250,35 @@ local function LoadSkin()
end)
E:CreateBackdrop(QuestFrame, "Transparent")
QuestFrame.backdrop:SetPoint("TOPLEFT", 15, -19)
QuestFrame.backdrop:SetPoint("BOTTOMRIGHT", -30, 67)
E:Point(QuestFrame.backdrop, "TOPLEFT", 15, -19)
E:Point(QuestFrame.backdrop, "BOTTOMRIGHT", -30, 67)
E:CreateBackdrop(QuestLogFrame, "Transparent")
QuestLogFrame.backdrop:SetPoint("TOPLEFT", 10, -12)
QuestLogFrame.backdrop:SetPoint("BOTTOMRIGHT", -1, 8)
E:Point(QuestLogFrame.backdrop, "TOPLEFT", 10, -12)
E:Point(QuestLogFrame.backdrop, "BOTTOMRIGHT", -1, 8)
E:StripTextures(QuestLogListScrollFrame)
E:CreateBackdrop(QuestLogListScrollFrame, "Default", true)
QuestLogListScrollFrame:SetWidth(334)
E:Width(QuestLogListScrollFrame, 334)
E:StripTextures(QuestLogDetailScrollFrame)
E:CreateBackdrop(QuestLogDetailScrollFrame, "Default", true)
QuestLogDetailScrollFrame:SetWidth(334)
QuestLogDetailScrollFrame:SetHeight(296)
E:Size(QuestLogDetailScrollFrame, 334, 296)
QuestLogDetailScrollFrame:ClearAllPoints()
QuestLogDetailScrollFrame:SetPoint("TOPRIGHT", QuestLogListScrollFrame, "BOTTOMRIGHT", 0, -6)
E:Point(QuestLogDetailScrollFrame, "TOPRIGHT", QuestLogListScrollFrame, "BOTTOMRIGHT", 0, -6)
QuestLogNoQuestsText:ClearAllPoints()
QuestLogNoQuestsText:SetPoint("CENTER", EmptyQuestLogFrame, "CENTER", -45, 65)
E:Point(QuestLogNoQuestsText, "CENTER", EmptyQuestLogFrame, "CENTER", -45, 65)
QuestLogFrameAbandonButton:SetPoint("BOTTOMLEFT", 18, 15)
QuestLogFrameAbandonButton:SetWidth(126)
E:Point(QuestLogFrameAbandonButton, "BOTTOMLEFT", 18, 15)
E:Width(QuestLogFrameAbandonButton, 126)
QuestFramePushQuestButton:ClearAllPoints()
QuestFramePushQuestButton:SetPoint("BOTTOM", QuestFrame, "BOTTOM", 18, 15)
QuestFramePushQuestButton:SetWidth(118)
E:Point(QuestFramePushQuestButton, "BOTTOM", QuestFrame, "BOTTOM", 18, 15)
E:Width(QuestFramePushQuestButton, 118)
QuestFrameExitButton:SetPoint("BOTTOMRIGHT", -8, 15)
QuestFrameExitButton:SetWidth(100)
E:Point(QuestFrameExitButton, "BOTTOMRIGHT", -8, 15)
E:Width(QuestFrameExitButton, 100)
S:HandleScrollBar(QuestLogDetailScrollFrameScrollBar)
S:HandleScrollBar(QuestDetailScrollFrameScrollBar)
@@ -295,7 +290,7 @@ local function LoadSkin()
S:HandleCloseButton(QuestLogFrameCloseButton)
QuestLogFrameCloseButton:ClearAllPoints()
QuestLogFrameCloseButton:SetPoint("TOPRIGHT", 2, -9)
E:Point(QuestLogFrameCloseButton, "TOPRIGHT", 2, -9)
QuestLogTrack:Hide()
@@ -303,9 +298,8 @@ local function LoadSkin()
S:HandleButton(QuestTrack)
QuestTrack:SetText(TRACK_QUEST)
QuestTrack:SetPoint("TOP", QuestLogFrame, "TOP", -64, -42)
QuestTrack:SetWidth(110)
QuestTrack:SetHeight(21)
E:Point(QuestTrack, "TOP", QuestLogFrame, "TOP", -64, -42)
E:Size(QuestTrack, 110, 21)
HookScript(QuestTrack, "OnClick", function()
if IsQuestWatched(GetQuestLogSelection()) then
@@ -354,13 +348,12 @@ local function LoadSkin()
E:StripTextures(item)
E:SetTemplate(item, "Default")
E:StyleButton(item)
item:SetWidth(item:GetWidth() - 4)
E:Width(item, item:GetWidth() - 4)
item:SetFrameLevel(item:GetFrameLevel() + 2)
icon:SetDrawLayer("OVERLAY")
icon:SetWidth(icon:GetWidth() -(E.Spacing*2))
icon:SetHeight(icon:GetHeight() -(E.Spacing*2))
icon:SetPoint("TOPLEFT", E.Border, -E.Border)
E:Size(icon, icon:GetWidth() -(E.Spacing*2), icon:GetHeight() -(E.Spacing*2))
E:Point(icon, "TOPLEFT", E.Border, -E.Border)
S:HandleIcon(icon)
count:SetParent(item.backdrop)
@@ -399,7 +392,7 @@ local function LoadSkin()
questLogTitle.Text = questLogTitle:CreateFontString(nil, "OVERLAY")
E:FontTemplate(questLogTitle.Text, nil, 22)
questLogTitle.Text:SetPoint("LEFT", 3, 0)
E:Point(questLogTitle.Text, "LEFT", 3, 0)
questLogTitle.Text:SetText("+")
hooksecurefunc(questLogTitle, "SetNormalTexture", function(self, texture)
@@ -420,11 +413,11 @@ local function LoadSkin()
QuestLogCollapseAllButton.SetHighlightTexture = E.noop
QuestLogCollapseAllButton:SetDisabledTexture("")
QuestLogCollapseAllButton.SetDisabledTexture = E.noop
QuestLogCollapseAllButton:SetPoint("TOPLEFT", -45, 7)
E:Point(QuestLogCollapseAllButton, "TOPLEFT", -45, 7)
QuestLogCollapseAllButton.Text = QuestLogCollapseAllButton:CreateFontString(nil, "OVERLAY")
E:FontTemplate(QuestLogCollapseAllButton.Text, nil, 22)
QuestLogCollapseAllButton.Text:SetPoint("LEFT", 3, 0)
E:Point(QuestLogCollapseAllButton.Text, "LEFT", 3, 0)
QuestLogCollapseAllButton.Text:SetText("+")
hooksecurefunc(QuestLogCollapseAllButton, "SetNormalTexture", function(self, texture)
+4 -5
View File
@@ -12,7 +12,7 @@ local function LoadSkin()
E:StripTextures(QuestTimerFrame)
E:SetTemplate(QuestTimerFrame, "Transparent")
QuestTimerHeader:SetPoint("TOP", 1, 8)
E:Point(QuestTimerHeader, "TOP", 1, 8)
E:CreateMover(QuestTimerFrame, "QuestTimerFrameMover", QUEST_TIMERS)
@@ -20,14 +20,13 @@ local function LoadSkin()
QuestTimerFrame:SetAllPoints(QuestTimerFrameMover)
local QuestTimerFrameHolder = CreateFrame("Frame", "QuestTimerFrameHolder", E.UIParent)
QuestTimerFrameHolder:SetWidth(150)
QuestTimerFrameHolder:SetHeight(22)
QuestTimerFrameHolder:SetPoint("TOP", QuestTimerFrameMover, "TOP")
E:Size(QuestTimerFrameHolder, 150, 22)
E:Point(QuestTimerFrameHolder, "TOP", QuestTimerFrameMover, "TOP")
hooksecurefunc(QuestTimerFrame, "SetPoint", function(_, _, parent)
if parent ~= QuestTimerFrameHolder then
QuestTimerFrame:ClearAllPoints()
QuestTimerFrame:SetPoint("TOP", QuestTimerFrameHolder, "TOP")
E:Point(QuestTimerFrame, "TOP", QuestTimerFrameHolder, "TOP")
end
end)
end
+11 -11
View File
@@ -51,8 +51,8 @@ function LoadSkin()
if not rp.backdrop then
_G["RaidPullout"..i.."MenuBackdrop"]:SetBackdrop(nil)
E:CreateBackdrop(rp, "Transparent")
rp.backdrop:SetPoint("TOPLEFT", 9, -17)
rp.backdrop:SetPoint("BOTTOMRIGHT", -7, 10)
E:Point(rp.backdrop, "TOPLEFT", 9, -17)
E:Point(rp.backdrop, "BOTTOMRIGHT", -7, 10)
end
end
end
@@ -73,19 +73,19 @@ function LoadSkin()
_G[sBar]:SetStatusBarTexture(E["media"].normTex)
end
_G[pfBName.."ManaBar"]:SetPoint("TOP", "$parentHealthBar", "BOTTOM", 0, 0)
_G[pfBName.."Target"]:SetPoint("TOP", "$parentManaBar", "BOTTOM", 0, -1)
E:Point(_G[pfBName.."ManaBar"], "TOP", "$parentHealthBar", "BOTTOM", 0, 0)
E:Point(_G[pfBName.."Target"], "TOP", "$parentManaBar", "BOTTOM", 0, -1)
E:CreateBackdrop(pfBObj, "Default")
pfBObj.backdrop:SetPoint("TOPLEFT", E.PixelMode and 0 or -1, -(E.PixelMode and 10 or 9))
pfBObj.backdrop:SetPoint("BOTTOMRIGHT", E.PixelMode and 0 or 1, E.PixelMode and 1 or 0)
E:Point(pfBObj.backdrop, "TOPLEFT", E.PixelMode and 0 or -1, -(E.PixelMode and 10 or 9))
E:Point(pfBObj.backdrop, "BOTTOMRIGHT", E.PixelMode and 0 or 1, E.PixelMode and 1 or 0)
end
if not _G[pfBName.."TargetTargetFrame"].backdrop then
E:StripTextures(_G[pfBName.."TargetTargetFrame"])
E:CreateBackdrop(_G[pfBName.."TargetTargetFrame"], "Default")
_G[pfBName.."TargetTargetFrame"].backdrop:SetPoint("TOPLEFT", E.PixelMode and 10 or 9, -(E.PixelMode and 15 or 14))
_G[pfBName.."TargetTargetFrame"].backdrop:SetPoint("BOTTOMRIGHT", -(E.PixelMode and 10 or 9), E.PixelMode and 8 or 7)
E:Point(_G[pfBName.."TargetTargetFrame"].backdrop, "TOPLEFT", E.PixelMode and 10 or 9, -(E.PixelMode and 15 or 14))
E:Point(_G[pfBName.."TargetTargetFrame"].backdrop, "BOTTOMRIGHT", -(E.PixelMode and 10 or 9), E.PixelMode and 8 or 7)
end
end
end)]]
@@ -99,9 +99,9 @@ function LoadSkin()
S:HandleButton(ReadyCheckFrameYesButton)
S:HandleButton(ReadyCheckFrameNoButton)
ReadyCheckFrameYesButton:SetPoint("RIGHT", ReadyCheckFrame, "CENTER", -1, 0)
ReadyCheckFrameNoButton:SetPoint("LEFT", ReadyCheckFrameYesButton, "RIGHT", 3, 0)
ReadyCheckFrameText:SetPoint("TOP", ReadyCheckFrame, "TOP", 0, -18)
E:Point(ReadyCheckFrameYesButton, "RIGHT", ReadyCheckFrame, "CENTER", -1, 0)
E:Point(ReadyCheckFrameNoButton, "LEFT", ReadyCheckFrameYesButton, "RIGHT", 3, 0)
E:Point(ReadyCheckFrameText, "TOP", ReadyCheckFrame, "TOP", 0, -18)
end
S:AddCallbackForAddon("Blizzard_RaidUI", "RaidUI", LoadSkin)
+4 -4
View File
@@ -12,8 +12,8 @@ local function LoadSkin()
E:StripTextures(SpellBookFrame, true)
E:CreateBackdrop(SpellBookFrame, "Transparent")
SpellBookFrame.backdrop:SetPoint("TOPLEFT", 10, -12)
SpellBookFrame.backdrop:SetPoint("BOTTOMRIGHT", -31, 75)
E:Point(SpellBookFrame.backdrop, "TOPLEFT", 10, -12)
E:Point(SpellBookFrame.backdrop, "BOTTOMRIGHT", -31, 75)
for i = 1, 3 do
local tab = _G["SpellBookFrameTabButton"..i]
@@ -23,8 +23,8 @@ local function LoadSkin()
S:HandleTab(tab)
tab.backdrop:SetPoint("TOPLEFT", 14, E.PixelMode and -17 or -19)
tab.backdrop:SetPoint("BOTTOMRIGHT", -14, 19)
E:Point(tab.backdrop, "TOPLEFT", 14, E.PixelMode and -17 or -19)
E:Point(tab.backdrop, "BOTTOMRIGHT", -14, 19)
end
S:HandleNextPrevButton(SpellBookPrevPageButton)
+3 -4
View File
@@ -16,8 +16,8 @@ function LoadSkin()
E:StripTextures(PetStableFrame)
E:Kill(PetStableFramePortrait)
E:CreateBackdrop(PetStableFrame, "Transparent")
PetStableFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
PetStableFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 71)
E:Point(PetStableFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(PetStableFrame.backdrop, "BOTTOMRIGHT", -32, 71)
S:HandleButton(PetStablePurchaseButton)
S:HandleCloseButton(PetStableFrameCloseButton)
@@ -35,8 +35,7 @@ function LoadSkin()
PetStablePetInfo:GetRegions():SetTexCoord(0.04, 0.15, 0.06, 0.30)
PetStablePetInfo:SetFrameLevel(PetModelFrame:GetFrameLevel() + 2)
E:CreateBackdrop(PetStablePetInfo, "Default")
PetStablePetInfo:SetWidth(24)
PetStablePetInfo:SetHeight(24)
E:Size(PetStablePetInfo, 24)
hooksecurefunc("PetStable_Update", function()
local happiness = GetPetHappiness()
+10 -10
View File
@@ -13,8 +13,8 @@ local function LoadSkin()
E:StripTextures(TabardFrame)
E:Kill(TabardFramePortrait)
E:CreateBackdrop(TabardFrame, "Transparent")
TabardFrame.backdrop:SetPoint("TOPLEFT", 10, -12)
TabardFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 74)
E:Point(TabardFrame.backdrop, "TOPLEFT", 10, -12)
E:Point(TabardFrame.backdrop, "BOTTOMRIGHT", -32, 74)
E:CreateBackdrop(TabardModel, "Default")
S:HandleButton(TabardFrameCancelButton)
S:HandleButton(TabardFrameAcceptButton)
@@ -32,24 +32,24 @@ local function LoadSkin()
if(i > 1) then
_G[custom]:ClearAllPoints()
_G[custom]:SetPoint("TOP", _G["TabardFrameCustomization"..i-1], "BOTTOM", 0, -6)
E:Point(_G[custom], "TOP", _G["TabardFrameCustomization"..i-1], "BOTTOM", 0, -6)
else
local point, anchor, point2, x, y = _G[custom]:GetPoint()
_G[custom]:SetPoint(point, anchor, point2, x, y+4)
E:Point(_G[custom], point, anchor, point2, x, y+4)
end
end
TabardCharacterModelRotateLeftButton:SetPoint("BOTTOMLEFT", 4, 4)
TabardCharacterModelRotateRightButton:SetPoint("TOPLEFT", TabardCharacterModelRotateLeftButton, "TOPRIGHT", 4, 0)
hooksecurefunc(TabardCharacterModelRotateLeftButton, "SetPoint", function(self, point, _, _, xOffset, yOffset)
E:Point(TabardCharacterModelRotateLeftButton, "BOTTOMLEFT", 4, 4)
E:Point(TabardCharacterModelRotateRightButton, "TOPLEFT", TabardCharacterModelRotateLeftButton, "TOPRIGHT", 4, 0)
hooksecurefunc(TabardCharacterModelRotateLeftButton, "SetPoint" , function(self, point, _, _, xOffset, yOffset)
if point ~= "BOTTOMLEFT" or xOffset ~= 4 or yOffset ~= 4 then
self:SetPoint("BOTTOMLEFT", 4, 4)
E:Point(self, "BOTTOMLEFT", 4, 4)
end
end)
hooksecurefunc(TabardCharacterModelRotateRightButton, "SetPoint", function(self, point, _, _, xOffset, yOffset)
hooksecurefunc(TabardCharacterModelRotateRightButton, "SetPoint" , function(self, point, _, _, xOffset, yOffset)
if point ~= "TOPLEFT" or xOffset ~= 4 or yOffset ~= 0 then
self:SetPoint("TOPLEFT", TabardCharacterModelRotateLeftButton, "TOPRIGHT", 4, 0)
E:Point(self, "TOPLEFT", TabardCharacterModelRotateLeftButton, "TOPRIGHT", 4, 0)
end
end)
end
+7 -7
View File
@@ -12,8 +12,8 @@ local function LoadSkin()
E:StripTextures(TalentFrame)
E:CreateBackdrop(TalentFrame, "Transparent")
TalentFrame.backdrop:SetPoint("TOPLEFT", 13, -12)
TalentFrame.backdrop:SetPoint("BOTTOMRIGHT", -31, 76)
E:Point(TalentFrame.backdrop, "TOPLEFT", 13, -12)
E:Point(TalentFrame.backdrop, "BOTTOMRIGHT", -31, 76)
TalentFramePortrait:Hide()
@@ -27,14 +27,14 @@ local function LoadSkin()
E:StripTextures(TalentFrameScrollFrame)
E:CreateBackdrop(TalentFrameScrollFrame, "Default")
TalentFrameScrollFrame.backdrop:SetPoint("TOPLEFT", -1, 2)
TalentFrameScrollFrame.backdrop:SetPoint("BOTTOMRIGHT", 6, -2)
E:Point(TalentFrameScrollFrame.backdrop, "TOPLEFT", -1, 2)
E:Point(TalentFrameScrollFrame.backdrop, "BOTTOMRIGHT", 6, -2)
S:HandleScrollBar(TalentFrameScrollFrameScrollBar)
TalentFrameScrollFrameScrollBar:SetPoint("TOPLEFT", TalentFrameScrollFrame, "TOPRIGHT", 10, -16)
E:Point(TalentFrameScrollFrameScrollBar, "TOPLEFT", TalentFrameScrollFrame, "TOPRIGHT", 10, -16)
TalentFrameSpentPoints:SetPoint("TOP", 0, -42)
TalentFrameTalentPointsText:SetPoint("BOTTOMRIGHT", TalentFrame, "BOTTOMLEFT", 220, 84)
E:Point(TalentFrameSpentPoints, "TOP", 0, -42)
E:Point(TalentFrameTalentPointsText, "BOTTOMRIGHT", TalentFrame, "BOTTOMLEFT", 220, 84)
for i = 1, MAX_NUM_TALENTS do
local talent = _G["TalentFrameTalent"..i]
+2 -2
View File
@@ -5,8 +5,8 @@ local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.taxi ~= true then return end
E:CreateBackdrop(TaxiFrame, "Transparent")
TaxiFrame.backdrop:SetPoint("TOPLEFT", 11, -12)
TaxiFrame.backdrop:SetPoint("BOTTOMRIGHT", -34, 75)
E:Point(TaxiFrame.backdrop, "TOPLEFT", 11, -12)
E:Point(TaxiFrame.backdrop, "BOTTOMRIGHT", -34, 75)
E:StripTextures(TaxiFrame)
+2 -2
View File
@@ -40,8 +40,8 @@ local function LoadSkin()
E:RegisterStatusBar(GameTooltipStatusBar)
E:CreateBackdrop(GameTooltipStatusBar, "Transparent")
GameTooltipStatusBar:ClearAllPoints()
GameTooltipStatusBar:SetPoint("TOPLEFT", GameTooltip, "BOTTOMLEFT", E.Border, -(E.Spacing * 3))
GameTooltipStatusBar:SetPoint("TOPRIGHT", GameTooltip, "BOTTOMRIGHT", -E.Border, -(E.Spacing * 3))
E:Point(GameTooltipStatusBar, "TOPLEFT", GameTooltip, "BOTTOMLEFT", E.Border, -(E.Spacing * 3))
E:Point(GameTooltipStatusBar, "TOPRIGHT", GameTooltip, "BOTTOMRIGHT", -E.Border, -(E.Spacing * 3))
TT:SecureHookScript(GameTooltip, "OnSizeChanged", "CheckBackdropColor")
TT:SecureHookScript(GameTooltip, "OnUpdate", "CheckBackdropColor")
+9 -9
View File
@@ -15,10 +15,10 @@ local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.trade ~= true then return end
E:StripTextures(TradeFrame, true)
TradeFrame:SetWidth(400)
E:Width(TradeFrame, 400)
E:CreateBackdrop(TradeFrame, "Transparent")
TradeFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
TradeFrame.backdrop:SetPoint("BOTTOMRIGHT", -28, 48)
E:Point(TradeFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(TradeFrame.backdrop, "BOTTOMRIGHT", -28, 48)
S:HandleCloseButton(TradeFrameCloseButton, TradeFrame.backdrop)
@@ -55,18 +55,18 @@ local function LoadSkin()
playerButton.bg = CreateFrame("Frame", nil, playerButton)
E:SetTemplate(playerButton.bg, "Default")
playerButton.bg:SetPoint("TOPLEFT", playerButton, "TOPRIGHT", 4, 0)
playerButton.bg:SetPoint("BOTTOMRIGHT", playerNameFrame, "BOTTOMRIGHT", -5, 14)
E:Point(playerButton.bg, "TOPLEFT", playerButton, "TOPRIGHT", 4, 0)
E:Point(playerButton.bg, "BOTTOMRIGHT", playerNameFrame, "BOTTOMRIGHT", -5, 14)
playerButton.bg:SetFrameLevel(playerButton:GetFrameLevel() - 4)
recipientButton.bg = CreateFrame("Frame", nil, recipientButton)
E:SetTemplate(recipientButton.bg, "Default")
recipientButton.bg:SetPoint("TOPLEFT", recipientButton, "TOPRIGHT", 4, 0)
recipientButton.bg:SetPoint("BOTTOMRIGHT", recipientNameFrame, "BOTTOMRIGHT", -5, 14)
E:Point(recipientButton.bg, "TOPLEFT", recipientButton, "TOPRIGHT", 4, 0)
E:Point(recipientButton.bg, "BOTTOMRIGHT", recipientNameFrame, "BOTTOMRIGHT", -5, 14)
recipientButton.bg:SetFrameLevel(recipientButton:GetFrameLevel() - 4)
end
TradePlayerItem1:SetPoint("TOPLEFT", 24, -104)
E:Point(TradePlayerItem1, "TOPLEFT", 24, -104)
TradeHighlightPlayerTop:SetTexture(0, 1, 0, 0.2)
TradeHighlightPlayerBottom:SetTexture(0, 1, 0, 0.2)
@@ -85,7 +85,7 @@ local function LoadSkin()
TradeHighlightRecipientEnchantMiddle:SetTexture(0, 1, 0, 0.2)
S:HandleButton(TradeFrameTradeButton)
TradeFrameTradeButton:SetPoint("BOTTOMRIGHT", -120, 55)
E:Point(TradeFrameTradeButton, "BOTTOMRIGHT", -120, 55)
S:HandleButton(TradeFrameCancelButton)
+11 -13
View File
@@ -19,14 +19,13 @@ local function LoadSkin()
E:StripTextures(TradeSkillFrame, true)
E:CreateBackdrop(TradeSkillFrame, "Transparent")
TradeSkillFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
TradeSkillFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 74)
E:Point(TradeSkillFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(TradeSkillFrame.backdrop, "BOTTOMRIGHT", -32, 74)
E:StripTextures(TradeSkillRankFrameBorder)
TradeSkillRankFrame:SetWidth(322)
TradeSkillRankFrame:SetHeight(16)
E:Size(TradeSkillRankFrame, 322, 16)
TradeSkillRankFrame:ClearAllPoints()
TradeSkillRankFrame:SetPoint("TOP", -10, -45)
E:Point(TradeSkillRankFrame, "TOP", -10, -45)
E:CreateBackdrop(TradeSkillRankFrame)
TradeSkillRankFrame:SetStatusBarTexture(E["media"].normTex)
TradeSkillRankFrame:SetStatusBarColor(0.13, 0.35, 0.80)
@@ -43,7 +42,7 @@ local function LoadSkin()
TradeSkillCollapseAllButton.Text = TradeSkillCollapseAllButton:CreateFontString(nil, "OVERLAY")
E:FontTemplate(TradeSkillCollapseAllButton.Text, nil, 22)
TradeSkillCollapseAllButton.Text:SetPoint("LEFT", 3, 0)
E:Point(TradeSkillCollapseAllButton.Text, "LEFT", 3, 0)
TradeSkillCollapseAllButton.Text:SetText("+")
hooksecurefunc(TradeSkillCollapseAllButton, "SetNormalTexture", function(self, texture)
@@ -56,14 +55,14 @@ local function LoadSkin()
S:HandleDropDownBox(TradeSkillInvSlotDropDown, 140)
TradeSkillSubClassDropDown:ClearAllPoints()
TradeSkillInvSlotDropDown:SetPoint("TOPRIGHT", TradeSkillFrame, "TOPRIGHT", -32, -68)
E:Point(TradeSkillInvSlotDropDown, "TOPRIGHT", TradeSkillFrame, "TOPRIGHT", -32, -68)
S:HandleDropDownBox(TradeSkillSubClassDropDown, 140)
TradeSkillSubClassDropDown:ClearAllPoints()
TradeSkillSubClassDropDown:SetPoint("RIGHT", TradeSkillInvSlotDropDown, "RIGHT", -120, 0)
E:Point(TradeSkillSubClassDropDown, "RIGHT", TradeSkillInvSlotDropDown, "RIGHT", -120, 0)
TradeSkillFrameTitleText:ClearAllPoints()
TradeSkillFrameTitleText:SetPoint("TOP", TradeSkillFrame, "TOP", 0, -18)
E:Point(TradeSkillFrameTitleText, "TOP", TradeSkillFrame, "TOP", 0, -18)
for i = 1, TRADE_SKILLS_DISPLAYED do
local skillButton = _G["TradeSkillSkill"..i]
@@ -75,7 +74,7 @@ local function LoadSkin()
skillButton.Text = skillButton:CreateFontString(nil, "OVERLAY")
E:FontTemplate(skillButton.Text, nil, 22)
skillButton.Text:SetPoint("LEFT", 3, 0)
E:Point(skillButton.Text, "LEFT", 3, 0)
skillButton.Text:SetText("+")
hooksecurefunc(skillButton, "SetNormalTexture", function(self, texture)
@@ -139,9 +138,8 @@ local function LoadSkin()
E:SetInside(TradeSkillSkillIcon:GetNormalTexture())
end
TradeSkillSkillIcon:SetWidth(40)
TradeSkillSkillIcon:SetHeight(40)
TradeSkillSkillIcon:SetPoint("TOPLEFT", 2, -3)
E:Size(TradeSkillSkillIcon, 40)
E:Point(TradeSkillSkillIcon, "TOPLEFT", 2, -3)
local skillLink = GetTradeSkillItemLink(id)
if skillLink then
+5 -5
View File
@@ -13,15 +13,15 @@ local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.trainer ~= true then return end
E:CreateBackdrop(ClassTrainerFrame, "Transparent")
ClassTrainerFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
ClassTrainerFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 74)
E:Point(ClassTrainerFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(ClassTrainerFrame.backdrop, "BOTTOMRIGHT", -32, 74)
E:StripTextures(ClassTrainerFrame, true)
E:StripTextures(ClassTrainerExpandButtonFrame)
S:HandleDropDownBox(ClassTrainerFrameFilterDropDown)
ClassTrainerFrameFilterDropDown:SetPoint("TOPRIGHT", -40, -64)
E:Point(ClassTrainerFrameFilterDropDown, "TOPRIGHT", -40, -64)
E:StripTextures(ClassTrainerListScrollFrame)
S:HandleScrollBar(ClassTrainerListScrollFrameScrollBar)
@@ -56,7 +56,7 @@ local function LoadSkin()
skillButton.Text = skillButton:CreateFontString(nil, "OVERLAY")
E:FontTemplate(skillButton.Text, nil, 22)
skillButton.Text:SetPoint("LEFT", 3, 0)
E:Point(skillButton.Text, "LEFT", 3, 0)
skillButton.Text:SetText("+")
hooksecurefunc(skillButton, "SetNormalTexture", function(self, texture)
@@ -79,7 +79,7 @@ local function LoadSkin()
ClassTrainerCollapseAllButton.Text = ClassTrainerCollapseAllButton:CreateFontString(nil, "OVERLAY")
E:FontTemplate(ClassTrainerCollapseAllButton.Text, nil, 22)
ClassTrainerCollapseAllButton.Text:SetPoint("LEFT", 3, 0)
E:Point(ClassTrainerCollapseAllButton.Text, "LEFT", 3, 0)
ClassTrainerCollapseAllButton.Text:SetText("+")
hooksecurefunc(ClassTrainerCollapseAllButton, "SetNormalTexture", function(self, texture)
+1 -2
View File
@@ -14,8 +14,7 @@ local function LoadSkin()
local button = _G["TutorialFrameAlertButton"..i]
local icon = button:GetNormalTexture()
button:SetWidth(35)
button:SetHeight(45)
E:Size(button, 35, 45)
E:SetTemplate(button, "Default", true)
E:StyleButton(button, nil, true)
+2 -2
View File
@@ -10,8 +10,8 @@ local function LoadSkin()
S:HandleDropDownBox(WorldMapContinentDropDown, 170)
S:HandleDropDownBox(WorldMapZoneDropDown, 170)
WorldMapZoneDropDown:SetPoint("LEFT", WorldMapContinentDropDown, "RIGHT", -24, 0)
WorldMapZoomOutButton:SetPoint("LEFT", WorldMapZoneDropDown, "RIGHT", -4, 3)
E:Point(WorldMapZoneDropDown, "LEFT", WorldMapContinentDropDown, "RIGHT", -24, 0)
E:Point(WorldMapZoomOutButton, "LEFT", WorldMapZoneDropDown, "RIGHT", -4, 3)
S:HandleButton(WorldMapZoomOutButton)