From 926fa6a52b9cd9b7291a2a78d2e77713b2e0a76a Mon Sep 17 00:00:00 2001 From: Ou Junhui Date: Mon, 20 Sep 2021 20:47:59 +0800 Subject: [PATCH] dd --- rSkin/modules/Ls_Toasts.lua | 81 ------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 rSkin/modules/Ls_Toasts.lua diff --git a/rSkin/modules/Ls_Toasts.lua b/rSkin/modules/Ls_Toasts.lua deleted file mode 100644 index a3e0dab..0000000 --- a/rSkin/modules/Ls_Toasts.lua +++ /dev/null @@ -1,81 +0,0 @@ -local A, L = ... - -local function ls_Toasts() - if not IsAddOnLoaded("ls_Toasts") then return end - - local LE, LC, LL = unpack(_G.ls_Toasts) - LE:RegisterSkin("zorkui", { - name = "ZorkUI", - border = { - color = {0, 0, 0}, - offset = 0, - size = 1, - texture = {1, 1, 1, 1}, - }, - icon = { - tex_coords = rButtonTemplate_Zork_ActionButtonConfig.icon.texCoord, - }, - icon_border = { - color = {0, 0, 0}, - offset = 0, - size = 1, - texture = {1, 1, 1, 1}, - }, - slot = { - tex_coords = rButtonTemplate_Zork_ActionButtonConfig.icon.texCoord, - }, - slot_border = { - color = {0, 0, 0}, - offset = 0, - size = 1, - texture = {1, 1, 1, 1}, - }, - glow = { - texture = {1, 1, 1, 1}, - size = {226, 50}, - }, - shine = { - tex_coords = {403 / 512, 465 / 512, 15 / 256, 61 / 256}, - size = {67, 50}, - point = { - y = -1, - }, - }, - text_bg = { - hidden = true, - }, - dragon = { - hidden = true, - }, - icon_highlight = { - hidden = true, - }, - bg = { - default = { - texture = {0.06, 0.06, 0.06, 0.8}, - }, - }, - }) - - LC.db.profile.skin = "zorkui" - LC.options.args.general.args.skin.disabled = true - - local function reskinFunc() - local index = 1 - local toast = _G["LSToast"..index] - while toast do - if toast.BG and not toast.styled then - toast.BG:SetTexture(nil) - -- B.SetBD(toast) - L.CreateBackdrop(toast) - toast.SetBackground = L.Dummy - toast.styled = true - end - index = index + 1 - toast = _G["LSToast"..index] - end - end - hooksecurefunc(LE, "GetToast", reskinFunc) -end - -rSkin:RegisterSkin("ls_Toasts", ls_Toasts) \ No newline at end of file -- 1.7.9.5