와우 인벤 애드온 게시판

전체보기

모바일 상단 메뉴

본문 페이지

rbuff 대해서 질문있습니다.

sideliner
조회: 852
2010-02-10 18:18:09
질문있습니다.

한줄에 표시할수있는 버프랑 디버프수를 수정하고싶은데 어떻케해야하나요?

설정할수있는 방법좀 알려주세요

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


--rdy up for wotlk--

BUFF_FLASH_TIME_ON = 0.9;
BUFF_FLASH_TIME_OFF = 0.9;
BUFF_MIN_ALPHA = 0.80;

--크기설정--
local myscale = 1

-- 텍스쳐 설정 --
local glosstex1 = "Interface\\AddOns\\rBuff\\gloss" -- 버튼 스킨 --
local glosstex2 = "Interface\\AddOns\\rBuff\\gloss_grey" -- 버튼 스킨 --

local addon = CreateFrame("Frame")
local _G = getfenv(0)

addon:SetScript("OnEvent", function(self, event, ...)
local unit = ...;
if(event=="PLAYER_ENTERING_WORLD")
then
ConsolidatedBuffs:ClearAllPoints()
ConsolidatedBuffs:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -10, -10) -- 버프 프레임 위치 x, y --
ConsolidatedBuffs:SetScale(myscale)
BuffFrame:SetScale(myscale)
addon:runthroughicons()

end
if ( event == "UNIT_AURA" ) then
if ( unit == PlayerFrame.unit ) then
addon:runthroughicons()
end
end
end)

function addon:runthroughicons()
local i = 1
while _G["BuffButton"..i]
do
addon:checkgloss("BuffButton"..i,1)
i = i + 1
end
i = 1
while _G["DebuffButton"..i]
do
addon:checkgloss("DebuffButton"..i,2)
i = i + 1
end
i = 1
while _G["TempEnchant"..i]
do
addon:checkgloss("TempEnchant"..i,3)
i = i + 1
end
end

function addon:checkgloss(name,icontype)
local b = _G[name.."Border"]
local i = _G[name.."Icon"]
local f = _G[name]
local c = _G[name.."Gloss"]
local ff = _G[name.."Duration"]

--폰트설정--
ff:SetFont("Fonts\\2002.ttf", 10 ,"THINOUTLINE")
ff:ClearAllPoints()
ff:SetPoint("TOP",f,"BOTTOM",1,0)

if not c then

local fg = CreateFrame("Frame", name.."Gloss", f)
fg:SetAllPoints(f)

local t = f:CreateTexture(name.."GlossTexture","ARTWORK")
t:SetTexture(glosstex2)
t:SetPoint("TOPLEFT", fg, "TOPLEFT", -0, 0)
t:SetPoint("BOTTOMRIGHT", fg, "BOTTOMRIGHT", 0, -0)

i:SetTexCoord(0.1,0.9,0.1,0.9)
i:SetPoint("TOPLEFT", fg, "TOPLEFT", 2, -2)
i:SetPoint("BOTTOMRIGHT", fg, "BOTTOMRIGHT", -2, 2)

end

local tex = _G[name.."GlossTexture"]

if icontype == 2 and b then
local red,green,blue = b:GetVertexColor();
tex:SetTexture(glosstex2)
tex:SetVertexColor(red*0.5,green*0.5,blue*0.5)
elseif icontype == 3 and b then
tex:SetTexture(glosstex2)
tex:SetVertexColor(0.5,0,0.5)
else
tex:SetTexture(glosstex2)
tex:SetVertexColor(1,1,1)
end

if b then b:SetAlpha(0) end

end

SecondsToTimeAbbrev = function(time)
local hr, m, s, text
if time <= 0 then text = ""
elseif(time < 3600 and time > 60) then
hr = floor(time / 3600)
m = floor(mod(time, 3600) / 60 + 1)
text = format("|cffffd700%d분", m) -- 글씨 색상 코드 입력 --
elseif time < 60 then
m = floor(time / 60)
s = mod(time, 60)
text = (m == 0 and format("|cfff86c59%d초", s)) -- 글씨 색상 코드 입력 --
else
hr = floor(time / 3600 + 1)
text = format("|cff84e4f9%d시", hr) -- 글씨 색상 코드 입력 --
end
return text
end

addon:RegisterEvent("UNIT_AURA");
addon:RegisterEvent("PLAYER_ENTERING_WORLD");

Lv63 sideliner

손 예 은

모바일 게시판 하단버튼

댓글

새로고침
새로고침

모바일 게시판 하단버튼

지금 뜨는 인벤

더보기+

모바일 게시판 리스트

모바일 게시판 하단버튼

글쓰기

모바일 게시판 페이징

최근 HOT한 콘텐츠

  • 와우
  • 게임
  • IT
  • 유머
  • 연예
AD