핏불이라는 유닛프레임에서 보스프레임 보이게 하는 방법입니다.

애드온 특성상 무겁다는 단점이 있어서 많이 쓰시는 분이 없으리라 보는데

그래도 쓰시는 분이 계시다면 알려드리고자 올립니다. 

해외 포럼에서 발견해서 저도 잘 쓰고 있습니다.



PitBull4 폴더 안 - Utils.lua . . .

이 문구 아래에

	local valid_singleton_unit_ids = {		player = true,		pet = true,		mouseover = true,		focus = true,		target = true,	}	setmetatable(valid_singleton_unit_ids, target_same_mt)

아래 문구를 삽입---------

	for i = 1, MAX_BOSS_FRAMES do		valid_singleton_unit_ids["boss" .. i] = true	end



이 문구 아래에

	local classifications = {		player = L["Player"],		target = L["Target"],		pet = L["Player's pet"],		party = L["Party"],		party_sing = L["Party"],		partypet = L["Party pets"],		partypet_sing = L["Party pet"],		raid = L["Raid"],		raid_sing = L["Raid"],		raidpet = L["Raid pets"],		raidpet_sing = L["Raid pet"],		mouseover = L["Mouse-over"],		focus = L["Focus"],		maintank = L["Main tanks"],		maintank_sing = L["Main tank"],		mainassist = L["Main assists"],		mainassist_sing = L["Main assist"]	}

아래 문구를 삽입-------

	for i = 1, MAX_BOSS_FRAMES do		classifications["boss" .. i] = L["Boss"] .. " " .. i	end



PitBull4 폴더 안 - Main.lua . . .

이 문구 아래에

for i = 1, MAX_PARTY_MEMBERS do	NORMAL_UNITS[#NORMAL_UNITS+1] = "party" .. i	NORMAL_UNITS[#NORMAL_UNITS+1] = "partypet" .. iendfor i = 1, MAX_RAID_MEMBERS do	NORMAL_UNITS[#NORMAL_UNITS+1] = "raid" .. iend

아래 문구를 삽입--------

for i = 1, MAX_BOSS_FRAMES do	SINGLETON_CLASSIFICATIONS[#SINGLETON_CLASSIFICATIONS + 1] = "boss" .. i	NORMAL_UNITS[#NORMAL_UNITS+1] = "boss" .. iend

PitBull4_LuaTexts 폴더 안 - ScriptEnv.lua . . .

이 문구 아래에

local UnitToLocale = {player = L["Player"], target = L["Target"], pet = L["%s's pet"]:format(L["Player"]), focus = L["Focus"], mouseover = L["Mouse-over"]}

아래 문구를 삽입--------

for i = 1, MAX_BOSS_FRAMES do	UnitToLocale["boss" .. i] = L["Boss"] .. " " .. iend



-------------------------------------------------

보스 프레임 때문에 애드온 하나 더 설치하는 방법도 있는데

Pitbull 유닛프레임을 쓰시는 분들이라면 이렇게 하면 따로 설치하지 않으셔도

사용하실수 있습니다.

쓰잘데기 없는 팁일수도 있습니다 ㅠㅠ

========================================

파일 첨부 했습니다.

main.lua 파일과 util.lua 파일은 'Pitbull4' 폴더에 넣어주시고

scriptEnv.lua 파일은 Pitbull4_LuaTexts 폴더안에 넣어주시면 됩니다.

미리보기 화면을 25인으로 설정하고 보시면 보실수 있습니다.
 
 
 
스샷 첨부
 
-  붉은 테두리로 쳐진 부분이 보스 프레임으로 표시됩니다.