Advertisement
Wetxius

Untitled

Feb 4th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.40 KB | None | 0 0
  1. local T, C, L, _ = unpack(select(2, ...))
  2. if C.skins.blizzard_frames ~= true then return end
  3.  
  4. ----------------------------------------------------------------------------------------
  5. -- PvE skin
  6. ----------------------------------------------------------------------------------------
  7. local function LoadSkin()
  8. local StripAllTextures = {
  9. "PVEFrame",
  10. "PVEFrameLeftInset",
  11. "LFDParentFrame",
  12. "LFDParentFrameInset",
  13. "RaidFinderFrame",
  14. "RaidFinderQueueFrame",
  15. "RaidFinderFrameBottomInset",
  16. "RaidFinderFrameRoleInset",
  17. "ScenarioFinderFrame",
  18. "LFGDungeonReadyDialog",
  19. "LFGDungeonReadyStatus",
  20. "LFDQueueFrameCooldownFrame",
  21. "RaidFinderQueueFrameCooldownFrame",
  22. "RaidFinderQueueFramePartyBackfill",
  23. "LFDQueueFramePartyBackfill",
  24. "LFDQueueFrame",
  25. "LFGListApplicationDialog"
  26. }
  27.  
  28. for _, object in pairs(StripAllTextures) do
  29. _G[object]:StripTextures()
  30. end
  31.  
  32. local KillTextures = {
  33. "LFDQueueFrameBackground",
  34. "PVEFramePortrait",
  35. "ScenarioFinderFrameInset",
  36. "LFGDungeonReadyDialogBackground",
  37. "RaidFinderQueueFrameBackground",
  38. "LFGDungeonReadyDialogBottomArt",
  39. "LFGDungeonReadyDialogFiligree",
  40. "ScenarioQueueFrameRandomScrollFrameScrollBackground",
  41. "ScenarioQueueFrameRandomScrollFrameScrollBackgroundTopLeft",
  42. "ScenarioQueueFrameRandomScrollFrameScrollBackgroundBottomRight",
  43. "RaidFinderQueueFrameScrollFrameScrollBackground",
  44. "RaidFinderQueueFrameScrollFrameScrollBackgroundTopLeft",
  45. "RaidFinderQueueFrameScrollFrameScrollBackgroundBottomRight"
  46. }
  47.  
  48. for _, texture in pairs(KillTextures) do
  49. _G[texture]:Kill()
  50. end
  51.  
  52. local buttons = {
  53. "LFDQueueFrameFindGroupButton",
  54. "RaidFinderFrameFindRaidButton",
  55. "ScenarioQueueFrameFindGroupButton",
  56. "LFGDungeonReadyDialogLeaveQueueButton",
  57. "LFGDungeonReadyDialogEnterDungeonButton",
  58. "RaidFinderQueueFramePartyBackfillBackfillButton",
  59. "RaidFinderQueueFramePartyBackfillNoBackfillButton",
  60. "LFDQueueFramePartyBackfillBackfillButton",
  61. "LFDQueueFramePartyBackfillNoBackfillButton",
  62. "LFGInvitePopupAcceptButton",
  63. "LFGInvitePopupDeclineButton"
  64. }
  65.  
  66. for i = 1, #buttons do
  67. _G[buttons[i]]:SkinButton()
  68. end
  69.  
  70. LFGListApplicationDialog.SignUpButton:SkinButton()
  71. LFGListApplicationDialog.CancelButton:SkinButton()
  72.  
  73. local checkButtons = {
  74. "LFDQueueFrameRoleButtonTank",
  75. "LFDQueueFrameRoleButtonHealer",
  76. "LFDQueueFrameRoleButtonDPS",
  77. "LFDQueueFrameRoleButtonLeader",
  78. "RaidFinderQueueFrameRoleButtonTank",
  79. "RaidFinderQueueFrameRoleButtonHealer",
  80. "RaidFinderQueueFrameRoleButtonDPS",
  81. "RaidFinderQueueFrameRoleButtonLeader"
  82. }
  83.  
  84. for _, object in pairs(checkButtons) do
  85. T.SkinCheckBox(_G[object].checkButton)
  86. end
  87.  
  88. T.SkinCheckBox(LFGListApplicationDialog.TankButton.CheckButton)
  89. T.SkinCheckBox(LFGListApplicationDialog.HealerButton.CheckButton)
  90. T.SkinCheckBox(LFGListApplicationDialog.DamagerButton.CheckButton)
  91.  
  92. local scrollbars = {
  93. "ScenarioQueueFrameSpecificScrollFrameScrollBar",
  94. "LFGListApplicationViewerScrollFrameScrollBar",
  95. "LFDQueueFrameSpecificListScrollFrameScrollBar",
  96. "LFDQueueFrameRandomScrollFrameScrollBar",
  97. "RaidFinderQueueFrameScrollFrameScrollBar"
  98. }
  99.  
  100. for _, scrollbar in pairs(scrollbars) do
  101. T.SkinScrollBar(_G[scrollbar])
  102. end
  103.  
  104. T.SkinScrollBar(LFGListFrame.SearchPanel.ScrollFrame.scrollBar)
  105.  
  106. for i = 1, 4 do
  107. local button = GroupFinderFrame["groupButton"..i]
  108.  
  109. button.ring:Hide()
  110. button:CreateBackdrop("Overlay")
  111. button.backdrop:SetAllPoints()
  112. button:StyleButton()
  113.  
  114. button.bg:SetTexture("")
  115.  
  116. button.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  117. button.icon:SetPoint("LEFT", button, "LEFT", 10, 0)
  118. button.icon:SetDrawLayer("OVERLAY")
  119. button.icon:SetSize(40, 40)
  120.  
  121. button.border = CreateFrame("Frame", nil, button)
  122. button.border:CreateBackdrop("Default")
  123. button.border.backdrop:SetPoint("TOPLEFT", button.icon, -2, 2)
  124. button.border.backdrop:SetPoint("BOTTOMRIGHT", button.icon, 2, -2)
  125. end
  126.  
  127. hooksecurefunc("GroupFinderFrame_SelectGroupButton", function(index)
  128. local self = GroupFinderFrame
  129. for i = 1, 4 do
  130. local button = self["groupButton"..i]
  131. if i == index then
  132. button.backdrop:SetBackdropBorderColor(1, 0.82, 0, 1)
  133. button.backdrop.overlay:SetVertexColor(1, 0.82, 0, 0.3)
  134. button.border.backdrop:SetBackdropBorderColor(1, 0.82, 0, 1)
  135. else
  136. button.backdrop:SetBackdropBorderColor(unpack(C.media.border_color))
  137. button.backdrop.overlay:SetVertexColor(0.1, 0.1, 0.1, 1)
  138. button.border.backdrop:SetBackdropBorderColor(unpack(C.media.border_color))
  139. end
  140. end
  141. end)
  142.  
  143. local function SkinItemButton(parentFrame, _, index)
  144. local parentName = parentFrame:GetName()
  145. local item = _G[parentName.."Item"..index]
  146.  
  147. if item and not item.isSkinned then
  148. item.border = CreateFrame("Frame", nil, item)
  149. item.border:CreateBackdrop("Default")
  150. item.border.backdrop:SetPoint("TOPLEFT", item.Icon, "TOPLEFT", -2, 2)
  151. item.border.backdrop:SetPoint("BOTTOMRIGHT", item.Icon, "BOTTOMRIGHT", 2, -2)
  152.  
  153. item.Icon:SetPoint("TOPLEFT", 2, -2)
  154. item.Icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  155. item.Icon:SetDrawLayer("OVERLAY")
  156. item.Icon:SetParent(item.border)
  157.  
  158. item.Count:SetDrawLayer("OVERLAY")
  159. item.Count:SetParent(item.border)
  160.  
  161. item.NameFrame:Hide()
  162.  
  163. item.shortageBorder:SetTexture(nil)
  164.  
  165. item.roleIcon1:SetParent(item.border)
  166. item.roleIcon2:SetParent(item.border)
  167.  
  168. item.isSkinned = true
  169. end
  170. end
  171. hooksecurefunc("LFGRewardsFrame_SetItemButton", SkinItemButton)
  172.  
  173. local function SkinMoney(button)
  174. _G[button.."IconTexture"]:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  175. _G[button.."IconTexture"]:SetDrawLayer("OVERLAY")
  176. _G[button.."Count"]:SetDrawLayer("OVERLAY")
  177. _G[button.."NameFrame"]:Hide()
  178.  
  179. _G[button.."IconTexture"]:SetPoint("TOPLEFT", 2, -2)
  180.  
  181. _G[button].border = CreateFrame("Frame", nil, _G[button])
  182. _G[button].border:CreateBackdrop("Default")
  183. _G[button].border.backdrop:SetPoint("TOPLEFT", _G[button.."IconTexture"], "TOPLEFT", -2, 2)
  184. _G[button].border.backdrop:SetPoint("BOTTOMRIGHT", _G[button.."IconTexture"], "BOTTOMRIGHT", 2, -2)
  185.  
  186. _G[button.."IconTexture"]:SetParent(_G[button].border)
  187. _G[button.."Count"]:SetParent(_G[button].border)
  188. end
  189. SkinMoney("LFDQueueFrameRandomScrollFrameChildFrameMoneyReward")
  190. SkinMoney("RaidFinderQueueFrameScrollFrameChildFrameMoneyReward")
  191. SkinMoney("ScenarioQueueFrameRandomScrollFrameChildFrameMoneyReward")
  192.  
  193. -- hooksecurefunc("LFDQueueFrameRandom_UpdateFrame", function()
  194. -- local dungeonID = LFDQueueFrame.type
  195. -- if type(dungeonID) == "string" then return end
  196.  
  197. -- for i = 1, LFD_MAX_REWARDS do
  198. -- local button = _G["LFDQueueFrameRandomScrollFrameChildFrameItem"..i]
  199. -- local icon = _G["LFDQueueFrameRandomScrollFrameChildFrameItem"..i.."IconTexture"]
  200. -- local count = _G["LFDQueueFrameRandomScrollFrameChildFrameItem"..i.."Count"]
  201. -- local role1 = _G["LFDQueueFrameRandomScrollFrameChildFrameItem"..i.."RoleIcon1"]
  202. -- local role2 = _G["LFDQueueFrameRandomScrollFrameChildFrameItem"..i.."RoleIcon2"]
  203. -- local role3 = _G["LFDQueueFrameRandomScrollFrameChildFrameItem"..i.."RoleIcon3"]
  204. -- local money = _G["LFDQueueFrameRandomScrollFrameChildFrameMoneyReward"]
  205. -- local moneyicon = _G["LFDQueueFrameRandomScrollFrameChildFrameMoneyRewardIconTexture"]
  206.  
  207. -- if money then
  208. -- local texture = moneyicon:GetTexture() or [[Interface\Icons\inv_misc_coin_01]]
  209.  
  210. -- money:StripTextures()
  211.  
  212. -- moneyicon:SetTexture(texture)
  213. -- moneyicon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  214. -- moneyicon:SetPoint("TOPLEFT", 2, -2)
  215. -- moneyicon:SetDrawLayer("OVERLAY")
  216.  
  217. -- if not money.border then
  218. -- money.border = CreateFrame("Frame", nil, money)
  219. -- money.border:CreateBackdrop("Default")
  220. -- money.border.backdrop:SetPoint("TOPLEFT", moneyicon, -2, 2)
  221. -- money.border.backdrop:SetPoint("BOTTOMRIGHT", moneyicon, 2, -2)
  222.  
  223. -- moneyicon:SetParent(money.border.backdrop)
  224. -- moneyicon.SetPoint = T.dummy
  225. -- end
  226. -- end
  227.  
  228. -- if button then
  229. -- local texture = _G[button:GetName().."IconTexture"]:GetTexture()
  230. -- button:StripTextures()
  231.  
  232. -- icon:SetTexture(texture)
  233. -- icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  234. -- icon:SetPoint("TOPLEFT", 2, -2)
  235. -- icon:SetDrawLayer("OVERLAY")
  236.  
  237. -- count:SetDrawLayer("OVERLAY")
  238.  
  239. -- if not button.border then
  240. -- button.border = CreateFrame("Frame", nil, button)
  241. -- button.border:CreateBackdrop("Default")
  242. -- button.border.backdrop:SetPoint("TOPLEFT", icon, "TOPLEFT", -2, 2)
  243. -- button.border.backdrop:SetPoint("BOTTOMRIGHT", icon, "BOTTOMRIGHT", 2, -2)
  244.  
  245. -- icon:SetParent(button.border.backdrop)
  246. -- icon.SetPoint = T.dummy
  247.  
  248. -- if count then
  249. -- count:SetParent(button.border.backdrop)
  250. -- end
  251. -- if role1 then
  252. -- role1:SetParent(button.border.backdrop)
  253. -- end
  254. -- if role2 then
  255. -- role2:SetParent(button.border.backdrop)
  256. -- end
  257. -- if role3 then
  258. -- role3:SetParent(button.border.backdrop)
  259. -- end
  260. -- end
  261. -- end
  262. -- end
  263. -- end)
  264.  
  265. -- hooksecurefunc("RaidFinderQueueFrameRewards_UpdateFrame", function()
  266. -- for i = 1, LFD_MAX_REWARDS do
  267. -- local button = _G["RaidFinderQueueFrameScrollFrameChildFrameItem"..i]
  268. -- local icon = _G["RaidFinderQueueFrameScrollFrameChildFrameItem"..i.."IconTexture"]
  269. -- local count = _G["RaidFinderQueueFrameScrollFrameChildFrameItem"..i.."Count"]
  270. -- local role1 = _G["RaidFinderQueueFrameScrollFrameChildFrameItem"..i.."RoleIcon1"]
  271. -- local role2 = _G["RaidFinderQueueFrameScrollFrameChildFrameItem"..i.."RoleIcon2"]
  272. -- local role3 = _G["RaidFinderQueueFrameScrollFrameChildFrameItem"..i.."RoleIcon3"]
  273. -- local money = _G["RaidFinderQueueFrameScrollFrameChildFrameMoneyReward"]
  274. -- local moneyicon = _G["RaidFinderQueueFrameScrollFrameChildFrameMoneyRewardIconTexture"]
  275.  
  276. -- if money then
  277. -- local texture = moneyicon:GetTexture() or [[Interface\Icons\inv_misc_coin_01]]
  278.  
  279. -- money:StripTextures()
  280.  
  281. -- moneyicon:SetTexture(texture)
  282. -- moneyicon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  283. -- moneyicon:SetPoint("TOPLEFT", 2, -2)
  284. -- moneyicon:SetDrawLayer("OVERLAY")
  285.  
  286. -- if not money.border then
  287. -- money.border = CreateFrame("Frame", nil, money)
  288. -- money.border:CreateBackdrop("Default")
  289. -- money.border.backdrop:SetPoint("TOPLEFT", moneyicon, -2, 2)
  290. -- money.border.backdrop:SetPoint("BOTTOMRIGHT", moneyicon, 2, -2)
  291.  
  292. -- moneyicon:SetParent(money.border.backdrop)
  293. -- moneyicon.SetPoint = T.dummy
  294. -- end
  295. -- end
  296.  
  297. -- if button then
  298. -- local texture = _G[button:GetName().."IconTexture"]:GetTexture()
  299.  
  300. -- button:StripTextures()
  301.  
  302. -- icon:SetTexture(texture)
  303. -- icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  304. -- icon:SetPoint("TOPLEFT", 2, -2)
  305. -- icon:SetDrawLayer("OVERLAY")
  306.  
  307. -- count:SetDrawLayer("OVERLAY")
  308.  
  309. -- if not button.border then
  310. -- button.border = CreateFrame("Frame", nil, button)
  311. -- button.border:CreateBackdrop("Default")
  312. -- button.border.backdrop:SetPoint("TOPLEFT", icon, "TOPLEFT", -2, 2)
  313. -- button.border.backdrop:SetPoint("BOTTOMRIGHT", icon, "BOTTOMRIGHT", 2, -2)
  314.  
  315. -- icon:SetParent(button.border.backdrop)
  316. -- icon.SetPoint = T.dummy
  317.  
  318. -- if count then
  319. -- count:SetParent(button.border.backdrop)
  320. -- end
  321. -- if role1 then
  322. -- role1:SetParent(button.border.backdrop)
  323. -- end
  324. -- if role2 then
  325. -- role2:SetParent(button.border.backdrop)
  326. -- end
  327. -- if role3 then
  328. -- role3:SetParent(button.border.backdrop)
  329. -- end
  330. -- end
  331. -- end
  332. -- end
  333. -- end)
  334.  
  335. -- hooksecurefunc("ScenarioQueueFrameRandom_UpdateFrame", function()
  336. -- for i = 1, LFD_MAX_REWARDS do
  337. -- local button = _G["ScenarioQueueFrameRandomScrollFrameChildFrameItem"..i]
  338. -- local icon = _G["ScenarioQueueFrameRandomScrollFrameChildFrameItem"..i.."IconTexture"]
  339. -- local count = _G["ScenarioQueueFrameRandomScrollFrameChildFrameItem"..i.."Count"]
  340. -- local money = _G["ScenarioQueueFrameRandomScrollFrameChildFrameMoneyReward"]
  341. -- local moneyicon = _G["ScenarioQueueFrameRandomScrollFrameChildFrameMoneyRewardIconTexture"]
  342.  
  343. -- if money then
  344. -- local texture = moneyicon:GetTexture() or [[Interface\Icons\inv_misc_coin_01]]
  345.  
  346. -- money:StripTextures()
  347.  
  348. -- moneyicon:SetTexture(texture)
  349. -- moneyicon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  350. -- moneyicon:SetPoint("TOPLEFT", 2, -2)
  351. -- moneyicon:SetDrawLayer("OVERLAY")
  352.  
  353. -- if not money.border then
  354. -- money.border = CreateFrame("Frame", nil, money)
  355. -- money.border:CreateBackdrop("Default")
  356. -- money.border.backdrop:SetPoint("TOPLEFT", moneyicon, -2, 2)
  357. -- money.border.backdrop:SetPoint("BOTTOMRIGHT", moneyicon, 2, -2)
  358.  
  359. -- moneyicon:SetParent(money.border.backdrop)
  360. -- moneyicon.SetPoint = T.dummy
  361. -- end
  362. -- end
  363.  
  364. -- if button then
  365. -- button:StripTextures()
  366.  
  367. -- icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  368. -- icon:SetDrawLayer("OVERLAY")
  369.  
  370. -- count:SetDrawLayer("OVERLAY")
  371.  
  372. -- if not button.border then
  373. -- button.border = CreateFrame("Frame", nil, button)
  374. -- button.border:CreateBackdrop("Default")
  375. -- button.border.backdrop:SetPoint("TOPLEFT", icon, "TOPLEFT", -2, 2)
  376. -- button.border.backdrop:SetPoint("BOTTOMRIGHT", icon, "BOTTOMRIGHT", 2, -2)
  377.  
  378. -- icon:SetParent(button.border.backdrop)
  379.  
  380. -- if count then
  381. -- count:SetParent(button.border.backdrop)
  382. -- end
  383. -- end
  384. -- end
  385. -- end
  386. -- end)
  387.  
  388. hooksecurefunc("LFGDungeonListButton_SetDungeon", function(button, dungeonID)
  389. T.SkinCheckBox(button.enableButton)
  390. end)
  391.  
  392. for i = 1, 3 do
  393. T.SkinTab(_G["PVEFrameTab"..i])
  394. end
  395.  
  396. LFGListApplicationDialog:SetTemplate("Transparent")
  397. PVEFrame:CreateBackdrop("Transparent")
  398. PVEFrame.backdrop:SetAllPoints()
  399. PVEFrame.shadows:Hide()
  400. ScenarioQueueFrame.Bg:Hide()
  401.  
  402. LFDQueueFrameNoLFDWhileLFR:CreateBackdrop("Overlay")
  403. LFDQueueFrameNoLFDWhileLFR.backdrop:SetPoint("TOPLEFT", 2, 5)
  404. LFDQueueFrameNoLFDWhileLFR.backdrop:SetPoint("BOTTOMRIGHT", 0, 6)
  405.  
  406. LFDQueueFrameCooldownFrame:CreateBackdrop("Overlay")
  407. LFDQueueFrameCooldownFrame.backdrop:SetPoint("TOPLEFT", 2, 4)
  408. LFDQueueFrameCooldownFrame.backdrop:SetPoint("BOTTOMRIGHT", 0, 6)
  409.  
  410. LFDQueueFramePartyBackfill:CreateBackdrop("Overlay")
  411. LFDQueueFramePartyBackfill.backdrop:SetPoint("TOPLEFT", 2, 4)
  412. LFDQueueFramePartyBackfill.backdrop:SetPoint("BOTTOMRIGHT", 0, 6)
  413.  
  414. RaidFinderQueueFrameCooldownFrame:CreateBackdrop("Overlay")
  415. RaidFinderQueueFrameCooldownFrame.backdrop:SetPoint("TOPLEFT", 2, 6)
  416. RaidFinderQueueFrameCooldownFrame.backdrop:SetPoint("BOTTOMRIGHT", 0, 8)
  417.  
  418. RaidFinderQueueFramePartyBackfill:CreateBackdrop("Overlay")
  419. RaidFinderQueueFramePartyBackfill.backdrop:SetPoint("TOPLEFT", 2, 6)
  420. RaidFinderQueueFramePartyBackfill.backdrop:SetPoint("BOTTOMRIGHT", 0, 8)
  421.  
  422. T.SkinDropDownBox(LFDQueueFrameTypeDropDown, 300)
  423. LFDQueueFrameTypeDropDown:SetPoint("RIGHT", -10, 0)
  424.  
  425. T.SkinDropDownBox(RaidFinderQueueFrameSelectionDropDown, 300)
  426. RaidFinderQueueFrameSelectionDropDown:SetPoint("RIGHT", -10, 0)
  427.  
  428. T.SkinDropDownBox(ScenarioQueueFrameTypeDropDown, 300)
  429. ScenarioQueueFrameSpecificScrollFrameScrollBackgroundTopLeft:Hide()
  430. ScenarioQueueFrameSpecificScrollFrameScrollBackgroundBottomRight:Hide()
  431. ScenarioQueueFrameRandomScrollFrameChildFrame.bonusRepFrame.ChooseButton:SkinButton()
  432. ScenarioQueueFrameTypeDropDown:SetPoint("RIGHT", -10, 0)
  433.  
  434. LFGListFrame.CategorySelection.Inset.Bg:Hide()
  435. select(10, LFGListFrame.CategorySelection.Inset:GetRegions()):Hide()
  436. LFGListFrame.CategorySelection.Inset:DisableDrawLayer("BORDER")
  437. LFGListFrame.SearchPanel.ResultsInset.Bg:Hide()
  438. LFGListFrame.SearchPanel.ResultsInset:DisableDrawLayer("BORDER")
  439.  
  440. LFGListFrame.NothingAvailable.Inset.Bg:Hide()
  441. select(10, LFGListFrame.NothingAvailable.Inset:GetRegions()):Hide()
  442. LFGListFrame.NothingAvailable.Inset:DisableDrawLayer("BORDER")
  443.  
  444. LFGListFrame.CategorySelection.FindGroupButton:SkinButton()
  445. LFGListFrame.CategorySelection.StartGroupButton:SkinButton()
  446. LFGListFrame.SearchPanel.RefreshButton:SkinButton()
  447. LFGListFrame.SearchPanel.FilterButton:SkinButton()
  448. LFGListFrame.SearchPanel.BackButton:SkinButton()
  449. LFGListFrame.SearchPanel.SignUpButton:SkinButton()
  450. LFGListFrame.SearchPanel.ScrollFrame.StartGroupButton:SkinButton()
  451.  
  452. LFGListFrame.SearchPanel.RefreshButton:SetSize(24, 24)
  453. LFGListFrame.SearchPanel.RefreshButton.Icon:SetPoint("CENTER")
  454.  
  455. LFGListFrame.SearchPanel.FilterButton:SetPoint("LEFT", LFGListFrame.SearchPanel.SearchBox, "RIGHT", 5, 0)
  456.  
  457. T.SkinEditBox(LFGListFrame.SearchPanel.SearchBox)
  458.  
  459. T.SkinCloseButton(PVEFrameCloseButton)
  460. T.SkinCloseButton(LFGDungeonReadyStatusCloseButton, nil, "-")
  461. T.SkinCloseButton(LFGDungeonReadyDialogCloseButton, LFGDungeonReadyDialog, "-")
  462.  
  463. LFDQueueFrameSpecificListScrollFrameScrollBackgroundTopLeft:SetTexture(nil)
  464. LFDQueueFrameSpecificListScrollFrameScrollBackgroundBottomRight:SetTexture(nil)
  465. LFDQueueFrameRandomScrollFrameScrollBackground:SetTexture(nil)
  466. LFDQueueFrameRandomScrollFrameScrollBackgroundTopLeft:SetTexture(nil)
  467. LFDQueueFrameRandomScrollFrameScrollBackgroundBottomRight:SetTexture(nil)
  468. LFDQueueFrameRandomScrollFrameChildFrameBonusRepFrame.ChooseButton:SkinButton()
  469. RolePollPopup:SetTemplate("Transparent")
  470. LFGInvitePopup:SetTemplate("Transparent")
  471. LFGDungeonReadyPopup:SetTemplate("Transparent")
  472. LFGDungeonReadyDialog.SetBackdrop = T.dummy
  473.  
  474. LFGListFrame.CategorySelection.CategoryButtons[1]:SetNormalFontObject(GameFontNormal)
  475. hooksecurefunc("LFGListCategorySelection_AddButton", function(self, index)
  476. local button = self.CategoryButtons[index]
  477. if button and not button.styled then
  478. button.Cover:Hide()
  479. button:SetTemplate("Overlay")
  480. button:StyleButton()
  481. button.Icon:SetDrawLayer("ARTWORK")
  482. button.Icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  483. button.Icon:SetPoint("TOPLEFT", 2, -2)
  484. button.Icon:SetPoint("BOTTOMRIGHT", -2, 2)
  485. button.SelectedTexture:SetTexture(1, 0.82, 0, 0.3)
  486. button.SelectedTexture:SetPoint("TOPLEFT", 2, -2)
  487. button.SelectedTexture:SetPoint("BOTTOMRIGHT", -2, 2)
  488. button.styled = true
  489. end
  490. end)
  491.  
  492. LFGListFrame.EntryCreation:StripTextures()
  493. LFGListFrame.EntryCreation.Inset:StripTextures()
  494. LFGListFrame.EntryCreation.Description:StripTextures()
  495. LFGListApplicationDialogDescription:StripTextures()
  496. LFGListInviteDialog:SetTemplate("Transparent")
  497. LFGListInviteDialog.AcknowledgeButton:SkinButton()
  498. LFGListInviteDialog.AcceptButton:SkinButton()
  499. LFGListInviteDialog.DeclineButton:SkinButton()
  500.  
  501. T.SkinEditBox(LFGListApplicationDialogDescription)
  502. T.SkinEditBox(LFGListFrame.EntryCreation.Name, nil, 17)
  503. T.SkinEditBox(LFGListFrame.EntryCreation.ItemLevel.EditBox, nil, 17)
  504. T.SkinEditBox(LFGListFrame.EntryCreation.VoiceChat.EditBox, nil, 17)
  505. T.SkinEditBox(LFGListFrame.EntryCreation.Description)
  506. T.SkinDropDownBox(LFGListFrame.EntryCreation.CategoryDropDown, 320)
  507. T.SkinDropDownBox(LFGListFrame.EntryCreation.GroupDropDown)
  508. T.SkinDropDownBox(LFGListFrame.EntryCreation.ActivityDropDown)
  509. T.SkinCheckBox(LFGListFrame.EntryCreation.VoiceChat.CheckButton)
  510. T.SkinCheckBox(LFGListFrame.EntryCreation.ItemLevel.CheckButton)
  511. LFGListFrame.EntryCreation.ListGroupButton:SkinButton()
  512. LFGListFrame.EntryCreation.CancelButton:SkinButton()
  513.  
  514. -- ApplicationViewer (Custom Groups)
  515. LFGListFrame.ApplicationViewer.InfoBackground:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  516. T.SkinCheckBox(LFGListFrame.ApplicationViewer.AutoAcceptButton)
  517. LFGListFrame.ApplicationViewer.Inset:StripTextures()
  518. LFGListFrame.ApplicationViewer.Inset:SetTemplate("Transparent")
  519. LFGListFrame.ApplicationViewer.NameColumnHeader:SkinButton(true)
  520. LFGListFrame.ApplicationViewer.RoleColumnHeader:SkinButton(true)
  521. LFGListFrame.ApplicationViewer.ItemLevelColumnHeader:SkinButton(true)
  522. LFGListFrame.ApplicationViewer.NameColumnHeader:ClearAllPoints()
  523. LFGListFrame.ApplicationViewer.NameColumnHeader:SetPoint("BOTTOMLEFT", LFGListFrame.ApplicationViewer.Inset, "TOPLEFT", 0, 1)
  524. LFGListFrame.ApplicationViewer.RoleColumnHeader:ClearAllPoints()
  525. LFGListFrame.ApplicationViewer.RoleColumnHeader:SetPoint("LEFT", LFGListFrame.ApplicationViewer.NameColumnHeader, "RIGHT", 1, 0)
  526. LFGListFrame.ApplicationViewer.ItemLevelColumnHeader:ClearAllPoints()
  527. LFGListFrame.ApplicationViewer.ItemLevelColumnHeader:SetPoint("LEFT", LFGListFrame.ApplicationViewer.RoleColumnHeader, "RIGHT", 1, 0)
  528. LFGListFrame.ApplicationViewer.RefreshButton:SkinButton()
  529. LFGListFrame.ApplicationViewer.RefreshButton:SetSize(24,24)
  530. LFGListFrame.ApplicationViewer.RefreshButton:ClearAllPoints()
  531. LFGListFrame.ApplicationViewer.RefreshButton:SetPoint("BOTTOMRIGHT", LFGListFrame.ApplicationViewer.Inset, "TOPRIGHT", 16, 4)
  532. LFGListFrame.ApplicationViewer.RemoveEntryButton:SkinButton(true)
  533. LFGListFrame.ApplicationViewer.EditButton:SkinButton(true)
  534. LFGListFrame.ApplicationViewer.RemoveEntryButton:ClearAllPoints()
  535. LFGListFrame.ApplicationViewer.RemoveEntryButton:SetPoint("BOTTOMLEFT", -1, 3)
  536. LFGListFrame.ApplicationViewer.EditButton:ClearAllPoints()
  537. LFGListFrame.ApplicationViewer.EditButton:SetPoint("BOTTOMRIGHT", -6, 3)
  538. LFGListApplicationViewerScrollFrameScrollBar:ClearAllPoints()
  539. LFGListApplicationViewerScrollFrameScrollBar:SetPoint("TOPLEFT", LFGListFrame.ApplicationViewer.Inset, "TOPRIGHT", 0, -14)
  540. LFGListApplicationViewerScrollFrameScrollBar:SetPoint("BOTTOMLEFT", LFGListFrame.ApplicationViewer.Inset, "BOTTOMRIGHT", 0, 14)
  541. end
  542.  
  543. tinsert(T.SkinFuncs["ShestakUI"], LoadSkin)
  544.  
  545. local function LoadSecondarySkin()
  546. ChallengesFrameInset:StripTextures()
  547. ChallengesFrameInsetBg:Hide()
  548. ChallengesFrameDetails.bg:Hide()
  549. select(2, ChallengesFrameDetails:GetRegions()):Hide()
  550. select(9, ChallengesFrameDetails:GetRegions()):Hide()
  551. select(10, ChallengesFrameDetails:GetRegions()):Hide()
  552. select(11, ChallengesFrameDetails:GetRegions()):Hide()
  553. ChallengesFrameDungeonButton1:SetPoint("TOPLEFT", ChallengesFrame, "TOPLEFT", 8, -83)
  554.  
  555. ChallengesFrameLeaderboard:SkinButton(true)
  556.  
  557. for i = 1, 8 do
  558. local button = ChallengesFrame["button"..i]
  559. button:SetTemplate("Overlay")
  560. button:StyleButton()
  561. button.selectedTex:SetDrawLayer("ARTWORK")
  562. button.selectedTex:SetTexture(1, 0.82, 0, 0.3)
  563. button.selectedTex:SetPoint("TOPLEFT", 2, -2)
  564. button.selectedTex:SetPoint("BOTTOMRIGHT", -2, 2)
  565. end
  566.  
  567. for i = 1, 3 do
  568. local rewardsRow = ChallengesFrame["RewardRow"..i]
  569. for j = 1, 2 do
  570. local button = rewardsRow["Reward"..j]
  571. button:CreateBackdrop("Default")
  572. button.Icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  573. end
  574. end
  575. end
  576.  
  577. T.SkinFuncs["Blizzard_ChallengesUI"] = LoadSecondarySkin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement