From bc03f23e71ddccd501e9692469a0423db51ea460 Mon Sep 17 00:00:00 2001 From: John Cummings Date: Sat, 10 Dec 2022 10:48:23 -0700 Subject: [PATCH] Fixed playerchains (#3) * Fix playerchains * Rename xarmods --- Modules/unitframes.lua | 94 ++++++++++++++--------------- XarMods_Mainline.toc => XarMods.toc | 0 2 files changed, 47 insertions(+), 47 deletions(-) rename XarMods_Mainline.toc => XarMods.toc (100%) diff --git a/Modules/unitframes.lua b/Modules/unitframes.lua index eb82c3b..a8619f7 100644 --- a/Modules/unitframes.lua +++ b/Modules/unitframes.lua @@ -43,50 +43,50 @@ module.optionsTable = { desc = "Icons indicating if a player if flagged for PvP and/or prestige badge", width = "full", }, - -- header_classColors = { - -- order = 4, - -- type = "header", - -- name = "Class Colors", - -- }, - -- classColorsPlayer = { - -- order = 5, - -- type = "toggle", - -- name = "Player", - -- width = "full", - -- }, - -- classColorsOthers = { - -- order = 6, - -- type = "toggle", - -- name = "Others", - -- desc = "Target, Target-of-Target, Focus, etc.", - -- width = "full", - -- }, - -- header_playerChain = { - -- order = 7, - -- type = "header", - -- name = "Player Chain", - -- }, - -- enablePlayerChain = { - -- order = 8, - -- type = "toggle", - -- name = "Enable", - -- desc = "Shows a rare, elite or rare elite chain around the player frame", - -- width = "half", - -- }, - -- chainStyle = { - -- order = 9, - -- type = "select", - -- name = "Style", - -- values = { - -- "Rare", - -- "Elite", - -- "Rare Elite", - -- }, - -- set = function(info, val) - -- module.db[info[#info]] = val - -- module.SetChainStyle() - -- end, - -- }, + header_classColors = { + order = 4, + type = "header", + name = "Class Colors", + }, + classColorsPlayer = { + order = 5, + type = "toggle", + name = "Player", + width = "full", + }, + classColorsOthers = { + order = 6, + type = "toggle", + name = "Others", + desc = "Target, Target-of-Target, Focus, etc.", + width = "full", + }, + header_playerChain = { + order = 7, + type = "header", + name = "Player Chain", + }, + enablePlayerChain = { + order = 8, + type = "toggle", + name = "Enable", + desc = "Shows a rare, elite or rare elite chain around the player frame", + width = "half", + }, + chainStyle = { + order = 9, + type = "select", + name = "Style", + values = { + "Rare", + "Elite", + "Rare Elite", + }, + set = function(info, val) + module.db[info[#info]] = val + module.SetChainStyle() + end, + }, header_miscellaneous = { order = 10, type = "header", @@ -202,19 +202,19 @@ function module.SetChainStyle() if chain == 1 then -- Rare -- Set rare texture to player frame PlayerFrame.PlayerFrameContainer.FrameTexture:SetAtlas("ui-hud-unitframe-target-portraiton-boss-rare-silver", TextureKitConstants.UseAtlasSize); - PlayerFrame.PlayerFrameContainer.FrameTexture:SetTexCoord(1, 0, 1, 0); + PlayerFrame.PlayerFrameContainer.FrameTexture:SetTexCoord(1, 0, 0, 1); PlayerFrame.PlayerFrameContainer.FrameTexture:SetPoint("TOPLEFT", 11, -8); elseif chain == 2 then -- Elite -- Set rare texture to player frame PlayerFrame.PlayerFrameContainer.FrameTexture:SetAtlas("UI-HUD-UnitFrame-Target-PortraitOn-Boss-Gold", TextureKitConstants.UseAtlasSize); - PlayerFrame.PlayerFrameContainer.FrameTexture:SetTexCoord(1, 0, 1, 0); + PlayerFrame.PlayerFrameContainer.FrameTexture:SetTexCoord(1, 0, 0, 1); PlayerFrame.PlayerFrameContainer.FrameTexture:SetPoint("TOPLEFT", 11, -8); elseif chain == 3 then -- Rare Elite -- Set rare texture to player frame PlayerFrame.PlayerFrameContainer.FrameTexture:SetAtlas("UI-HUD-UnitFrame-Target-PortraitOn-Boss-Gold-Winged", TextureKitConstants.UseAtlasSize); - PlayerFrame.PlayerFrameContainer.FrameTexture:SetTexCoord(1, 0, 1, 0); + PlayerFrame.PlayerFrameContainer.FrameTexture:SetTexCoord(1, 0, 0, 1); PlayerFrame.PlayerFrameContainer.FrameTexture:SetPoint("TOPLEFT", -8, -8); end diff --git a/XarMods_Mainline.toc b/XarMods.toc similarity index 100% rename from XarMods_Mainline.toc rename to XarMods.toc