Jump to content

Default UI Scripts


  • Please log in to reply
624 replies to this topic

#621

  • Junkies
  • Humanclass_name
  • US-Sargeras
  • Shadowburn
  • Talents: Fury 0/0/1/1/0/2/0
  • 2v2: 1913
  • 3v3: 1987
  • RBG: 1641

Posted 21 April 2015 - 05:10 AM

Read OP under '1. How to use scripts'.Basically, what you want to do is make an addon (a very basic one) then when you find scripts such as the ones you've posted, you just paste them in there.

Edited by neoooooo, 21 April 2015 - 05:11 AM.

Posted Image

#622 Phobos

Phobos
  • Members
  • Posts: 2

Posted 21 April 2015 - 01:57 PM

Yeah i know the procedure but thanks for the quick answer Neoo :)

All my other scripts work really well but the FocusFrameToT seems to be bound to the FocusFrame or something :(

I´ve tried the script of thaya on the 1 page of the thread but i´t doesn´t work too. It only let me move the FocusFrameToT but not Rescale it.

FocusFrameToT:SetAlpha(1)
FocusFrameToT:ClearAllPoints()
FocusFrameToT:SetPoint("CENTER", -150, 250)
FocusFrameToT.SetPoint = function() end
FocusFrameToT:SetScale(1.3)

Have I overlooked something or isn´t it possible to rescale the FocusFrameToT?

#623 illum1n4ti

illum1n4ti
  • Members
  • Posts: 3

Posted 14 May 2015 - 09:30 AM

Hello

How could i remove or hide TargetFrameSpellBar shield and texture?
i can not post link but here is my screenshot      

imgur.com/S6supdW


-----------------------------------
-- Player Castbar
-----------------------------------
UIPARENT_MANAGED_FRAME_POSITIONS["CastingBarFrame"] = nil
CastingBarFrame:ClearAllPoints()
CastingBarFrame:SetPoint("CENTER", UIParent, "CENTER", 0, -350)
CastingBarFrame:SetHeight(24)
CastingBarFrame:SetWidth(400)
CastingBarFrame:CreateBeautyBorder(11)
CastingBarFrame:SetBeautyBorderPadding(1)
CastingBarFrameBorder:ClearAllPoints()
CastingBarFrameBorder:SetPoint("TOP", 0, 25)
CastingBarFrameBorderShield:ClearAllPoints()
CastingBarFrameBorderShield:SetPoint("TOP", 0, 25)
CastingBarFrameText:ClearAllPoints()
CastingBarFrameText:SetPoint("CENTER", 0, 0)
CastingBarFrameBorder:SetTexture(nil)
CastingBarFrameFlash:SetTexture(nil)
CastingBarFrameSpark:SetTexture(nil)
CastingBarFrameText:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE")
CastingBarFrame.timer = CastingBarFrame:CreateFontString(nil);
CastingBarFrame.timer:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE");
CastingBarFrame.timer:SetPoint("CENTER", CastingBarFrame, "RIGHT", -20, 0);
CastingBarFrame.update = .1;

-----------------------------------
-- Target Castbar
-----------------------------------
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint("CENTER", CastingBarFrame, "TOP", 0, 25)
TargetFrameSpellBar.SetPoint = function() end
TargetFrameSpellBar:SetHeight(22)
TargetFrameSpellBar:SetWidth(365)
TargetFrameSpellBar:CreateBeautyBorder(11)
TargetFrameSpellBar:SetBeautyBorderPadding(1)
TargetFrameSpellBarText:ClearAllPoints()
TargetFrameSpellBarText:SetPoint("CENTER", 0, 0)
argetFrameSpellBarTFlash:SetTexture(nil)
TargetFrameSpellBarSpark:SetTexture(nil)
TargetFrameSpellBarText:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE")
TargetFrameSpellBarIcon:Hide()
TargetFrameSpellBarBorder:Hide()
TargetFrameSpellBarFlash.Show = dummy
TargetFrameSpellBar.borderShield:Hide()
TargetFrameSpellBar.timer = TargetFrameSpellBar:CreateFontString(nil);
TargetFrameSpellBar.timer:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE");
TargetFrameSpellBar.timer:SetPoint("CENTER", TargetFrameSpellBar, "RIGHT", -20, 0);
TargetFrameSpellBar.update = .1;

hooksecurefunc("CastingBarFrame_OnUpdate", function(self, elapsed)
		 if not self.timer then return end
		 if self.update and self.update < elapsed then
				 if self.casting then
						 self.timer:SetText(format("%2.1f/%1.1f", max(self.maxValue - self.value, 0), self.maxValue))
				 elseif self.channeling then
						 self.timer:SetText(format("%.1f", max(self.value, 0)))
				 else
						 self.timer:SetText("")
				 end
				 self.update = .1
		 else
				 self.update = self.update - elapsed
		 end
end)


my screenshot imgur.com/S6supdW

#624 illum1n4ti

illum1n4ti
  • Members
  • Posts: 3

Posted 14 May 2015 - 03:05 PM

No Neeeed .. i found it

TargetFrameSpellBarBorderShield.Show = TargetFrameSpellBarBorderShield.Hide

For people who want to customise Castbar

i.imgur.com/DEX3COg.jpg

-- Player castbar
CastingBarFrame:ClearAllPoints()
CastingBarFrame:SetPoint("CENTER",UIParent,"CENTER", 0, -350)
CastingBarFrame.SetPoint = function() end
CastingBarFrame:SetHeight(24)
CastingBarFrame:SetWidth(400)
CastingBarFrame:SetStatusBarColor(1,0.7,0)
CastingBarFrame.SetStatusBarColor = function() end
CastingBarFrame:SetStatusBarTexture("Interface\\AddOns\\FXP\\media\\bar\\texture")
CastingBarFrame.SetStatusBarTexture = function() end
CastingBarFrame:CreateBeautyBorder(11, 0.4,0.4,0.4,1)
CastingBarFrame:SetBeautyBorderPadding(2)
CastingBarFrameText:ClearAllPoints()
CastingBarFrameText:SetPoint("CENTER", 0, 0)
CastingBarFrameText:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE")
CastingBarFrameBorder:SetTexture(nil)
CastingBarFrameFlash:SetTexture(nil)

-- Target castbar
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint("CENTER", CastingBarFrame, "TOP", 0, 25)
TargetFrameSpellBar.SetPoint = function() end
TargetFrameSpellBar:SetHeight(20)
TargetFrameSpellBar:SetWidth(350)
TargetFrameSpellBar:SetStatusBarColor(1,0,0)
TargetFrameSpellBar.SetStatusBarColor = function() end
TargetFrameSpellBar:SetStatusBarTexture("Interface\\AddOns\\FXP\\media\\bar\\texture")
TargetFrameSpellBar.SetStatusBarTexture = function() end
TargetFrameSpellBar:CreateBeautyBorder(11, 0.4,0.4,0.4,1)
TargetFrameSpellBar:SetBeautyBorderPadding(2.5)
TargetFrameSpellBarText:ClearAllPoints()
TargetFrameSpellBarText:SetPoint("CENTER", 0, 0)
TargetFrameSpellBarText:SetFont("Fonts\\FRIZQT__.TTF", 10, "OUTLINE")
TargetFrameSpellBarIcon:Hide()
TargetFrameSpellBarBorderShield.Show = TargetFrameSpellBarBorderShield.Hide
TargetFrameSpellBarBorder:SetTexture(nil)
TargetFrameSpellBarFlash:SetTexture(nil)

-- Castbar Timer
CastingBarFrame.timer = CastingBarFrame:CreateFontString(nil)
CastingBarFrame.timer:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE")
CastingBarFrame.timer:SetPoint("CENTER", CastingBarFrame, "RIGHT", -22, 0)
CastingBarFrame.timer:SetTextColor(1,1,1)
CastingBarFrame.update = .1

TargetFrameSpellBar.timer = TargetFrameSpellBar:CreateFontString(nil)
TargetFrameSpellBar.timer:SetFont("Fonts\\FRIZQT__.TTF", 10, "OUTLINE")
TargetFrameSpellBar.timer:SetPoint("CENTER", TargetFrameSpellBar, "RIGHT", -22, 0)
TargetFrameSpellBar.timer:SetTextColor(1,1,1)
TargetFrameSpellBar.update = .1

hooksecurefunc("CastingBarFrame_OnUpdate", function(self, elapsed)
	 if not self.timer then return end
		 if self.update and self.update < elapsed then
			 if self.casting then
			 self.timer:SetText(format("%2.1f/%1.1f", max(self.maxValue - self.value, 0), self.maxValue))
			 elseif self.channeling then
				 self.timer:SetText(format("%.1f", max(self.value, 0)))
			 else
			 self.timer:SetText("")
			 end
		 self.update = .1
		 else
			 self.update = self.update - elapsed
		 end
end)


#625 illum1n4ti

illum1n4ti
  • Members
  • Posts: 3

Posted 18 May 2015 - 05:07 AM

Hello everyone

Is the a way to colour target aura and focus aura border? I am using at the moment lorti ui .. everything is black except the aura border :(




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users

<