매크로 게시판

전체보기

모바일 상단 메뉴

본문 페이지

[공통] 타겟프레임 디버프,버프 크기 및 위치 수정에 대한 질문입니다.

아이콘 skykaze
댓글: 2 개
조회: 2350
2013-11-14 03:48:10

local AURA_START_X = 5;
local AURA_START_Y = 32;
local AURA_OFFSET_Y = 3;
local LARGE_AURA_SIZE = 26;
local SMALL_AURA_SIZE = 17;
local AURA_ROW_WIDTH = 122;
local TOT_AURA_ROW_WIDTH = 101;
local NUM_TOT_AURA_ROWS = 2; -- TODO: replace with TOT_AURA_ROW_HEIGHT functionality if this becomes a problem

function TargetFrame_UpdateAuraPositions(self, auraName, numAuras, numOppositeAuras, largeAuraList, updateFunc, maxRowWidth, offsetX, mirrorAurasVertically)
-- a lot of this complexity is in place to allow the auras to wrap around the target of target frame if it's shown

-- Position auras
local size;
local offsetY = AURA_OFFSET_Y;
-- current width of a row, increases as auras are added and resets when a new aura's width exceeds the max row width
local rowWidth = 0;
local firstBuffOnRow = 1;
for i=1, numAuras do
-- update size and offset info based on large aura status
if ( largeAuraList[i] ) then
size = LARGE_AURA_SIZE;
offsetY = AURA_OFFSET_Y + AURA_OFFSET_Y;
else
size = SMALL_AURA_SIZE;
end

-- anchor the current aura
if ( i == 1 ) then
rowWidth = size;
self.auraRows = self.auraRows + 1;
else
rowWidth = rowWidth + size + offsetX;
end
if ( rowWidth > maxRowWidth ) then
-- this aura would cause the current row to exceed the max row width, so make this aura
-- the start of a new row instead
updateFunc(self, auraName, i, numOppositeAuras, firstBuffOnRow, size, offsetX, offsetY, mirrorAurasVertically);

rowWidth = size;
self.auraRows = self.auraRows + 1;
firstBuffOnRow = i;
offsetY = AURA_OFFSET_Y;

if ( self.auraRows > NUM_TOT_AURA_ROWS ) then
-- if we exceed the number of tot rows, then reset the max row width
-- note: don't have to check if we have tot because AURA_ROW_WIDTH is the default anyway
maxRowWidth = AURA_ROW_WIDTH;
end
else
updateFunc(self, auraName, i, numOppositeAuras, i - 1, size, offsetX, offsetY, mirrorAurasVertically);
end
end
end

애드온을 쓰지 않고, 와우기본 UI를 최대한 수정해서 플레이하는 걸 추구하는 중인 한 유저입니다.

보통 타겟프레임 디버프 크기가 작아서 애드온을 통해 해결하곤 하는데, 기본 UI를 수정해서 어려움을 해결해보고자 하던 중 북미포럼 쪽에서 위의 코드를 찾았습니다. 이를 적용시켜 보니 크기는 제가 생각한 대로 잘 수정되는데, 디버프크기가 일정 수준을 초과하면 다음 라인으로 디버프가 정렬되더군요. 이걸 강제로 그냥 한줄로 쭉 보이게 하고 싶은데 어떻게 수정하면 좋을 지 조언 부탁드립니다.

와우저

Lv71 skykaze

모바일 게시판 하단버튼

댓글

새로고침
새로고침

모바일 게시판 하단버튼

지금 뜨는 인벤

더보기+

모바일 게시판 리스트

모바일 게시판 하단버튼

글쓰기

모바일 게시판 페이징

최근 HOT한 콘텐츠

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