Shestak UI
Go Back   Shestak UI > Interface Forums > Russian Community > General Discussion

General Discussion The place for World of Warcraft discussions that don’t fit into any other forum.

Advertising

 
Thread Tools
Old 01.09.2010, 10:14   #1
 Junior Member User Information

Hoppi's Avatar
Lightbulb Предложение по маркировке мобов с шифтом

Если немного модифицировать !aSettings\scripts\core.lua в части Mob marking(by ALZA), то можно избавиться от локализации девяти текстовых переменных и получить немого другой вид маркировки.
Code [Select]:
	local menuFrame = CreateFrame("Frame", "MarkingFrame", UIParent, "UIDropDownMenuTemplate")

	WorldFrame:HookScript("OnMouseDown", function(self, button)
		if button == "LeftButton" and IsShiftKeyDown() and UnitExists("mouseover") then
			local inParty = (GetNumPartyMembers() > 0)
			local inRaid = (GetNumRaidMembers() > 0)
			if (inRaid and (IsRaidLeader() or IsRaidOfficer()) or (inParty and not inRaid) or (not inParty and not inRaid)) then

				local indexRT = GetRaidTargetIndex("target")
				if not indexRT then indexRT = 0 end
				local menuList = {
					{text = RAID_TARGET_NONE, dist = 0, checkable = 1, checked = (indexRT == 0),
					func = function() SetRaidTarget("target", 0) end},
					{text = "|cfff0f0f0"..RAID_TARGET_8.."|r", dist = 0, checkable = 1, checked = (indexRT == 8), icon = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", tCoordLeft = 0.75, tCoordRight = 1, tCoordTop = 0.25, tCoordBottom = 0.5,
					func = function() SetRaidTarget("target", 8) end},
					{text = "|cffff0000"..RAID_TARGET_7.."|r", dist = 0, checkable = 1, checked = (indexRT == 7), icon = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", tCoordLeft = 0.5, tCoordRight = 0.75, tCoordTop = 0.25, tCoordBottom = 0.5,
					func = function() SetRaidTarget("target", 7) end},
					{text = "|cff00ffff"..RAID_TARGET_6.."|r", dist = 0, checkable = 1, checked = (indexRT == 6), icon = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", tCoordLeft = 0.25, tCoordRight = 0.5, tCoordTop = 0.25, tCoordBottom = 0.5,
					func = function() SetRaidTarget("target", 6) end},
					{text = "|cffC7C7C7"..RAID_TARGET_5.."|r", dist = 0, checkable = 1, checked = (indexRT == 5), icon = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", tCoordLeft = 0, tCoordRight = 0.25, tCoordTop = 0.25, tCoordBottom = 0.5,
					func = function() SetRaidTarget("target", 5) end},
					{text = "|cff00ff00"..RAID_TARGET_4.."|r", dist = 0, checkable = 1, checked = (indexRT == 4), icon = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", tCoordLeft = 0.75, tCoordRight = 1, tCoordTop = 0, tCoordBottom = 0.25,
					func = function() SetRaidTarget("target", 4) end},
					{text = "|cff912CEE"..RAID_TARGET_3.."|r", dist = 0, checkable = 1, checked = (indexRT == 3), icon = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", tCoordLeft = 0.5, tCoordRight = 0.75, tCoordTop = 0, tCoordBottom = 0.25,
					func = function() SetRaidTarget("target", 3) end},
					{text = "|cffFF8000"..RAID_TARGET_2.."|r", dist = 0, checkable = 1, checked = (indexRT == 2), icon = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", tCoordLeft = 0.25, tCoordRight = 0.5, tCoordTop = 0, tCoordBottom = 0.25,
					func = function() SetRaidTarget("target", 2) end},
					{text = "|cffffff00"..RAID_TARGET_1.."|r", dist = 0, checkable = 1, checked = (indexRT == 1), icon = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", tCoordLeft = 0, tCoordRight = 0.25, tCoordTop = 0, tCoordBottom = 0.25,
					func = function() SetRaidTarget("target", 1) end},
				}

				EasyMenu(menuList, menuFrame, "cursor", 0, 0, "MENU", 1)
			end
		end
	end)
Attached Thumbnails
Click image for larger version

Name:	rt.png
Views:	21
Size:	38.1 KB
ID:	169  
Old 01.09.2010, 10:14   #1.5 - Disable Ads

Advertise on this site

Old 01.09.2010, 12:49   #2
Shestak
 Junior Member User Information

Shestak's Avatar
В 2.5 это сделано достаточно давно.

Thread Tools



Mobile Style Русский English Deutsch Italian Chinese