Jump to content

Photo

Default UI Scripts


  • Please log in to reply
711 replies to this topic

#681 nami69

nami69
  • Members
  • Posts: 11

Posted 26 March 2016 - 09:06 AM

http://imgur.com/T0wGAEQ

Anyone knows how to remove the raid role (damage dealer icon) in the picture?
  • 0

#682 iBurley

iBurley
  • Members
  • Posts: 7

Posted 29 March 2016 - 05:19 AM

Any way to make "3.3. Class colors behind names" also apply to yourself in addition to your target?


edit: So as far as the addon is concerned (didn't play with the macros yet), this code allowed me to have the class colors on player frame also, but it came with an interesting bug. For some reason on the player frame it extends the color to behind the health bar, so when you lose HP you'll see your class color in the area where the health is missing. I'd post a screenshot but apparently I have to have more posts before I can do that.

local frame = CreateFrame("FRAME")
frame:RegisterEvent("GROUP_ROSTER_UPDATE")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")
local function eventHandler(self, event, ...)
	 if UnitIsPlayer("target") then
			 c = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
			 TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.<img src='http://www.arenajunkies.com/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' />
	 end
	 if UnitIsPlayer("focus") then
			 c = RAID_CLASS_COLORS[select(2, UnitClass("focus"))]
			 FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.<img src='http://www.arenajunkies.com/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' />
	 end
	 if UnitIsPlayer("player") then
			 c = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
			 PlayerFrameBackground:SetVertexColor(c.r, c.g, c.<img src='http://www.arenajunkies.com/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' />
	 end
end
frame:SetScript("OnEvent", eventHandler)
for _, BarTextures in pairs({TargetFrameNameBackground, FocusFrameNameBackground, PlayerFrameBackground}) do
	 BarTextures:SetTexture("Interface\\TargetingFrame\\UI-StatusBar")
end

  • 0

#683 ajc1981

ajc1981

Posted 10 April 2016 - 11:38 AM

Any way to make "3.3. Class colors behind names" also apply to yourself in addition to your target?


edit: So as far as the addon is concerned (didn't play with the macros yet), this code allowed me to have the class colors on player frame also, but it came with an interesting bug. For some reason on the player frame it extends the color to behind the health bar, so when you lose HP you'll see your class color in the area where the health is missing. I'd post a screenshot but apparently I have to have more posts before I can do that.

local frame = CreateFrame("FRAME")
frame:RegisterEvent("GROUP_ROSTER_UPDATE")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")
local function eventHandler(self, event, ...)
	 if UnitIsPlayer("target") then
			 c = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
			 TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.<img src='http://www.arenajunkies.com/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' />
	 end
	 if UnitIsPlayer("focus") then
			 c = RAID_CLASS_COLORS[select(2, UnitClass("focus"))]
			 FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.<img src='http://www.arenajunkies.com/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' />
	 end
	 if UnitIsPlayer("player") then
			 c = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
			 PlayerFrameBackground:SetVertexColor(c.r, c.g, c.<img src='http://www.arenajunkies.com/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' />
	 end
end
frame:SetScript("OnEvent", eventHandler)
for _, BarTextures in pairs({TargetFrameNameBackground, FocusFrameNameBackground, PlayerFrameBackground}) do
	 BarTextures:SetTexture("Interface\\TargetingFrame\\UI-StatusBar")
end


I also have the same problem with this. using this script
which is for the class color in hp bar
local function colour(statusbar, unit)
if UnitIsPlayer(unit) and UnitIsConnected(unit) and unit == statusbar.unit and UnitClass(unit) then
local _, class = UnitClass(unit)
local 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)

and to turn the class color behide the name i use


local frame = CreateFrame("FRAME")
frame:RegisterEvent("GROUP_ROSTER_UPDATE")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")

local function eventHandler(self, event, ...)
if UnitIsPlayer("target") then
c = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
TargetFrameNameBackground:SetVertexColor(c.r, c.g, c. :duckers:
end
if UnitIsPlayer("focus") then
c = RAID_CLASS_COLORS[select(2, UnitClass("focus"))]
FocusFrameNameBackground:SetVertexColor(c.r, c.g, c. :duckers:
end

if UnitIsPlayer("player") then
c = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
PlayerFrameBackground:SetVertexColor(c.r, c.g, c. :duckers:
end
end

frame:SetScript("OnEvent", eventHandler)

for _, BarTextures in pairs({TargetFrameNameBackground, FocusFrameNameBackground, PlayerFrameBackground}) do
BarTextures:SetTexture("Interface\\TargetingFrame\\UI-StatusBar")
end


it's not showing up as black or clear when i'm losing health just stays whatever the class color is. any help would be great , here is a screenshot http://imgur.com/S6VZLEx


ok just an update on this really incase the other dude has not got this fixed yet the hp bar color is working on my script but just not the script what turns the class color behide the name unless i remove

if UnitIsPlayer("player") then
c = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
PlayerFrameBackground:SetVertexColor(c.r, c.g, c. :duckers:

so this is what's making the bug happen for me will do some research later if noone can help with the script



here is the fix for it thanks to minpojke for this

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)

end
end

hooksecurefunc("UnitFrameHealthBar_Update", colour)
hooksecurefunc("HealthBar_OnValueChanged", function(self)
colour(self, self.unit)
end)

local frame = CreateFrame("FRAME")
frame:RegisterEvent("GROUP_ROSTER_UPDATE")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")

local function eventHandler(self, event, ...)
if UnitIsPlayer("target") then
c = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.B)
end
if UnitIsPlayer("focus") then
c = RAID_CLASS_COLORS[select(2, UnitClass("focus"))]
FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.B)
end
if PlayerFrame:IsShown() and not PlayerFrame.bg then
c = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
bg=PlayerFrame:CreateTexture()
bg:SetPoint("TOPLEFT",PlayerFrameBackground)
bg:SetPoint("BOTTOMRIGHT",PlayerFrameBackground,0,22)
bg:SetTexture(TargetFrameNameBackground:GetTexture())
bg:SetVertexColor(c.r,c.g,c.B)
PlayerFrame.bg=true
end
end

frame:SetScript("OnEvent", eventHandler)

for _, BarTextures in pairs({TargetFrameNameBackground, FocusFrameNameBackground}) do
BarTextures:SetTexture("Interface\\TargetingFrame\\UI-StatusBar")
end

Edited by ajc1981, 10 April 2016 - 02:00 PM.

  • 0

#684 HTFael

HTFael
  • Members
  • Humanclass_name
  • US-Aerie Peak
  • Nightfall
  • Posts: 35
  • Talents: Destruction 0/2/0/1/0/0/1
  • 2v2: 1514
  • 3v3: 2024
  • 5v5: 576
  • RBG: 1600

Posted 16 May 2016 - 09:20 PM

This code below is from 2.3. Darken all the graphics Ibo/Lorti UI style: and is there anyway to darken enemy nameplates, Raid Frames and actionbars?
local frame=CreateFrame("Frame")
frame:RegisterEvent("ADDON_LOADED")
frame:SetScript("OnEvent", function(self, event, addon)
	 if (addon == "Blizzard_TimeManager") then
			 for i, v in pairs({PlayerFrameTexture, TargetFrameTextureFrameTexture, PetFrameTexture, PartyMemberFrame1Texture, PartyMemberFrame2Texture, PartyMemberFrame3Texture, PartyMemberFrame4Texture,
					 PartyMemberFrame1PetFrameTexture, PartyMemberFrame2PetFrameTexture, PartyMemberFrame3PetFrameTexture, PartyMemberFrame4PetFrameTexture, FocusFrameTextureFrameTexture,
					 TargetFrameToTTextureFrameTexture, FocusFrameToTTextureFrameTexture, BonusActionBarFrameTexture0, BonusActionBarFrameTexture1, BonusActionBarFrameTexture2, BonusActionBarFrameTexture3,
					 BonusActionBarFrameTexture4, MainMenuBarTexture0, MainMenuBarTexture1, MainMenuBarTexture2, MainMenuBarTexture3, MainMenuMaxLevelBar0, MainMenuMaxLevelBar1, MainMenuMaxLevelBar2,
					 MainMenuMaxLevelBar3, MinimapBorder, CastingBarFrameBorder, FocusFrameSpellBarBorder, TargetFrameSpellBarBorder, MiniMapTrackingButtonBorder, MiniMapLFGFrameBorder, MiniMapBattlefieldBorder,
					 MiniMapMailBorder, MinimapBorderTop,
					 select(1, TimeManagerClockButton:GetRegions())
			 }) do
					 v:SetVertexColor(.4, .4, .4)
			 end
			 for i,v in pairs({ select(2, TimeManagerClockButton:GetRegions()) }) do
					 v:SetVertexColor(1, 1, 1)
			 end
			 self:UnregisterEvent("ADDON_LOADED")
			 frame:SetScript("OnEvent", nil)
	 end
end)
for i, v in pairs({ MainMenuBarLeftEndCap, MainMenuBarRightEndCap }) do
	 v:SetVertexColor(.35, .35, .35)
end

  • 1

#685 slimtony

slimtony
  • Members
  • Night Elfclass_name
  • EU-Darksorrow
  • Rampage / Saccage
  • Posts: 4
  • Talents: Subtlety 1/1/2/1/1/1/.
  • 2v2: 96

Posted 06 July 2016 - 08:57 AM

This code below is from 2.3. Darken all the graphics Ibo/Lorti UI style: and is there anyway to darken enemy nameplates, Raid Frames and actionbars?

i would like to know also!!!
  • 0

#686 HTFael

HTFael
  • Members
  • Humanclass_name
  • US-Aerie Peak
  • Nightfall
  • Posts: 35
  • Talents: Destruction 0/2/0/1/0/0/1
  • 2v2: 1514
  • 3v3: 2024
  • 5v5: 576
  • RBG: 1600

Posted 09 July 2016 - 09:01 PM

Is there a code that adds party member trinkets to the left of the raid frame?
  • 0

#687 Zneak

Zneak
  • Members
  • Humanclass_name
  • US-Frostmourne
  • Bloodlust
  • Posts: 1
  • Talents: Subtlety 0/1/2/2/0/1/0
  • 2v2: 1390
  • 3v3: 2011
  • 5v5: 288

Posted 16 July 2016 - 02:50 PM

Thanks for all the great information, has been a long read through all the pages but definitely worth it!
A few pages back, someone posted about having the player cast bar above rather than below.

Could someone help me with a modification for having the target cast bar on top of their frame, rather than below?
I tried this, but it didn't work:
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint("BOTTOM", TargetFrame, "TOP", -15, 0)
TargetFrameSpellBar.ClearAllPoints = function() end
TargetFrameSpellBar.SetPoint = function() end

EDIT:
Nevermind, figured it out!

TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint("CENTER", TargetFrame, "TOP", -10, 10)
TargetFrameSpellBar.SetPoint = function() end

  • 0

#688 cippi

cippi
  • Junkies
  • Undeadclass_name
  • EU-Stormreaver
  • Cyclone / Wirbelsturm
  • Posts: 309
  • Talents: Shadow 0/1/0/0/1/1/0
  • 2v2: 96
  • 3v3: 1964
  • RBG: 959

Posted 21 July 2016 - 11:59 AM

Fixed it for you.

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 == false ) 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)

Anyone know how to fix it, not working after 7.0.
  • 0
Posted Image

#689 vilatsa

vilatsa
  • Members
  • Humanclass_name
  • EU-Outland
  • Misery
  • Posts: 124
  • Talents: Outlaw 1/2/2/././1/.
  • 2v2: 1527
  • 3v3: 2081
  • RBG: 576

Posted 21 July 2016 - 07:11 PM

MultiBarRight:ClearAllPoints()
MultiBarRight:SetPoint("TOPLEFT", 975, 75)
MultiBarRight.SetPoint = function() end
MultiBarLeft:ClearAllPoints()
MultiBarLeft:SetPoint("TOPLEFT", 933, 75)
MultiBarLeft.SetPoint = function() end

ShardBarFrame:ClearAllPoints()
ShardBarFrame:SetPoint("CENTER", 360, -130)
EclipseBarFrame:ClearAllPoints()
EclipseBarFrame:SetPoint("CENTER", 400, -150)
PetActionButton1:ClearAllPoints()
PetActionButton1:SetPoint("CENTER", -250, 30)
PetActionButton1.SetPoint = function() end
PetActionButton2:ClearAllPoints()
PetActionButton2:SetPoint("CENTER", -210, 30)
PetActionButton2.SetPoint = function() end
StanceBarFrame:ClearAllPoints()
StanceBarFrame:SetPoint("LEFT", 15, 110)
StanceBarFrame.SetPoint = function() end
StanceBarFrame:SetScale(1.1)
PlayerFrame:SetScale(1.1)
TargetFrame:SetScale(1.1)
FocusFrame:SetScale(1.1)
PartyMemberFrame1:SetScale(1.1)
MainMenuBarLeftEndCap:Hide()
MainMenuBarRightEndCap:Hide()
MainMenuBarMaxLevelBar:SetAlpha(0)
PlayerFrame:ClearAllPoints()
PlayerFrame:SetPoint("CENTER", -400, 90)
PlayerFrame.SetPoint = function() end
TargetFrame:ClearAllPoints()
TargetFrame:SetPoint ("bottom",PlayerFrame,"Right", -14, -96)
TargetFrame.SetPoint = function() end
PetFrame:ClearAllPoints()
PetFrame:SetPoint("right",PlayerFrame,"right", 120, 10)
PetFrame.SetPoint = function() end

for i,v in ipairs{"Left","Right"} do for i = 2, 12 do local n = "MultiBar"..v.."Button" local btn = _G[n..i] btn:ClearAllPoints() btn:SetPoint("LEFT", n..i - 1, "RIGHT", -120, 0) end end

UFP="UnitFramePortrait_Update" UICC="Interface\\TargetingFrame\\UI-Classes-Circles" CIT=CLASS_ICON_TCOORDS UC=UnitClass

hooksecurefunc(UFP,function(self) if self.portrait then t=CIT[select(2,UC(self.unit))] if t and UnitIsPlayer(self.unit) then self.portrait:SetTexture(UICC) self.portrait:SetTexCoord(unpack(t)) else self.portrait:SetTexCoord(0,1,0,1) end end end)

ComboPoint1:SetScale(1.4)
ComboPoint2:SetScale(1.4)
ComboPoint3:SetScale(1.4)
ComboPoint4:SetScale(1.4)
ComboPoint5:SetScale(1.4)
ComboFrame:ClearAllPoints()
ComboFrame:SetPoint("CENTER",UIParent,"CENTER", 0, 0)
ComboFrame.SetPoint = function() end
ComboPoint1:ClearAllPoints()
ComboPoint1:SetPoint("CENTER",UIParent,"CENTER", -20, -55)
ComboPoint1.SetPoint = function() end
ComboPoint2:ClearAllPoints()
ComboPoint2:SetPoint("CENTER",ComboPoint1,"CENTER", 10, 0)
ComboPoint2.SetPoint = function() end
ComboPoint3:ClearAllPoints()
ComboPoint3:SetPoint("CENTER",ComboPoint2,"CENTER", 10, 0)
ComboPoint3.SetPoint = function() end
ComboPoint4:ClearAllPoints()
ComboPoint4:SetPoint("CENTER",ComboPoint3,"CENTER", 10, 0)
ComboPoint4.SetPoint = function() end
ComboPoint5:ClearAllPoints()
ComboPoint5:SetPoint("CENTER",ComboPoint4,"CENTER", 11, -3)
ComboPoint5.SetPoint = function() end


anyone here kind enough to help me make this work in legion
  • 0

#690 Devion87

Devion87
  • Junkies
  • Humanclass_name
  • EU-Aegwynn
  • Blutdurst
  • Posts: 590
  • Talents: Beast Mastery 0/0/2/1/0/2/2
  • 2v2: 1405
  • 3v3: 2279
  • 5v5: 1603
  • RBG: 192

Posted 23 July 2016 - 11:10 AM

6.1. Text cast timer ("0.8 / 1.5"):

seems like this is not working anymore :/
  • 0

#691 sounds

sounds
  • Premium Junkies
  • Night Elfclass_name
  • US-Korgath
  • Vengeance
  • Posts: 393
  • Talents: Balance 2/0/2/1/1/.

Posted 23 July 2016 - 10:40 PM

Any idea how to add the following into an addon?

/script if (MultiBarLeft:IsVisible()) then MultiBarLeft:Hide() MultiBarRight:Hide() else MultiBarLeft:Show() MultiBarRight:Show() end

I have a macro on the side bar (bound to f10) to toggle the bars but it seems to reset whenever I join an arena or change zones, would be nice to have it hide automatically.
  • 0

#692 Paintrain

Paintrain
  • Premium Junkies
  • Orcclass_name
  • EU-Laughing Skull
  • Raserei / Frenzy
  • Posts: 32
  • Talents: Arms 1/0/2/2/1/1/.
  • LocationUkraine, Donetsk

Posted 26 July 2016 - 06:25 PM

Any ideas how to return dark frames everywhere? (like in lorti ui)
  • 0

#693 zyther

zyther
  • Junkies
  • Humanclass_name
  • US-Barthilas
  • Bloodlust
  • Posts: 89
  • Talents: Blood 1/0/2/2/1/1/0
  • 2v2: 2427
  • 3v3: 2403
  • 5v5: 2000
  • RBG: 1844

Posted 05 August 2016 - 01:48 PM

Any ideas how to return dark frames everywhere? (like in lorti ui)



local CF=CreateFrame("Frame")
CF:RegisterEvent("PLAYER_LOGIN")
CF:SetScript("OnEvent", function(self, event)
  if not (IsAddonloaded("SexyMap")) then
   for i,v in pairs({
    MinimapBorder,
    MiniMapMailBorder,
    QueueStatusMinimapButtonBorder,
    select(1, TimeManagerClockButton:GetRegions()),
			    }) do
				   v:SetVertexColor(.05, .05, .05)
   end
   select(2, TimeManagerClockButton:GetRegions()):SetVertexColor(1,1,1)
   select(7, GarrisonLandingPageMinimapButton:GetRegions()):SetAlpha(0)
   select(8, GarrisonLandingPageMinimapButton:GetRegions()):SetAlpha(0)
   local gb = CreateFrame("Frame", nil, GarrisonLandingPageMinimapButton)
   gb:SetFrameLevel(GarrisonLandingPageMinimapButton:GetFrameLevel() - 1)
   gb:SetPoint("CENTER", 0, 0)
   gb:SetSize(36,36)
   gb.icon = gb:CreateTexture(nil, "ARTWORK")
   if select(1,UnitFactionGroup("player")) == "Alliance" then
    SetPortraitToTexture(gb.icon, select(3,GetSpellInfo(61573)))
   elseif select(1,UnitFactionGroup("player")) == "Horde" then
    SetPortraitToTexture(gb.icon, select(3,GetSpellInfo(61574)))
   end
   gb.icon:SetPoint("CENTER", 0, 0)
   gb.icon:SetSize(36,36)
  
   gb.border = CreateFrame("Frame", nil, gb)
   gb.border:SetFrameLevel(gb:GetFrameLevel() + 1)
   gb.border:SetAllPoints()
   gb.border.texture = gb.border:CreateTexture(nil, "ARTWORK")
   gb.border.texture:SetTexture("Interface\\PlayerFrame\\UI-PlayerFrame-Deathknight-Ring")
   gb.border.texture:SetVertexColor(.05,.05,.05)
   gb.border.texture:SetPoint("CENTER", 1, -2)
   gb.border.texture:SetSize(45,45)
  
	  MinimapBorderTop:Hide()
   MinimapZoomIn:Hide()
   MinimapZoomOut:Hide()
   MiniMapWorldMapButton:Hide()
   GameTimeFrame:Hide()
   GameTimeFrame:UnregisterAllEvents()
   GameTimeFrame.Show = kill
   MiniMapTracking:Hide()
   MiniMapTracking.Show = kill
   MiniMapTracking:UnregisterAllEvents()
   Minimap:EnableMouseWheel(true)
   Minimap:SetScript("onmousewheel", function(self, z)
    local c = Minimap:GetZoom()
    if(z > 0 and c < 5) then
	 Minimap:SetZoom(c + 1)
    elseif(z < 0 and c > 0) then
	 Minimap:SetZoom(c - 1)
    end
   end)
   Minimap:SetScript("onmouseup", function(self, btn)
    if btn == "RightButton" then
	 _G.GameTimeFrame:Click()
    elseif btn == "MiddleButton" then
	 _G.ToggleDropDownMenu(1, nil, _G.MiniMapTrackingDropDown, self)
    else
	 _G.Minimap_onclick(self)
    end
   end)
  end
end)
  -- COLORING FRAMES
local CF=CreateFrame("Frame")
CF:RegisterEvent("PLAYER_ENTERING_WORLD")
CF:SetScript("OnEvent", function(self, event)
  if not (IsAddonloaded("Shadowed Unit Frames") or IsAddonloaded("PitBull Unit Frames 4.0") or IsAddonloaded("X-Perl UnitFrames")) then
				 for i,v in pairs({
    PlayerFrameTexture,
    PlayerFrameAlternateManaBarBorder,
    PlayerFrameAlternateManaBarLeftBorder,
    PlayerFrameAlternateManaBarRightBorder,
    AlternatePowerBarBorder,
    AlternatePowerBarLeftBorder,
    AlternatePowerBarRightBorder,
	   TargetFrameTextureFrameTexture,
	  PetFrameTexture,
    PartyMemberFrame1Texture,
    PartyMemberFrame2Texture,
    PartyMemberFrame3Texture,
    PartyMemberFrame4Texture,
    PartyMemberFrame1PetFrameTexture,
    PartyMemberFrame2PetFrameTexture,
    PartyMemberFrame3PetFrameTexture,
    PartyMemberFrame4PetFrameTexture,
	   FocusFrameTextureFrameTexture,
	   TargetFrameToTTextureFrameTexture,
	   FocusFrameToTTextureFrameTexture,
    Boss1TargetFrameTextureFrameTexture,
    Boss2TargetFrameTextureFrameTexture,
    Boss3TargetFrameTextureFrameTexture,
    Boss4TargetFrameTextureFrameTexture,
    Boss5TargetFrameTextureFrameTexture,
    Boss1TargetFrameSpellBar.Border,
    Boss2TargetFrameSpellBar.Border,
    Boss3TargetFrameSpellBar.Border,
    Boss4TargetFrameSpellBar.Border,
    Boss5TargetFrameSpellBar.Border,
    CastingBarFrame.Border,
    FocusFrameSpellBar.Border,
    TargetFrameSpellBar.Border,
   }) do
				   v:SetVertexColor(.05, .05, .05)
   end
   for i,v in pairs({
    PlayerPVPIcon,
    TargetFrameTextureFramePVPIcon,
    FocusFrameTextureFramePVPIcon,
   }) do
    v:SetAlpha(0)
   end
   for i=1,4 do
    _G["PartyMemberFrame"..i.."PVPIcon"]:SetAlpha(0)
    _G["PartyMemberFrame"..i.."NotPresentIcon"]:Hide()
    _G["PartyMemberFrame"..i.."NotPresentIcon"].Show = function() end
   end
   PlayerFrameGroupIndicator:SetAlpha(0)
   PlayerHitIndicator:SetText(nil)
   PlayerHitIndicator.SetText = function() end
   PetHitIndicator:SetText(nil)
   PetHitIndicator.SetText = function() end
   for i = 1, 5 do
	 local shard = _G["WarlockPowerFrameShard"..i]
	 for _, region in pairs({shard:GetRegions()}) do
	  if region:GetDrawLayer() == "BORDER" then
	   region:SetVertexColor(.05, .05, .05)
	  end
	 end
   end
  else
   CastingBarFrameBorder:SetVertexColor(.05,.05,.05)   
  end
  self:UnregisterEvent("PLAYER_ENTERING_WORLD")
		 CF:SetScript("OnEvent", nil)
end)
  
-- COLORING THE MAIN BAR
for i,v in pairs({
  SlidingActionBarTexture0,
 
  SlidingActionBarTexture1,
 
		 MainMenuBarTexture0,
  MainMenuBarTexture1,
  MainMenuBarTexture2,
  MainMenuBarTexture3,
		 MainMenuMaxLevelBar0,
		 MainMenuMaxLevelBar1,
  MainMenuMaxLevelBar2,
  MainMenuMaxLevelBar3,
  MainMenuXPBarTextureLeftCap,
  MainMenuXPBarTextureRightCap,
  MainMenuXPBarTextureMid,
  ReputationWatchBarTexture0,
  ReputationWatchBarTexture1,
  ReputationWatchBarTexture2,
  ReputationWatchBarTexture3,
  ReputationXPBarTexture0,
  ReputationXPBarTexture1,
  ReputationXPBarTexture2,
  ReputationXPBarTexture3,
}) do
				 v:SetVertexColor(.05, .05, .05)
 
end 
for i=1,19 do _G["MainMenuXPBarDiv"..i]:SetTexture(Empty_Art) end
ExhaustionTick:SetAlpha(0)
	    for i,v in pairs({
  MainMenuBarLeftEndCap,
			    MainMenuBarRightEndCap,
  StanceBarLeft,
 
  StanceBarMiddle,
 
  StanceBarRight,
}) do
			    v:SetVertexColor(.05, .05, .05)
end
-- COLORING ARENA FRAMES
local CF = CreateFrame("Frame")
local _, instanceType = IsInInstance()
CF:RegisterEvent("ADDON_LOADED")
CF:RegisterEvent("PLAYER_ENTERING_WORLD")
CF:RegisterEvent("ARENA_PREP_OPPONENT_SPECIALIZATIONS")
	    CF:SetScript("OnEvent", function(self, event, addon)
			  if addon == "Blizzard_ArenaUI" and not (IsAddonloaded("Shadowed Unit Frames")) then
   for i,v in pairs({
	 ArenaEnemyFrame1Texture,
    ArenaEnemyFrame2Texture,
    ArenaEnemyFrame3Texture,
    ArenaEnemyFrame4Texture,
    ArenaEnemyFrame5Texture,
    ArenaEnemyFrame1SpecBorder,
    ArenaEnemyFrame2SpecBorder,
    ArenaEnemyFrame3SpecBorder,
    ArenaEnemyFrame4SpecBorder,
    ArenaEnemyFrame5SpecBorder,
    ArenaEnemyFrame1PetFrameTexture,
    ArenaEnemyFrame2PetFrameTexture,
    ArenaEnemyFrame3PetFrameTexture,
    ArenaEnemyFrame4PetFrameTexture,
    ArenaEnemyFrame5PetFrameTexture,
			    }) do
				  v:SetVertexColor(.05, .05, .05)
		 end
  elseif event == "ARENA_PREP_OPPONENT_SPECIALIZATIONS" or (event == "PLAYER_ENTERING_WORLD" and instanceType == "arena") then
   for i,v in pairs({
    ArenaPrepFrame1Texture,
    ArenaPrepFrame2Texture,
    ArenaPrepFrame3Texture,
    ArenaPrepFrame4Texture,
    ArenaPrepFrame5Texture,
    ArenaPrepFrame1SpecBorder,
    ArenaPrepFrame2SpecBorder,
    ArenaPrepFrame3SpecBorder,
    ArenaPrepFrame4SpecBorder,
    ArenaPrepFrame5SpecBorder,
   }) do
				  v:SetVertexColor(.05, .05, .05)
		 end  
  end
end)
if IsAddonloaded("Blizzard_ArenaUI") then
  for i,v in pairs({
    ArenaEnemyFrame1Texture,
   ArenaEnemyFrame2Texture,
   ArenaEnemyFrame3Texture,
   ArenaEnemyFrame4Texture,
   ArenaEnemyFrame5Texture,
   ArenaEnemyFrame1SpecBorder,
   ArenaEnemyFrame2SpecBorder,
   ArenaEnemyFrame3SpecBorder,
   ArenaEnemyFrame4SpecBorder,
   ArenaEnemyFrame5SpecBorder,
   ArenaEnemyFrame1PetFrameTexture,
   ArenaEnemyFrame2PetFrameTexture,
   ArenaEnemyFrame3PetFrameTexture,
   ArenaEnemyFrame4PetFrameTexture,
   ArenaEnemyFrame5PetFrameTexture,
			   }) do
				 v:SetVertexColor(.05, .05, .05)
	    end
end

  • 1

#694 Lostariel

Lostariel
  • Junkies
  • Humanclass_name
  • EU-Twilight's Hammer
  • Blackout
  • Posts: 126
  • Talents: Assassination 0/2/2/2/0/1/1
  • 2v2: 1624
  • 3v3: 1452
  • 5v5: 1808

Posted 11 August 2016 - 08:58 AM

Hello, ive been having this issue since pre-patch hit, before then i didnt have any issues

Anyway, the issue is that my TargetOfTarget frame wont appear, and im getting taint from my "addon" - so its probably because of that.

Heres the Taint.log errors it spits out.
8/9 12:29:22.900 Execution tainted by YourAddon while reading TargetFrameDebuff2Border - Interface\FrameXML\TargetFrame.lua:824 updateFunc()
8/9 12:29:22.900 Interface\AddOns\YourAddon\YourAddon.lua:49
8/9 12:29:22.900 TargetFrame_UpdateAuraPositions()
8/9 12:29:22.900 Interface\FrameXML\TargetFrame.lua:642 TargetFrame_UpdateAuras()
8/9 12:29:22.900 Interface\FrameXML\TargetFrame.lua:206 OnEvent()
8/9 12:29:22.900 Interface\FrameXML\UnitFrame.lua:917
8/9 12:29:22.900 Interface\FrameXML\TargetFrame.lua:966 TargetofTarget_Update()
8/9 12:29:22.900 An action was blocked in combat because of taint from YourAddon - TargetFrameToT:Show()
8/9 12:29:22.900 Interface\FrameXML\TargetFrame.lua:978 TargetofTarget_Update()
8/9 12:29:22.900 Interface\FrameXML\TargetFrame.lua:466 TargetFrame_OnUpdate()
8/9 12:29:22.900 TargetFrame:OnUpdate()


And heres the entirety of my "YourAddon" addon

-- Move Player BuffFrame
BuffFrame:ClearAllPoints()
BuffFrame:SetPoint("TOPRIGHT",PlayerFrame,"BOTTOMRIGHT", 0, 0)
BuffFrame.SetPoint = function() end

-- Move ComboPoint Bar
ComboPointPlayerFrame:ClearAllPoints()
ComboPointPlayerFrame:SetPoint("TOPRIGHT",TargetFrame,"TOPRIGHT", -115, 12)
ComboPointPlayerFrame.SetPoint = function() end

-- Move Player DebuffFrame

hooksecurefunc("DebuffButton_UpdateAnchors", function() DebuffButton1:ClearAllPoints() DebuffButton1:SetPoint("TOPRIGHT", PlayerFrame, "BOTTOMRIGHT", 0, -101) end)

-- Smaller RaidFrame

-- CompactRaidFrameManager:SetScale(0.9)
-- CompactRaidFrameContainer:SetScale(0.9)

-- Big Debuffs
  hooksecurefunc("TargetFrame_UpdateAuraPositions", function(self, auraName, numAuras, numOppositeAuras,largeAuraList, updateFunc, maxRowWidth, offsetX)
	    local AURA_OFFSET_Y = 3
	    local LARGE_AURA_SIZE = 29 -- Self Debuffs
	    local SMALL_AURA_SIZE = 20 -- others debuffs
	    local size
	    local offsetY = AURA_OFFSET_Y
	    local rowWidth = 0
	    local firstBuffOnRow = 1
	    for i=1, numAuras do
		 if ( largeAuraList[i] ) then
		   size = LARGE_AURA_SIZE
		   offsetY = AURA_OFFSET_Y + AURA_OFFSET_Y
		 else
		   size = SMALL_AURA_SIZE
		 end
		 if ( i == 1 ) then
		   rowWidth = size
		   self.auraRows = self.auraRows + 1
		 else
		   rowWidth = rowWidth + size + offsetX
		 end
		 if ( rowWidth > maxRowWidth ) then
		   updateFunc(self, auraName, i, numOppositeAuras, firstBuffOnRow, size, offsetX, offsetY)
		   rowWidth = size
		   self.auraRows = self.auraRows + 1
		   firstBuffOnRow = i
		   offsetY = AURA_OFFSET_Y
		 else
		   updateFunc(self, auraName, i, numOppositeAuras, i - 1, size, offsetX, offsetY)
		 end
	    end
	    end)
	    
	    
	    
--  Darken all the graphics Ibo/Lorti UI style

local frame=CreateFrame("Frame")
frame:RegisterEvent("ADDON_LOADED")

frame:SetScript("OnEvent", function(self, event, addon)
	    if (addon == "Blizzard_TimeManager") then
			    for i, v in pairs({PlayerFrameTexture, TargetFrameTextureFrameTexture, PetFrameTexture, PartyMemberFrame1Texture, PartyMemberFrame2Texture, PartyMemberFrame3Texture, PartyMemberFrame4Texture,
					    PartyMemberFrame1PetFrameTexture, PartyMemberFrame2PetFrameTexture, PartyMemberFrame3PetFrameTexture, PartyMemberFrame4PetFrameTexture, FocusFrameTextureFrameTexture,
					    TargetFrameToTTextureFrameTexture, FocusFrameToTTextureFrameTexture, BonusActionBarFrameTexture0, BonusActionBarFrameTexture1, BonusActionBarFrameTexture2, BonusActionBarFrameTexture3,
					    BonusActionBarFrameTexture4, MainMenuBarTexture0, MainMenuBarTexture1, MainMenuBarTexture2, MainMenuBarTexture3, MainMenuMaxLevelBar0, MainMenuMaxLevelBar1, MainMenuMaxLevelBar2,
					    MainMenuMaxLevelBar3, MinimapBorder, CastingBarFrameBorder, FocusFrameSpellBarBorder, TargetFrameSpellBarBorder, MiniMapTrackingButtonBorder, MiniMapLFGFrameBorder, MiniMapBattlefieldBorder,
					    MiniMapMailBorder, MinimapBorderTop,
					    select(1, TimeManagerClockButton:GetRegions())
			    }) do
					    v:SetVertexColor(.4, .4, .4)
			    end

			    for i,v in pairs({ select(2, TimeManagerClockButton:GetRegions()) }) do
					    v:SetVertexColor(1, 1, 1)
			    end

			    self:UnregisterEvent("ADDON_LOADED")
			    frame:SetScript("OnEvent", nil)
	    end
end)

for i, v in pairs({ MainMenuBarLeftEndCap, MainMenuBarRightEndCap }) do
	    v:SetVertexColor(.35, .35, .35)
end


--  Move Player Frame, Target Frame TargetOfTarget Frame and Focus Frame
 


-- Minmap tweak, Hides zoom in/out buttons, enables mousewheel zoom, and moves the tracking button to top right near the calendar button

MinimapZoomIn:Hide()
MinimapZoomOut:Hide()
Minimap:EnableMouseWheel(true)
Minimap:SetScript('onmousewheel', function(self, delta)
	    if delta > 0 then
			    Minimap_ZoomIn()
	    else
			    Minimap_ZoomOut()
	    end
end)
MiniMapTracking:ClearAllPoints()
MiniMapTracking:SetPoint("TOPRIGHT", -26, 7)


-- Move Nameplates Debuffs on target down a little

function NamePlateBaseMixin:ApplyOffsets()
    if self.driverFrame:IsUsingLargerNamePlateStyle() then
    --Original Blizzard
	    --self.UnitFrame.BuffFrame:SetBaseYOffset(20);
    --New Value
	    self.UnitFrame.BuffFrame:SetBaseYOffset(-10);
    else
    --Unmodified
	    self.UnitFrame.BuffFrame:SetBaseYOffset(0);
    end

    local targetMode = GetCVarBool("nameplateResourceOnTarget");
    if targetMode then
	    self.UnitFrame.BuffFrame:SetTargetYOffset(18);
    else
	    self.UnitFrame.BuffFrame:SetTargetYOffset(0);
    end
end

Ive no clue how to fix this, really, nor how to add something else i wanted, which was making my debuffs on enemy nameplates larger, cause theyre freaking tiny as default - But just fixing this so i dont get taint would be much, much appreciated.
  • 0

#695 Aelwi

Aelwi
  • Members
  • Night Elfclass_name
  • EU-Eredar
  • Blutdurst
  • Posts: 3
  • Talents: Beast Mastery 2/0/1/1/1/0

Posted 11 August 2016 - 06:38 PM

This line causes your taint:

BuffFrame.SetPoint = function() end


You're better off using secure hooks:

hooksecurefunc('BuffFrame_UpdateAllBuffAnchors',function()
   BuffFrame:ClearAllPoints()
   BuffFrame:SetPoint("TOPRIGHT",PlayerFrame,"BOTTOMRIGHT", 0, 0)
end)

  • 1

#696 Lostariel

Lostariel
  • Junkies
  • Humanclass_name
  • EU-Twilight's Hammer
  • Blackout
  • Posts: 126
  • Talents: Assassination 0/2/2/2/0/1/1
  • 2v2: 1624
  • 3v3: 1452
  • 5v5: 1808

Posted 12 August 2016 - 10:58 AM

This line causes your taint:



You're better off using secure hooks:

hooksecurefunc('BuffFrame_UpdateAllBuffAnchors',function()
BuffFrame:ClearAllPoints()
BuffFrame:SetPoint("TOPRIGHT",PlayerFrame,"BOTTOMRIGHT", 0, 0)
end)


Gonna give that whirl, thanks man =)

Seems it worked!

Thanks a ton bro, was driving me mad.

Edited by Lostariel, 12 August 2016 - 11:59 AM.

  • 0

#697 Cutiexirl

Cutiexirl
  • Junkies
  • Blood Elfclass_name
  • EU-Sylvanas
  • Rampage / Saccage
  • Posts: 5
  • Talents: Subtlety 0/1/2/0/1/0/0
  • 2v2: 192
  • 3v3: 2606
  • RBG: 768

Posted 16 September 2016 - 02:00 PM

Can anyone explain to me how to display one particular buff, and one particular debuff, enlargened, and in like a custom x / y position

I need this because the addons I used to use is giving me delay on my abilities in Legion for whatever reason... So I have to come up with some kind of solution, and after looking at these forums for hours, I still haven't found one :/

Any help is much appreciated!

I have made a picture of how I want it to look like, but cant post the url to it apparently, not until I have made 10 posts :S
  • 0

#698 Zerorezero

Zerorezero
  • Members
  • Orcclass_name
  • EU-Blackrock
  • Glutsturm / Emberstorm
  • Posts: 3
  • Talents: Arms 1/2/1/2/1/0/1
  • 2v2: 1523

Posted 24 September 2016 - 07:26 PM

local frame = CreateFrame("FRAME")
frame:RegisterEvent("UNIT_AURA")

frame:SetScript("OnEvent", function(self, event, ...)
local unitid = ... if unitid ~= "player" then return end

if UnitBuff("player", "Überwältigen!") then
SpellActivationOverlay_ShowOverlay(SpellActivationOverlayFrame, 60503, "TEXTURES\\SPELLACTIVATIONOVERLAYS\\sudden_death.blp", "TOP", 1.2, 139, 65, 239, false, false)
else
SpellActivationOverlay_HideOverlays(SpellActivationOverlayFrame, 60503)
end
end)

hey guys i tried to make an Aura for overpower like step by step on thayas guide but seems not to work on my side... can someone help pls ?

 i Play on a german Server Overpower = Überwältigen, Overpower! <---is the buff called Überwältigen!


  • 0

#699 Zerorezero

Zerorezero
  • Members
  • Orcclass_name
  • EU-Blackrock
  • Glutsturm / Emberstorm
  • Posts: 3
  • Talents: Arms 1/2/1/2/1/0/1
  • 2v2: 1523

Posted 24 September 2016 - 07:32 PM

local Script = CreateFrame("Frame")

-- xInvert()
-- Inverts the anchor points of a frame horizontally.
-- > Frame: Frame reference
local InvertPoint = {
["TOPLEFT"] = "TOPRIGHT",
["TOPRIGHT"] = "TOPLEFT",
["BOTTOMLEFT"] = "BOTTOMRIGHT",
["BOTTOMRIGHT"] = "BOTTOMLEFT",
["TOP"] = "TOP",
["BOTTOM"] = "BOTTOM",
["LEFT"] = "RIGHT",
["RIGHT"] = "LEFT",
["CENTER"] = "CENTER"
}
local function xInvert(Frame)
local AnchorData = {}
for i = 1, Frame:GetNumPoints() do AnchorData[i] = { Frame:GetPoint(i) } end
Frame:ClearAllPoints()
for _, A in pairs(AnchorData) do Frame:SetPoint(InvertPoint[A[1]], A[2], InvertPoint[A[3]], A[4] * -1, A[5]) end
end

-- TargetCastRepos()
-- Corrects the X-offset of the TargetFrame castbar, to adapt it to the inverted target.
local function TargetCastRepos()
local TargetRight = TargetFrameManaBar:GetRight() * TargetFrameManaBar:GetEffectiveScale() / TargetFrameSpellBar:GetEffectiveScale()
local CastRight = TargetFrameSpellBar:GetRight()
local P = { TargetFrameSpellBar:GetPoint() }
TargetFrameSpellBar:SetPoint(P[1], P[2], P[3], P[4] + TargetRight - CastRight + 2, P[5])
Script:SetScript("OnUpdate", nil)
end

-- Inverting TargetFrame textures and frames
TargetFrame.borderTexture:SetTexCoord(1.0, 0.09375, 0, 0.78125)
TargetFrameFlash:SetTexCoord(0.9453125, 0, 0, 0.181640625)
TargetFrameFlash.SetTexCoord = function() end
TargetFrame.pvpIcon:SetPoint("TOPRIGHT", -149, -20)
TargetFrame.levelText:SetPoint("CENTER", -62.5, -17)
for _, v in pairs({TargetFrameFlash, TargetFrameTextureFrameHealthBarText, TargetFrameTextureFrameManaBarText}) do xInvert(v) end
for _, v in pairs({"name", "deadText", "threatNumericIndicator", "portrait", "Background", "healthbar", "manabar", "nameBackground", "questIcon", "petBattleIcon", "leaderIcon", "raidTargetIcon"}) do xInvert(TargetFrame[v]) end
TargetFrameFlash.SetPoint = function() end
TargetFrame.levelText.SetPoint = function() end
TargetFrame.Background.SetPoint = function() end

-- Inverting Target-target
TargetFrameToTTextureFrameTexture:SetTexCoord(0.7265625, 0.015625, 0, 0.703125)
TargetFrameToT:ClearAllPoints()
TargetFrameToT:SetPoint("BOTTOMRIGHT", TargetFrame, "BOTTOMRIGHT", -135, -18)
TargetFrameToT.name:SetPoint("BOTTOMLEFT", 1, 2)
for _, v in pairs({"portrait", "healthbar", "manabar", "deadText", "background"}) do xInvert(TargetFrameToT[v]) end
for i = 1, 4 do xInvert(_G["TargetFrameToTDebuff"..i]) end -- Mini debuffs

-- Correcting castbar position in the next frame (when the anchor changes will be updated)
hooksecurefunc(TargetFrameSpellBar, "SetPoint", function() Script:SetScript("OnUpdate", TargetCastRepos) end)

-- Adjusting buff/debuff positions
hooksecurefunc("TargetFrame_UpdateAuras", function(s)
if s ~= TargetFrame then return end
for _, Aura in pairs({ TargetFrameBuff1, TargetFrameDebuff1 }) do
if Aura then
local P = { Aura:GetPoint() } -- Anchor point data
if P[2] == TargetFrame then Aura:SetPoint(P[1], P[2], P[3], 105, P[5]) end
end
end
end)

TargetFrameFlash:Hide(); TargetFrameFlash.Show = function() end
FocusFrameFlash:Hide(); FocusFrameFlash.Show = function() end

and i Invert the target one makes by Spyro but i have a Problem since the Prestige Icon.... ist not replaces the place with the pvptargeticon

it Shows on the Center of the Hpbar how i can move ( fix it pls help guys :<


  • 0

#700 releasethekraken

releasethekraken
  • Junkies
  • Dwarfclass_name
  • EU-Kor'gall
  • Cruelty / Crueldad
  • Posts: 21
  • Talents: Restoration 0/0/0/0/1/2/0
  • 2v2: 1298
  • 3v3: 2425
  • RBG: 1743

Posted 10 October 2016 - 12:16 AM

Is there a script that puts me to the middle spot in arenas? 


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

<