kuinameplates-customs icon indicating copy to clipboard operation
kuinameplates-customs copied to clipboard

[Request] PVP flag/orb indicator

Open Architekt909 opened this issue 3 years ago • 0 comments

ElvUI has a feature w/ their nameplates that can show an icon on the nameplate if a player has an orb (temple) or a flag (wsg/etc). I'd love to be able to have this show up on a Kui nameplate. I went digging through their code and found that icons come from:

-- sourced from FrameXML/CompactUnitFrame.lua local ICONS = { [Enum.PvPUnitClassification.FlagCarrierHorde or 0] = "nameplates-icon-flag-horde", [Enum.PvPUnitClassification.FlagCarrierAlliance or 1] = "nameplates-icon-flag-alliance", [Enum.PvPUnitClassification.FlagCarrierNeutral or 2] = "nameplates-icon-flag-neutral", [Enum.PvPUnitClassification.CartRunnerHorde or 3] = "nameplates-icon-cart-horde", [Enum.PvPUnitClassification.CartRunnerAlliance or 4] = "nameplates-icon-cart-alliance", [Enum.PvPUnitClassification.AssassinHorde or 5] = "nameplates-icon-bounty-horde", [Enum.PvPUnitClassification.AssassinAlliance or 6] = "nameplates-icon-bounty-alliance", [Enum.PvPUnitClassification.OrbCarrierBlue or 7] = "nameplates-icon-orb-blue", [Enum.PvPUnitClassification.OrbCarrierGreen or 8] = "nameplates-icon-orb-green", [Enum.PvPUnitClassification.OrbCarrierOrange or 9] = "nameplates-icon-orb-orange", [Enum.PvPUnitClassification.OrbCarrierPurple or 10] = "nameplates-icon-orb-purple", }

I also found the lua file that controls the functionality though it does use some ElvUI hooks. But perhaps it could be a good reference for implementing this? Here's a link to pastebin with said file: https://pastebin.com/q6MaT5yz

This file may also be relevant for updating the status: https://pastebin.com/jxuu4LQJ

Architekt909 avatar Mar 31 '21 15:03 Architekt909