Jump to content

  • Curse Sites
Help

Default UI Scripts


  • Please log in to reply
419 replies to this topic

#61 yeahno

yeahno
  • Members
  • Undeadclass_name
  • EU-Blackrock
  • Glutsturm / Emberstorm
  • Posts: 72
  • Talents: Subtlety 1/2/0/1/0/0

Posted 21 May 2012 - 04:25 PM

TargetFrameToTTextureFrameName

is the nametextframe

#62 Lendova

Lendova
  • Members
  • Night Elfclass_name
  • EU-Ragnaros
  • Rampage / Saccage
  • Posts: 11
  • Talents: Marksmanship
  • RBG: 1645

Posted 29 May 2012 - 02:03 PM

Can somebody help me, how i can incrise target+focus buffs and debuffs icons (addon version). Thank you!

#63 Outplayeddtf

Outplayeddtf
  • Members
  • Humanclass_name
  • US-Tichondrius
  • Bloodlust
  • Posts: 1
  • Talents: Subtlety 1/0/1/2/2/.
  • RBG: 384

Posted 16 June 2012 - 01:26 AM

okay, so this is woundman's script... I do not take any credit for this, It's supposed to track your DRs above your frame (which it does for cheap shot, but not for gouge/sap.) It looks like this. [img][URL=http://imgur.com/x5qVc][IMG]http://i.imgur.com/x5qVc.png[/IMG][/URL][/img]
and here is the script:
/run USD="UNIT_SPELLCAST_SUCCEEDED";OT="OnEvent";FR="Frame";RF=CreateFrame;RD="Border";UE=UnitName
/run CS=RF(FR) CS.c=RF("Cooldown","CST",CS.t) CS:RegisterEvent(USD)
/run CS.c:SetAllPoints(CS) CS:SetPoint("TOPRIGHT",PlayerFrame,-2,8)CS:SetSize(22,22)CS.t=CS:CreateTexture(nil,RD)CS.t:SetAllPoints()CS.t:SetTexture("Interface\\Icons\\ability_cheapshot")
/run CS:SetScript(OT,function(self,event,...) if UE(select(1,...))==UE("player") and select(5,...)==1833 then CST:SetCooldown(GetTime(), 23)end if UE(select(1,...))==UE("player") and select(5,...)==408 then CST:SetCooldown(GetTime(), 25) end end)
/run SP=RF(FR) SP.c=RF("Cooldown","SAP",SP.t) SP:RegisterEvent(USD)
/run SP.c:SetAllPoints(SP) SP:SetPoint("TOPRIGHT",PlayerFrame,-25,8)SP:SetSize(22,22)SP.t=SP:CreateTexture(nil,RD)SP.t:SetAllPoints()SP.t:SetTexture("Interface\\Icons\\ability_sap")
/run SP:SetScript(OT,function(self,event,...) if UE(select(1,...))==UE("player") and select(5,...)==6770 then SAP:SetCooldown(GetTime(), 27)end if UE(select(1,...))==UE("player") and select(5,...)==1776 then SAP:SetCooldown(GetTime(), 23) end end)


#64 kylol

kylol
  • Members
  • Undeadclass_name
  • US-Burning Blade
  • Vindication
  • Posts: 3
  • Talents: Subtlety
  • RBG: 960

Posted 07 July 2012 - 03:10 PM

Quote

2.3 dark frames

when i drag and drop an item from inventory to character panel/or simply right click on it, the button art/facade changes back to default. just wanted to let everyone know, and possibly hope if there is a fix

ty

#65 Hoodzx

Hoodzx
  • Junkies
  • Humanclass_name
  • EU-Outland
  • Misery
  • Posts: 689
  • Talents: Protection 1/1/2/1/0/2
  • 2v2: 1786
  • 3v3: 2299
  • 5v5: 2229
  • RBG: 2225
  • LocationFRANCE

Posted 10 July 2012 - 10:31 AM

Hi,

Not sure if i'm posting in the right topic but... does somebody know if there's a script/macro who could show enemies like in arena, but in RBG ? (Because BattlegroundTarget does not allow me to show all of their targets, and as a war FC that would be insane :eek: )

Btw really nice thread !

#66 wellplayed

wellplayed
  • Members
  • Posts: 6
  • LocationIsrael

Posted 15 July 2012 - 10:49 AM

so baiscly if i wanna move my party frames without being in a party is just
/run local f=framename; f:SetMovable(true); f:EnableMouse(true); f:SetUserPlaced(true); f:SetScript("OnMouseDown", f.StartMoving); f:SetScript("OnMouseUp", f.StopMovingOrSizing);

and rename framename to party1 or party2 ?

#67 Lamniaa1

Lamniaa1
  • Members
  • Posts: 3

Posted 19 July 2012 - 02:20 PM

Im really new to this i start reading and get confused can someone please post what /run scripts i need to run to get a thing like metaphorsx, trinkets class icons movable like x6 in size and big shows enemys casting spells alot bigger, ty! :)

#68 m0nk

m0nk
  • Members
  • Posts: 304

Posted 20 July 2012 - 07:22 PM

Not sure if this has been mentioned or asked before or I'm just blind, but can anyone give me a script that will simply place my Totem Bar, Soul Shards and Holy Power bar above my playerframe?

Thanks

Posted Image


#69 Teslaqtx

Teslaqtx
  • Members
  • Draeneiclass_name
  • EU-Auchindoun
  • Vindication
  • Posts: 8
  • Talents: Restoration 1/1/1/1/0/0

Posted 22 July 2012 - 03:23 PM

Hey, thanks for the scripts man. I have one request, could you make a script (that i can put in an addon) to hide the totem timers under my playerframe?

Also, i'm using bartender, is there a way to make the blizzard art bar (with the eagles) darker like the script for playerframes?

#70 Teslaqtx

Teslaqtx
  • Members
  • Draeneiclass_name
  • EU-Auchindoun
  • Vindication
  • Posts: 8
  • Talents: Restoration 1/1/1/1/0/0

Posted 22 July 2012 - 06:21 PM

View PostSyncrow, on 22 July 2012 - 04:19 PM, said:

Only for the Duration Timer it's:
for i = 1,4 do _G["TotemFrameTotem"..i.."Duration"]:SetAlpha(0) end
Hey, thanks, but it doesn't work

Or i'm doing something wrong, i just copy/pasted what you wrote underneath the other scripts in the lua file but it still shows the rounded timers under my playerframe

#71 Matthewirl

Matthewirl
  • Members
  • Posts: 3

Posted 22 July 2012 - 09:03 PM

Hi guys, i need a DR script for my rogue! I want to have CS, blind and sap, thx!

#72 Teslaqtx

Teslaqtx
  • Members
  • Draeneiclass_name
  • EU-Auchindoun
  • Vindication
  • Posts: 8
  • Talents: Restoration 1/1/1/1/0/0

Posted 23 July 2012 - 05:06 AM

Also, would it be possible to make the buff and debuff icons in the blizzard raid frames bigger?

#73 Teslaqtx

Teslaqtx
  • Members
  • Draeneiclass_name
  • EU-Auchindoun
  • Vindication
  • Posts: 8
  • Talents: Restoration 1/1/1/1/0/0

Posted 23 July 2012 - 08:56 PM

Sorry to be a dick, but doesn't work either :P

Had another question though, i'm using the following script:

3.1. Class icons instead of portraits

Would it be possible to show the spec icon instead of class icon or is that too much to ask? :P

#74 Emoeritz

Emoeritz
  • Junkies
  • Humanclass_name
  • EU-Aegwynn
  • Blutdurst
  • Posts: 65
  • Talents: Windwalker 1/0/2/2/2/1
  • RBG: 2056

Posted 30 July 2012 - 10:08 PM

Any ideas how to display enemy trinkets?

Every solution I found were via macros and they weren't neither comfortable nor consistent.

EDIT:

found this somewhere, but it's not working

Quote

local trinkets = {}
local events = CreateFrame("Frame")

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("Cooldown", arenaFrame.."Trinket", ArenaEnemyFrames)
trinket:SetPoint("Right", arenaFrame, 29, -5)
trinket:SetSize(30, 30)
trinket.icon = trinket:CreateTexture(nil, "BACKGROUND")
trinket.icon:SetAllPoints()
trinket.icon:SetTexture("Interface\\Icons\\inv_jewelry_trinketpvp_01")
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
CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 120, 1)
SendChatMessage("Trinket used by: "..GetUnitName(unitID, true), "PARTY")
elseif spellID == 7744 then
CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 45, 1)
SendChatMessage("WotF used by: "..GetUnitName(unitID, true), "PARTY")
end
end

function events:PLAYER_ENTERING_WORLD()
local _, instanceType = IsInInstance()
if instanceType == "arena" then
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
elseif self:IsEventRegistered("UNIT_SPELLCAST_SUCCEEDED") then
self:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")
for _, trinket in pairs(trinkets) do
trinket:SetCooldown(0, 0)
trinket:Hide()
end
end
end

SLASH_BAF1 = "/baf"
SlashCmdList["BAF"] = function(msg, editBox)
if not IsAddOnLoaded("Blizzard_ArenaUI") then
LoadAddOn("Blizzard_ArenaUI")
end
ArenaEnemyFrames:Show()
local arenaFrame
for i = 1, MAX_ARENA_ENEMIES do
arenaFrame = _G["ArenaEnemyFrame"..i]
arenaFrame.classPortrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
arenaFrame.classPortrait:SetTexCoord(unpack(CLASS_ICON_TCOORDS["WARRIOR"]))
arenaFrame.name:SetText("Dispelme")
arenaFrame:Show()
CooldownFrame_SetTimer(trinkets["arena"..i], GetTime(), 120, 1)
end
end

events:SetScript("OnEvent", function(self, event, ...) return self[event](self, ...) end)
events:RegisterEvent("ADDON_LOADED")
events:RegisterEvent("PLAYER_ENTERING_WORLD")

Ideas?

#75 Superlative

Superlative
  • Members
  • Humanclass_name
  • EU-Outland
  • Misery
  • Posts: 51
  • Talents: Shadow 0/2/0/1/2/.
  • RBG: 1894

Posted 31 July 2012 - 02:30 AM

View PostEmoeritz, on 30 July 2012 - 10:08 PM, said:

Any ideas how to display enemy trinkets?

Every solution I found were via macros and they weren't neither comfortable nor consistent.

EDIT:

found this somewhere, but it's not working



Ideas?

local trinkets = {}
local events = CreateFrame("Frame")

function events:ADDON_LOADED(addonName)
	if addonName ~= "Blizzard_ArenaUI" then
		return
	end
		ArenaEnemyFrame1:ClearAllPoints()
		ArenaEnemyFrame1:SetPoint("CENTER", nil, "CENTER", 209.0, 204.0)					  
	local arenaFrame, trinket
	for i = 1, MAX_ARENA_ENEMIES do
		arenaFrame = "ArenaEnemyFrame"..i
		trinket = CreateFrame("Cooldown", arenaFrame.."Trinket", ArenaEnemyFrames)
		trinket:SetPoint("TOPRIGHT", arenaFrame, 30, -6)
		trinket:SetSize(24, 24)
		trinket.icon = trinket:CreateTexture(nil, "BACKGROUND")
		trinket.icon:SetAllPoints()
		trinket.icon:SetTexture("Interface\\Icons\\inv_jewelry_trinketpvp_01")
		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
		CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 120, 1)
		SendChatMessage("Trinket used by: "..GetUnitName(unitID, true), "PARTY")
	elseif spellID == 7744 then
		CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 45, 1)
		SendChatMessage("WotF used by: "..GetUnitName(unitID, true), "PARTY")
	end
end

function events:PLAYER_ENTERING_WORLD()
	local _, instanceType = IsInInstance()
	if instanceType == "arena" then
		self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
	elseif self:IsEventRegistered("UNIT_SPELLCAST_SUCCEEDED") then
		self:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")
		for _, trinket in pairs(trinkets) do
			trinket:SetCooldown(0, 0)
			trinket:Hide()
		end
	end
end

SLASH_TESTAEF1 = "/testaef"
SlashCmdList["TESTAEF"] = function(msg, editBox)
	if not IsAddOnLoaded("Blizzard_ArenaUI") then
		LoadAddOn("Blizzard_ArenaUI")
	end
	ArenaEnemyFrames:Show()
	local arenaFrame
	for i = 1, 3 do
		arenaFrame = _G["ArenaEnemyFrame"..i]
		arenaFrame.classPortrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
		arenaFrame.classPortrait:SetTexCoord(unpack(CLASS_ICON_TCOORDS["WARRIOR"]))
		arenaFrame.name:SetText("Dispelme")
		arenaFrame:Show()
		CooldownFrame_SetTimer(trinkets["arena"..i], GetTime(), 120, 1)
	end
end

events:SetScript("OnEvent", function(self, event, ...) return self[event](self, ...) end)
events:RegisterEvent("ADDON_LOADED")
events:RegisterEvent("PLAYER_ENTERING_WORLD")

try that? cred to Wit4er

#76 Emoeritz

Emoeritz
  • Junkies
  • Humanclass_name
  • EU-Aegwynn
  • Blutdurst
  • Posts: 65
  • Talents: Windwalker 1/0/2/2/2/1
  • RBG: 2056

Posted 01 August 2012 - 08:44 AM

Could you share the script please?

#77 Emoeritz

Emoeritz
  • Junkies
  • Humanclass_name
  • EU-Aegwynn
  • Blutdurst
  • Posts: 65
  • Talents: Windwalker 1/0/2/2/2/1
  • RBG: 2056

Posted 01 August 2012 - 04:03 PM

I actually meant the first script, which is similar to lose control.
(and seemed finished)

#78 Superlative

Superlative
  • Members
  • Humanclass_name
  • EU-Outland
  • Misery
  • Posts: 51
  • Talents: Shadow 0/2/0/1/2/.
  • RBG: 1894

Posted 01 August 2012 - 08:18 PM

View PostSyncrow, on 01 August 2012 - 05:38 PM, said:

It also referred to the LoseControl script, and should not actually shared to anyone!

Not for public, only for me and my friends, sry

So you want help with a script/addon from a community that shares stuff, yet you wont?
I'm amazed

#79 Emoeritz

Emoeritz
  • Junkies
  • Humanclass_name
  • EU-Aegwynn
  • Blutdurst
  • Posts: 65
  • Talents: Windwalker 1/0/2/2/2/1
  • RBG: 2056

Posted 03 August 2012 - 12:20 PM

The script to show the enemy trinkets is not working for me. :/

#80 XqzN

XqzN
  • Members
  • Undeadclass_name
  • EU-Kazzak
  • Misery
  • Posts: 7
  • Talents:

Posted 04 August 2012 - 04:53 PM

Really cool stuff Syncrow!

I tried to use your Stopwatch-Look and positioning, but I just get errors when trying.

My error "attempt to index global 'StopwatchFrame' (a nil value)"




2 user(s) are reading this topic

1 members, 1 guests, 0 anonymous users


<