就是这个贴子里的, 我下的是第二个,看里面代码,就是加了一段
function BuffButton_OnUpdate()
local buffDuration = getglobal(this:GetName().."Duration");
if ( this.untilCancelled == 1 ) then
buffDuration:SetTextColor(0.0, 1.0, 0.0);
buffDuration:SetText("N/A");
buffDuration:Show();
return;
end
local buffIndex = this.buffIndex;
local timeLeft = GetPlayerBuffTimeLeft(this:GetID());
BuffFrame_UpdateDuration(this, timeLeft);
if ( GameTooltip:IsOwned(this) ) then
GameTooltip:SetPlayerBuff(this:GetID());
end
end
函数,一开把我只把这段函数加到我修改的bufftimers里,发现DEBUFF显示不对,我也只会简单的修改