chat-text-shadow: add module to show text shadows
This commit is contained in:
@@ -27,3 +27,4 @@ mods\macro-tweaks.lua
|
||||
mods\worldmap-reveal.lua
|
||||
mods\reduced-actionbar-bags.lua
|
||||
mods\reduced-actionbar-micromenu.lua
|
||||
mods\chat-text-shadow.lua
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
local _G = ShaguTweaks.GetGlobalEnv()
|
||||
local T = ShaguTweaks.T
|
||||
local rgbhex = ShaguTweaks.rgbhex
|
||||
|
||||
local module = ShaguTweaks:register({
|
||||
title = T["Enable Text Shadow"],
|
||||
description = T["Enable text shadow in all chat frames."],
|
||||
expansions = { ["vanilla"] = true, ["tbc"] = false },
|
||||
category = T["Chat"],
|
||||
maintainer = "@shagu (GitHub)",
|
||||
enabled = nil,
|
||||
})
|
||||
|
||||
module.enable = function(self)
|
||||
for i=1,NUM_CHAT_WINDOWS do
|
||||
local font, size = _G["ChatFrame"..i]:GetFont()
|
||||
_G["ChatFrame"..i]:SetFont(font, size, "OUTLINE")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user