MainMenuBar:SetScale(0.85)
-- ("140k")
local function EventHandlerFunction()
PlayerHitIndicator:Hide()
PlayerHitIndicator.Show = function() return; end
end
local f = CreateFrame("Frame", nil, UIParent)
f:SetScript('OnEvent', EventHandlerFunction)
f:RegisterEvent("PLAYER_ENTERING_WORLD");
local f=function(v)if(v>=1e4) then return ('%.1fk'):format(v/1e3):gsub('%.?0+([km])$','%1') else return v end end
hooksecurefunc("TextStatusBar_UpdateTextString",function(s)
if not GetCVarBool("statusTextPercentage") then
if s.TextString and s.currValue then
s.TextString:SetText(f(s.currValue))
end
end
end)
local eventframe=CreateFrame("Frame")
-- LoseControl Move
LossOfControlFrame:ClearAllPoints()
LossOfControlFrame:SetPoint("CENTER",UIParent,"CENTER", 0, 140)
LossOfControlFrame:SetScale(1)
select(2,LossOfControlFrame:GetRegions()):SetAlpha(0) select(3,LossOfControlFrame:GetRegions()):SetAlpha(0)
-- Class colors in hp bars
local function colour(statusbar, unit)
local _, class, c
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)
PlayerFrameHealthBar:SetStatusBarColor(0,1,0)
end
end
hooksecurefunc("UnitFrameHealthBar_Update", colour)
hooksecurefunc("HealthBar_OnValueChanged", function(self)
colour(self, self.unit)
end)
--Move Frames
local a = CreateFrame("Frame")
a:SetScript("OnEvent", function(self, event)
if event == "PLAYER_ENTERING_WORLD" then
PlayerFrame:ClearAllPoints()
PlayerFrame:SetPoint("TOPLEFT",UIParent,"TOPLEFT", 350, -220)
TargetFrame:ClearAllPoints()
TargetFrame:SetPoint("TOPLEFT",UIParent,"TOPLEFT", 443, -270)
end
end)
a:RegisterEvent("PLAYER_ENTERING_WORLD")
PlayerFrame:SetScale(0.8634891937767508)
TargetFrame:SetScale(0.8634891937767508)
FocusFrame:SetScale(1)
PetFrame:ClearAllPoints()
PetFrame:SetPoint("CENTER",UIParent,"CENTER", 0, 450)
PetFrame:SetScale(1)
--CHANGE YOUR NAME
local frame = CreateFrame("FRAME", "NameChangeScripts")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
local function eventHandler(self, event, ...)
-- EDIT THIS LINE BELOW TO CHANGE YOUR NAME
NewName = "Rogue Power"
PN = GetUnitName("player")
-- Change Player UnitFrame Name
PFNC = CreateFrame("Frame", "PlayerFrameNameChange")
local function ChangePlayerName(self)
PlayerFrame.name:SetText(NewName)
end
PFNC:SetScript("OnUpdate", ChangePlayerName)
-- Change Target UnitFrame Name
TFNC = CreateFrame("Frame", "TargetFrameNameChange")
local function ChangeTargetName(self)
local TN = GetUnitName("target")
if PN == TN then
TargetFrame.name:SetText(NewName)
end
end
TFNC:SetScript("OnUpdate", ChangeTargetName)
-- Change Target's Target UnitFrame Name
TFTNC = CreateFrame("Frame", "TargetFrameTargetNameChange")
local function ChangeTargetofTargetName(self)
local TTN = GetUnitName("targettarget")
if PN == TTN then
TargetFrameToT.name:SetText(NewName)
end
end
TFTNC:SetScript("OnUpdate", ChangeTargetofTargetName)
-- Change Focus UnitFrame Name
FFNC = CreateFrame("Frame", "FocusFrameNameChange")
local function ChangeFocusName(self)
local FN = GetUnitName("focus")
if PN == FN then
FocusFrame.name:SetText(NewName)
end
end
FFNC:SetScript("OnUpdate", ChangeFocusName)
-- Change Focus' Target UnitFrame Name
FFTNC = CreateFrame("Frame", "FocusFrameTargetNameChange")
local function ChangeFocusTargetName(self)
local FTN = GetUnitName("focustarget")
if PN == FTN then
FocusFrameToT.name:SetText(NewName)
end
end
FFTNC:SetScript("OnUpdate", ChangeFocusTargetName)
end
frame:SetScript("OnEvent", eventHandler)
-- Clear frame
hooksecurefunc("PlayerFrame_UpdateStatus", function()
if IsResting("player") then
PlayerStatusTexture:Hide()
PlayerRestIcon:Hide()
PlayerRestGlow:Hide()
PlayerStatusGlow:Hide()
elseif PlayerFrame.inCombat then
PlayerStatusTexture:Hide()
PlayerAttackIcon:Hide()
PlayerRestIcon:Hide()
PlayerAttackGlow:Hide()
PlayerRestGlow:Hide()
PlayerStatusGlow:Hide()
PlayerAttackBackground:Hide() end end)
TargetFrameTextureFramePVPIcon:SetAlpha(0)
PlayerPVPIcon:SetAlpha(0)
TargetFrameTextureFramePVPIcon:SetAlpha(0)
PlayerPVPIcon:SetAlpha(0)
PlayerPVPTimerText:SetAlpha(0)
-- Say interapt
local f = CreateFrame("Frame")
local function Update(self, event, ...)
local pvpType = GetZonePVPInfo()
f:UnregisterEvent("ZONE_CHANGED_NEW_AREA")
if event == "COMBAT_LOG_EVENT_UNFILTERED" then
local timestamp, eventType, _, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, _, spellID, spellName, _, extraskillID, extraSkillName = ...
if eventType == "SPELL_INTERRUPT" and sourceName == UnitName("player") then
SendChatMessage("Interrupted -> "..GetSpellLink(extraskillID).."!", "say")
end
end
end
f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
f:RegisterEvent("ZONE_CHANGED_NEW_AREA")
f:SetScript("OnEvent", Update)
-- Mini Map Big
local BigMap = function()
WorldMapFrame:SetParent(UIParent)
WorldMapFrame:EnableMouse(false)
WorldMapFrame:EnableKeyboard(false)
WorldMapFrame:SetScale(1)
SetUIPanelAttribute(WorldMapFrame, "area", "center")
SetUIPanelAttribute(WorldMapFrame, "allowOtherPanels", true)
WorldMapFrame:SetFrameLevel(6)
WorldMapDetailFrame:SetFrameLevel(WorldMapFrame:GetFrameLevel() + 1)
WorldMapFrame:SetFrameStrata('TOOLTIP')
BlackoutWorld:SetTexture(0, 0, 0, 0)
end
hooksecurefunc("WorldMap_ToggleSizeUp", BigMap)
hooksecurefunc("WorldMapFrame_SetFullMapView", BigMap)
BigMap()
-- Background
hooksecurefunc('TargetFrame_CheckFaction', function(self)
if ( not UnitPlayerControlled(self.unit)
and UnitIsTapped(self.unit)
and not UnitIsTappedByPlayer(self.unit)
and not UnitIsTappedByAllThreatList(self.unit) ) then
self.nameBackground:SetVertexColor(0.0, 0.0, 0.0, 0.5);
if ( self.portrait ) then
self.portrait:SetVertexColor(0.5, 0.5, 0.5);
end
else
self.nameBackground:SetVertexColor(0.0, 0.0, 0.0, 0.5);
if ( self.portrait ) then
self.portrait:SetVertexColor(1.0, 1.0, 1.0);
end
end
end)
-- No group
hooksecurefunc('PlayerFrameMultiGroupFrame_OnEvent',function(self, event, ...)
if ( event == "GROUP_ROSTER_UPDATE" ) then
if ( IsInGroup(LE_PARTY_CATEGORY_HOME) and IsInGroup(LE_PARTY_CATEGORY_INSTANCE) ) then
self:Hide(); end
elseif ( event == "UPDATE_CHAT_COLOR" ) then
self.HomePartyIcon:Hide();
self.InstancePartyIcon:Hide();
end
end)