배틀리
2019-09-21 06:06
조회: 10,778
추천: 13
액션바 거리에 따른 색 변경거리가 멀어졌을 때 사용 불가 버튼을 적색으로 표시하는 스크립트는 전에 있었지만 작동이 안 되고 있고 tullaRange 애드온은 아직 클래식용이 없어서 찾아보고 만들었습니다. 액션버튼에 있는 단축키가 사용 불가능 거리에 있으면 적색으로 변경되는 것을 힌트로 작성했습니다. 위의 링크를 참고했는데 오류가 생길 수는 있겠으나 아직은 괜찮네요. 마법사의 스킬을 예로 들자면 1. 몹과 40m 이상 2. 몹과 30m~40m 3. 몹과 30m 이내 아래 내용을 담은 애드온을 첨부파일에 넣었으니 사용할 분은 다운받아 쓰시길 바랍니다. local function iconColor(self) local icon = self.icon; local normalTexture = self.NormalTexture; if ( not normalTexture or not self.action) then return; end local isUsable, notEnoughMana = IsUsableAction(self.action); if ( isUsable ) then icon:SetVertexColor(1.0, 1.0, 1.0); elseif ( notEnoughMana ) then icon:SetVertexColor(0.5, 0.5, 1.0); else icon:SetVertexColor(0.4, 0.4, 0.4); end; end hooksecurefunc("ActionButton_UpdateRangeIndicator", function(self, checksRange, inRange) local icon = self.icon; local r, g, b = RED_FONT_COLOR:GetRGB() if ( self.HotKey:GetText() == RANGE_INDICATOR ) then if ( checksRange ) then if ( inRange ) then iconColor(self) else icon:SetVertexColor(r, g, b); end else iconColor(self) end else if ( checksRange and not inRange ) then icon:SetVertexColor(r, g, b); else iconColor(self) end end end) |
인벤 공식 앱
댓글 알람 기능 장착! 최신 게임뉴스를 한 눈에 보자