매크로로 만들어서 쓰는거는 상관이 없습니다...
그런데 그것을 애드온 처럼 만들어서 사용하는데 부터가 문제가 생기는군요...
Lua 파일로 만들어서 애드온 처럼 사용하려하니까...
보시다 시피 우측상단(?) 액션바랑, 태세바 가 말썽을 피웁니다...
1. 메인액션바, 우측상단(?) 액션바
2. 최대 시야
3. 우측액션바 위치조정
4. 경험치바 위치조정, 메인액션바 화살표 삭제
5. 가방, 메뉴바 위치조정
6. 프레임틀 삭제
7. 툴팁 위치 변경
8. 미니맵 이동
총 이렇게 매크로로 쓰고...
중요한 Lua 파일은...
-- 메인메뉴바 이동
MainMenuBar:ClearAllPoints()
MainMenuBar:SetPoint("BOTTOMRIGHT",-250,0)
MultiBarBottomLeft:ClearAllPoints()
MultiBarBottomLeft:SetPoint("BOTTOMRIGHT",-250,110)
-- 시아 확장
SetCVar("cameraDistanceMaxFactor", 2)
SetCVar("cameraDistanceMax", 50)
CameraZoomOut(0)
-- 오른쪽 액션바 위치조정
MultiBarLeft:ClearAllPoints()
MultiBarRight:ClearAllPoints()
MultiBarLeft:SetPoint("TOPLEFT",UIParent,"TOPLEFT",1965,-310)
MultiBarRight:SetPoint("TOPLEFT",UIParent,"TOPLEFT",2005,-310)
-- 버프창 크기
BuffFrame:SetScale(1.5)
BuffFrame:SetPoint("TOPRIGHT",-165,-15,0)
-- 경험치바 변경
MainMenuExpBar:SetPoint("TOPLEFT",UIParent,"TOPLEFT",5,0)
-- 프레임틀 삭제
MainMenuBarTexture0:Hide()
MainMenuBarTexture1:Hide()
MainMenuBarTexture2:Hide()
MainMenuBarTexture3:Hide()
MainMenuBarLeftEndCap:Hide();
MainMenuBarRightEndCap:Hide();
-- 스킬바 화살표 삭제
ActionBarUpButton:ClearAllPoints()
ActionBarUpButton:Hide()
ActionBarDownButton:Hide()
-- 툴팁 위치 변경
function GameTooltip_SetDefaultAnchor(tooltip, parent)tooltip:SetOwner(parent, "ANCHOR_NONE")tooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMLEFT",470, 200)tooltip.default = 1;end
-- 가방, 메뉴바 위치
MainMenuBarBackpackButton:SetPoint("BOTTOMRIGHT",ActionButton1,"TOPLEFT",-315,-35)
CharacterMicroButton:ClearAllPoints()
CharacterMicroButton:SetPoint("TOPLEFT",UIParent,"TOPLEFT",1,-900)
-- 우측 액션바, 변신바
MultiBarBottomRight:ClearAllPoints()
MultiBarBottomRight:SetPoint("TOPLEFT",UIParent,"TOPLEFT",782,-835)
StanceBarFrame:ClearAllPoints()
StanceBarFrame:SetPoint("TOPLEFT",UIParent,"TOPLEFT",800,-800)
-- 미니맵 이동
MinimapCluster:SetScale(1.15)
MinimapCluster:ClearAllPoints()
MinimapCluster:SetPoint("TOPLEFT",UIParent,"TOPLEFT",400,-650)
-- 퀘스트리스트 이동
WatchFrame:SetPoint("TOPLEFT",UIParant,"TOPLEFT",1700,-250)
--거리에 따른 액션바 색상변화
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)
아... 그리고 ㅠㅠ 우측액션바를 수직상태에서 수평상태로 바꾸는 메크로는 없을까요?ㅠㅠ