--기본유닛프레임 이동
PlayerFrame:ClearAllPoints()
PlayerFrame:SetPoint("TOPLEFT",UIParent,"TOPLEFT",715,-100)
PlayerFrame.SetPoint = function() end
TargetFrame:SetPoint("TOPLEFT",UIParent,"TOPLEFT",550,-100)
FocusFrame:SetPoint("TOPLEFT",UIParent,"TOPLEFT",300,-300)
--독수리바 제거
MainMenuBarLeftEndCap:Hide()MainMenuBarRightEndCap:Hide()
-- 프레임
frame = CreateFrame("FRAME", "DefaultUIScrips")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:RegisterEvent("PARTY_MEMBERS_CHANGED")
function eventHandler(self, event, ...)
-- 플레이어 프레임
PlayerFrame:SetScale(1.3)
-- 대상 프레임
TargetFrame:SetScale(1.3)
-- 주시 프레임
FocusFrame:SetScale(1.1)
--대상 캐스팅
TargetFrameSpellBar:SetScale(1.25)
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint("CENTER",UIParent,"CENTER", 0, -120)
TargetFrameSpellBar.SetPoint = function() end
--주시 캐스팅
FocusFrameSpellBar:SetScale(2.5)
FocusFrameSpellBar:ClearAllPoints()
FocusFrameSpellBar:SetPoint("CENTER",UIParent,"CENTER", 0, 150)
FocusFrameSpellBar.SetPoint = function() end
--초상화 클래스
UFP = "UnitFramePortrait_Update"; UICC = "InterfaceGluesCharacterCreateUI-CharacterCreate-Classes"; CIT = CLASS_ICON_TCOORDS
hooksecurefunc(UFP,function(self) if self.portrait then local t = CIT[select(2,UnitClass(self.unit))] if t then self.portrait:SetTexture(UICC) self.portrait:SetTexCoord(unpack(t)) end end end)
--초상화 체력바에 클래스 컬러 입히기
local UnitIsPlayer, UnitIsConnected, UnitClass, RAID_CLASS_COLORS =
UnitIsPlayer, UnitIsConnected, UnitClass, RAID_CLASS_COLORS
local _, class, c
local function colour(statusbar, unit)
if UnitIsPlayer(unit) and UnitIsConnected(unit) and unit == statusbar.unit and UnitClass(unit) then
_, class = UnitClass(unit)
c = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
statusbar:SetStatusBarColor(c.r, c.g, c.b)
end
end)
hooksecurefunc("UnitFrameHealthBar_Update", colour)
hooksecurefunc("HealthBar_OnValueChanged", function(self)
colour(self, self.unit)
end)
local sb = _G.GameTooltipStatusBar
local addon = CreateFrame("Frame", "StatusColour")
addon:RegisterEvent("UPDATE_MOUSEOVER_UNIT")
addon:SetScript("OnEvent", function()
colour(sb, "mouseover")
end)
--제어불가
LossOfControlFrame:SetPoint("TOPLEFT",UIParent,"TOPLEFT",800,-250)
-- 에러메세지
local U=UIErrorsFrame;U:UnregisterAllEvents()U:RegisterEvent("SYSMSG")U:RegisterEvent("UI_INFO_MESSAGE")
--거리에 따른 액션바 색상변화
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)