제가 격변때 어느분이 만든 매크로 쓰다가 그걸 애드온으로 하나 만들었는데

 

판다들어서 구버젼뜨는데 이걸 안뜨게 할순 없을까요.

렉걸리고 그런게 이것때문인거 같기도 하고..ㅜㅜ

 

하나는 단축키옆에 무늬 없애는거고

다른 하나는 사거리가 멀어지면 스킬창이 빨간색으로 변하는 겁니다.

 

고수분들 도와주세요

 

-- Frame Clear

MainMenuBarLeftEndCap:Hide();
MainMenuBarRightEndCap:Hide();

-- Range of Bar
hooksecurefunc("ActionButton_OnEvent",function(self, event, ...)
        if ( event == "PLAYER_TARGET_CHANGED" ) then
                self.newTimer = self.rangeTimer
        end
end)
 
hooksecurefunc("ActionButton_UpdateUsable",function(self)
        local icon = _G[self:GetName().."Icon"]
        local valid = IsActionInRange(self.action)
 
        if ( valid == 0 ) then
                icon:SetVertexColor(1.0, 0.1, 0.1)
        end
end)
 
hooksecurefunc("ActionButton_OnUpdate",function(self, elapsed)
        local rangeTimer = self.newTimer
 
        if ( rangeTimer ) then
                rangeTimer = rangeTimer - elapsed
 
                if ( rangeTimer <= 0 ) then
                        ActionButton_UpdateUsable(self)
                        rangeTimer = TOOLTIP_UPDATE_TIME
                end
 
                self.newTimer = rangeTimer
        end
end)