Jump to content

Default UI Scripts


  • Please log in to reply
655 replies to this topic

#641 Ysteria

Ysteria
  • Junkies
  • Unknown Raceclass_name
  • EU-Dun Modr
  • Cruelty / Crueldad
  • Posts: 66
  • Talents: Windwalker 1/0/1/2/2/0/.
  • 2v2: 2116
  • 3v3: 2093
  • 5v5: 2031
  • RBG: 1915
  • LocationSpain

Posted 04 July 2015 - 01:48 PM

View Postneoooooo, on 04 July 2015 - 04:01 AM, said:

I'm king of the retards, I can't believe I overlooked that.Thank you very much!

:heart:

#642 illum1n4ti

illum1n4ti
  • Members
  • Posts: 6

Posted 04 July 2015 - 03:09 PM

Thanks every1 here for nice tips and guide to create my UI

Thanks again

Castbar/target castbar and mirrorbar (no need for QUARTZ) hehe
PlayerFrame
TargetFrame

see my screenshot

i.imgur.com/6Q24nc8.jpg

#643 Sasx

Sasx
  • Members
  • Goblinclass_name
  • US-Illidan
  • Rampage
  • Posts: 3
  • Talents: Unholy 2/2/0/2/0/0/0

Posted 04 July 2015 - 06:48 PM

You mind posting your UI for download somewhere? I love reading through how others code. Your cast bars are fantastic. Example of my stuff just to show what I mean. wowinterface.com/downloads/author-108615.html

View Postillum1n4ti, on 04 July 2015 - 03:09 PM, said:

Thanks every1 here for nice tips and guide to create my UI

Thanks again

Castbar/target castbar and mirrorbar (no need for QUARTZ) hehe
PlayerFrame
TargetFrame

see my screenshot

i.imgur.com/6Q24nc8.jpg


#644 illum1n4ti

illum1n4ti
  • Members
  • Posts: 6

Posted 04 July 2015 - 07:01 PM

Hello Sadas

Sure np .. i can't promise when but i will let you know when its uploaded :)

Right now i am creating nice config (in LUA) so people could change size or set point or texture and more .. Why in lua? cause i want to keep all add-ons low memory usage.


View PostSasx, on 04 July 2015 - 06:48 PM, said:

You mind posting your UI for download somewhere? I love reading through how others code. Your cast bars are fantastic. Example of my stuff just to show what I mean. wowinterface.com/downloads/author-108615.html


#645 CroOklyn

CroOklyn
  • Members
  • Posts: 16

Posted 06 July 2015 - 11:20 AM

View PostSasx, on 03 July 2015 - 03:27 AM, said:

Try out
local function CompactUnitFrame_UtilShouldDisplayBuff(un, ind, fi)
local _, _, _, _, _, d, _, ut, _, sc, s, c = UnitBuff(un, ind, fi);
return (ut == "player" or ut == "pet") and (not sc or d>0) and c and (not SpellIsSelfBuff(s) or s==52127);
end
For easy addon making just paste that into addon.bool.no/

Have not tested this myself.

didnt worked :(

#646 Ysteria

Ysteria
  • Junkies
  • Unknown Raceclass_name
  • EU-Dun Modr
  • Cruelty / Crueldad
  • Posts: 66
  • Talents: Windwalker 1/0/1/2/2/0/.
  • 2v2: 2116
  • 3v3: 2093
  • 5v5: 2031
  • RBG: 1915
  • LocationSpain

Posted 07 July 2015 - 08:57 AM

View PostSasx, on 04 July 2015 - 01:23 AM, said:

Might want to start by commenting out the /run you have in your script. Just a simple
--[[
/run LoadAddOn("Blizzard_CompactRaidFrames") CRFSort_Group=function(t1, t2) if UnitIsUnit(t1,"player") then return true elseif UnitIsUnit(t2,"player") then return false else return t1 < t2 end end CompactRaidFrameContainer.flowSortFunc=CRFSort_Group
--]]
See if that clears anything up.


Fixed.   :wub:

#647 CroOklyn

CroOklyn
  • Members
  • Posts: 16

Posted 07 July 2015 - 02:57 PM

doesnt work for me =(

#648 illum1n4ti

illum1n4ti
  • Members
  • Posts: 6

Posted 08 July 2015 - 07:53 PM

View Postevillspawn, on 20 December 2012 - 01:57 PM, said:

I found this ui screenshot, anyone got any idea what script makes hp bars look like that?

i.imgur.com/2B0jt.jpg

How did he made the buff button black? Any1?

#649 m__P

m__P
  • Members
  • Posts: 6

Posted 10 July 2015 - 12:50 PM

The script in the OP "Darken the UI . . ." is working great except than the mediafire link seems to be missing one texture, the one behind the level in the default nameplates, pictured here: i.imgur com/Tv6te6J.jpg

Does anyone have this texture and the will to post it? Thanks y'all

#650 flameskiller

flameskiller
  • Members
  • Humanclass_name
  • EU-Tarren Mill
  • Misery
  • Posts: 19
  • Talents:

Posted 14 July 2015 - 05:49 PM

THANKS YOU SO MUCH! <3 <3

#651 flameskiller

flameskiller
  • Members
  • Humanclass_name
  • EU-Tarren Mill
  • Misery
  • Posts: 19
  • Talents:

Posted 14 July 2015 - 05:49 PM

This topic saved my whole day !!!

#652 CroOklyn

CroOklyn
  • Members
  • Posts: 16

Posted 29 July 2015 - 10:50 PM

View PostCroOklyn, on 01 June 2015 - 12:04 AM, said:

How can i put this in my addon where my scripts are? i dont want to press the button everytime on log in
Can someone do this macro for me as a script?

/run function CompactUnitFrame_UtilShouldDisplayBuff(un, ind, fi) local _, _, _, _, _, d, _, ut, _, sc, s, c = UnitBuff(un, ind, fi); return (ut == "player" or ut == "pet") and (not sc or d>0) and c and (not SpellIsSelfBuff(s) or s==52127);end

trying to push this last time the two ideas what i get didnt worked so far :(

#653 Stako

Stako
  • Premium Junkies
  • Curse Premium
  • Orcclass_name
  • US-Ravenholdt
  • Whirlwind
  • Posts: 62
  • Talents: Beast Mastery 0/0/2/2/0/0/2
  • 2v2: 2408
  • 3v3: 2051
  • RBG: 1838
  • LocationVancouver

Posted 30 July 2015 - 01:47 AM

View PostCroOklyn, on 29 July 2015 - 10:50 PM, said:

trying to push this last time the two ideas what i get didnt worked so far :(

'/run' is an in-game slash command, just like /dance - it doesn't belong in .lua files. Remove that and it will work.
sArena | Enhanced arena frames

#654 CroOklyn

CroOklyn
  • Members
  • Posts: 16

Posted Today, 10:23 AM

Yes, if i put this in my Script Addon without the run my whole scripts aren't working anymore like scalings and hiding stuff what ive used from the first page.

#655 Wilhelmhegel

Wilhelmhegel
  • Members
  • Posts: 15

Posted Today, 11:27 AM

Hey guys.
I got this script to get the spell animation from Snowfallkeypress, however it does not work for the main action bar.
Can anyone help?

--spellanimation
local animationsCount, animations = 5, {}
local animationNum = 1
local frame, texture, alpha1, scale1, scale2, rotation2
for i = 1, animationsCount do
	frame = CreateFrame("Frame")
	texture = frame:CreateTexture() texture:SetTexture('Interface\\Cooldown\\star4') texture:SetAlpha(0) texture:SetAllPoints() texture:SetBlendMode("ADD")
	animationGroup = texture:CreateAnimationGroup()
	alpha1 = animationGroup:CreateAnimation("Alpha") alpha1:SetChange(1) alpha1:SetDuration(0) alpha1:SetOrder(1)
	scale1 = animationGroup:CreateAnimation("Scale") scale1:SetScale(1.5, 1.5) scale1:SetDuration(0) scale1:SetOrder(1)
	scale2 = animationGroup:CreateAnimation("Scale") scale2:SetScale(0, 0) scale2:SetDuration(0.3) scale2:SetOrder(2)
	rotation2 = animationGroup:CreateAnimation("Rotation") rotation2:SetDegrees(90) rotation2:SetDuration(0.3) rotation2:SetOrder(2)
	animations[i] = {frame = frame, animationGroup = animationGroup}
end
local AnimateButton = function(self)
	if not self:IsVisible() then return true end
	local animation = animations[animationNum]
	local frame = animation.frame
	local animationGroup = animation.animationGroup
	frame:SetFrameStrata(self:GetFrameStrata())
	frame:SetFrameLevel(self:GetFrameLevel() + 10)
	frame:SetAllPoints(self)
	animationGroup:Stop()
	animationGroup:Play()
	animationNum = (animationNum % animationsCount) + 1
	return true
end
hooksecurefunc('MultiActionButtonDown', function(bname, id) AnimateButton(_G[bname..'Button'..id]) end)
hooksecurefunc('ActionButtonDown', function(id)
	 local button
	 if C_PetBattles.IsInBattle() then
		  if PetBattleFrame then
			   if id > NUM_BATTLE_PET_HOTKEYS then return end
			   button = PetBattleFrame.BottomFrame.abilityButtons[id]
			   if id == BATTLE_PET_ABILITY_SWITCH then
					button = PetBattleFrame.BottomFrame.SwitchPetButton;
			   elseif id == BATTLE_PET_ABILITY_CATCH then
					button = PetBattleFrame.BottomFrame.CatchButton;
			   end
			   if not button then return end
		  end
		  return
	 end
	 if OverrideActionBar and OverrideActionBar:IsShown() then
		  if id > NUM_OVERRIDE_BUTTONS then return end
		  button = _G["OverrideActionBarButton"..id]
	 else
		  button = _G["ActionButton"..id]
	 end
	 if not button then return end
	 AnimateButton(button)
end)


#656 HTFael

HTFael
  • Members
  • Posts: 27

Posted Today, 04:45 PM

Hey guys, this is the code I'm using for arena frame trinket track, and wotf tracker.

local trinkets = {}
local events = CreateFrame("Frame")
local function hideTrinket(frame)
	if frame:IsShown() and not frame:IsVisible() then
		return
	end
	frame:GetParent():Hide()
end
function events:ADDON_LOADED(addonName)
	if addonName ~= "Blizzard_ArenaUI" then
		return
	end
	local arenaFrame, trinket
	for i = 1, MAX_ARENA_ENEMIES do
		arenaFrame = "ArenaEnemyFrame"..i
		trinket = CreateFrame("Frame", arenaFrame.."Trinket", ArenaEnemyFrames)
		trinket:SetSize(24, 24)
		trinket:SetPoint("TOPRIGHT", arenaFrame, 24, -4)
		trinket.icon = trinket:CreateTexture(nil, "BORDER")
		trinket.icon:SetAllPoints()
		trinket.icon:SetTexture("Interface\\Icons\\inv_jewelry_trinketpvp_01")
		trinket.cooldown = CreateFrame("Cooldown", nil, trinket, "CooldownFrameTemplate")
		trinket.cooldown:SetAllPoints(trinket.icon)
		trinket.cooldown:SetScript("OnHide", hideTrinket)
		trinket.lastUsed = nil
		trinket:Hide()
		trinkets["arena"..i] = trinket
	end
	self:UnregisterEvent("ADDON_LOADED")
end
function events:UNIT_SPELLCAST_SUCCEEDED(unitID, spell, rank, lineID, spellID)
	if not trinkets[unitID] then return end
	if spellID == 59752 or spellID == 42292 then
		trinkets[unitID]:Show()
		CooldownFrame_SetTimer(trinkets[unitID].cooldown, GetTime(), 120, 1, nil, nil, true)
		trinkets[unitID].lastUsed = GetTime()
		SendChatMessage("Trinket used by: "..GetUnitName(unitID, true), "PARTY")
	elseif spellID == 7744 then
		if not trinkets[unitID]:IsShown() or (GetTime() - trinkets[unitID].lastUsed) > 90 then
			trinkets[unitID]:Show()
			CooldownFrame_SetTimer(trinkets[unitID].cooldown, GetTime(), 30, 1, nil, nil, true)
		end
		SendChatMessage("WotF used by: "..GetUnitName(unitID, true), "PARTY")
	end
end
function events:PLAYER_ENTERING_WORLD()
	local _, instanceType = IsInInstance()
	if instanceType == "arena" then
		for _, trinket in pairs(trinkets) do
			trinket:Hide()
		end
		self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
	elseif self:IsEventRegistered("UNIT_SPELLCAST_SUCCEEDED") then
		self:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")
		for _, trinket in pairs(trinkets) do
			trinket:Hide()
		end
	end
end
SLASH_AF1 = "/af"
SlashCmdList["AF"] = function(msg, editBox)
if not IsAddonloaded("Blizzard_ArenaUI") then
  LoadAddOn("Blizzard_ArenaUI")
end
  ArenaEnemyFrames:Show()
  ArenaEnemyFrame1:Show()
  ArenaEnemyFrame2:Show()
  ArenaEnemyFrame3:Show()
  --ArenaEnemyFrame4:Show()
  --ArenaEnemyFrame5:Show()
  ArenaEnemyFrame1CastingBar:Show()
  ArenaEnemyFrame2CastingBar:Show()
  ArenaEnemyFrame3CastingBar:Show()
  --ArenaEnemyFrame4CastingBar:Show()
  --ArenaEnemyFrame5CastingBar:Show()
		for i = 1, 3 do
			trinkets["arena"..i]:Show()
			CooldownFrame_SetTimer(trinkets["arena"..i].cooldown, GetTime(), 120, 1, nil, nil, true)
  end
end
events:SetScript("OnEvent", function(self, event, ...) return self[event](self, ...) end)
events:RegisterEvent("ADDON_LOADED")
events:RegisterEvent("PLAYER_ENTERING_WORLD")






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

<