|
|
Ответ: Поиск аддонов!
Из "маркочных" эддонов мне больше всего понравились 3 варианта:
Baud Mark
SimpleRaidTargetIcons
И решение от ALZA(спасибо за код) который я применил у себя и который в последствие у TUK'a стал tMark ^)
Code:
--[[ Marking ]]
local menuFrame = CreateFrame("Frame", "aSettingsMarkingFrame", UIParent, "UIDropDownMenuTemplate")
local menuList = {
{text = "Clear",
func = function() SetRaidTarget("target", 0) end},
{text = "Skull",
func = function() SetRaidTarget("target", 8) end},
{text = "|cffff0000Cross|r",
func = function() SetRaidTarget("target", 7) end},
{text = "|cff00ffffSquare|r",
func = function() SetRaidTarget("target", 6) end},
{text = "|cffC7C7C7Moon|r",
func = function() SetRaidTarget("target", 5) end},
{text = "|cff00ff00Triangle|r",
func = function() SetRaidTarget("target", 4) end},
{text = "|cff912CEEDiamond|r",
func = function() SetRaidTarget("target", 3) end},
{text = "|cffFF8000Circle|r",
func = function() SetRaidTarget("target", 2) end},
{text = "|cffffff00Star|r",
func = function() SetRaidTarget("target", 1) end},
}
WorldFrame:HookScript("OnMouseDown", function(self, button)
if(button=="LeftButton" and IsShiftKeyDown() and UnitExists("mouseover")) then
if(not IsPartyLeader()) then
local num = GetNumRaidMembers()
if(num==0) then return end
local rank = select(2, GetRaidRosterInfo(num))
if(rank==0) then return end
end
EasyMenu(menuList, menuFrame, "cursor", 0, 0, "MENU", 1)
end
end)
|