매크로 게시판

전체보기

모바일 상단 메뉴

본문 페이지

[공통] 매크로로 액션바를 이동시켜서 사용하다가 Lua로 만들어보는데...ㅠㅠ

정상윤사마
조회: 2795
추천: 4
2014-04-26 11:08:01
매크로로 만들어서 쓰는거는 상관이 없습니다...

그런데 그것을 애드온 처럼 만들어서 사용하는데 부터가 문제가 생기는군요...

일단 그림 올립니다

이게 제가 원하는 방향인데

Lua 파일로 만들어서 애드온 처럼 사용하려하니까...


보시다 시피 우측상단(?) 액션바랑, 태세바 가 말썽을 피웁니다...

무엇이 잘못인지 잘 몰라서 매크로를 짠거랑 애드온 처럼 만든걸 올려보겠습니다...ㅠㅠ

1. 메인액션바, 우측상단(?) 액션바 

/run MainMenuBar:ClearAllPoints()
/run MainMenuBar:SetPoint("BOTTOMRIGHT",-250,0)
/run MultiBarBottomLeft:ClearAllPoints()
/run MultiBarBottomLeft:SetPoint("BOTTOMLEFT",ActionButton1,"TOPLEFT",0,5)

2. 최대 시야

/run SetCVar("cameraDistanceMaxFactor", 2)
/run SetCVar("cameraDistanceMax", 50)
/run CameraZoomOut(0)

3. 우측액션바 위치조정

/script MultiBarLeft:ClearAllPoints()
/script MultiBarRight:ClearAllPoints()
/run MultiBarLeft:SetPoint("TOPLEFT",UIParent,"TOPLEFT",1965,-310)
/run MultiBarRight:SetPoint("TOPLEFT",UIParent,"TOPLEFT",2005,-310)

4. 경험치바 위치조정, 메인액션바 화살표 삭제

/run MainMenuExpBar:SetPoint("TOPLEFT",UIParent,"TOPLEFT",5,0)
/run ActionBarUpButton:ClearAllPoints()
/run ActionBarUpButton:Hide()
/run ActionBarDownButton:Hide()

5. 가방, 메뉴바 위치조정

/run ActionBarUpButton:ClearAllPoints()
/run MainMenuBarBackpackButton:SetPoint("BOTTOMRIGHT",ActionButton1,"TOPLEFT",-315,-35)
/run CharacterMicroButton:ClearAllPoints()
/run CharacterMicroButton:SetPoint("TOPLEFT",UIParent,"TOPLEFT",1,-900)

6. 프레임틀 삭제

/run MainMenuBarTexture0:Hide()
/run MainMenuBarTexture1:Hide()
/run MainMenuBarTexture2:Hide()
/run MainMenuBarTexture3:Hide()
/script MainMenuBarLeftEndCap:Hide();
/script MainMenuBarRightEndCap:Hide();

7. 툴팁 위치 변경

/run function GameTooltip_SetDefaultAnchor(tooltip, parent)tooltip:SetOwner(parent, "ANCHOR_NONE")tooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMLEFT",470, 200)tooltip.default = 1;end

8. 미니맵 이동

/run MinimapCluster:SetScale(1.15)
/run MinimapCluster:ClearAllPoints()
/run MinimapCluster:SetPoint("TOPLEFT",UIParent,"TOPLEFT",400,-650)

총 이렇게 매크로로 쓰고...



중요한 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)


이렇게 작성을 했습니다ㅠㅠ

고수님들 불쌍한 초보를 도와주세요 ㅠㅠ



아... 그리고 ㅠㅠ 우측액션바를 수직상태에서 수평상태로 바꾸는 메크로는 없을까요?ㅠㅠ

최대한 애드온을 덜써볼려고 노력중입니다..ㅠㅠ

많은 조언 부탁드립니다 ㅠㅠ

Lv7 정상윤사마

모바일 게시판 하단버튼

댓글

새로고침
새로고침

모바일 게시판 하단버튼

지금 뜨는 인벤

더보기+

모바일 게시판 리스트

모바일 게시판 하단버튼

글쓰기

모바일 게시판 페이징

최근 HOT한 콘텐츠

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