Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 08/15/08, 10:24 AM   #361
sanny
Glass Joe
 
sanny's Avatar
 
Gnome Mage
 
Aggramar (EU)
Thank you!

Offline
Reply With Quote
Old 08/16/08, 6:21 PM   #362
fyritke
Glass Joe
 
fyritke's Avatar
 
Undead Warlock
 
Turalyon
To the best of my knowledge, you can't change the text size with DogTags.

Offline
Reply With Quote
Old 08/18/08, 4:14 PM   #363
Sojik
Von Kaiser
 
Sojik's Avatar
 
Human Mage
 
Dunemaul
Originally Posted by supplicium View Post
Ok, So I've been searching for a way to change some naming conventions for my Focus target Name text.

If the focus target is any one other than me, I want the naming to be class colored and size=100% If it's me, I want the size to be 300 and Bright red. Is dynamic text scaling even possible? Let me know. I'd be happy with Just a name color change, but the scaling just adds that extra pop I'm really looking for.

Thanks.
Are you using Pitbull? One thing you could do is make two dogtags. One larger and one smaller and have them along the lines of:

[if IsUnit("player") then Name:Red] for the large one

[if ~IsUnit("player") then Name:ClassColor] for the small one

Then put them in similar spots like Health bar left and Frame Inside Left. If you're using another addon you may be able to put a dogtag on top of another one (like DaHud -- I've done this a few times). You can get creative with the use of spaces and line returns within the dogtag itself to get the text pretty much in the same place in Pitbull. I bet future Pitbulls will allow more customization as far as where we can put text. I honestly use Pitbull and Dahud (with all the modules turned off aside from Text) to perfect my UI.

Offline
Reply With Quote
Old 08/19/08, 11:05 AM   #364
Sykra
Glass Joe
 
Undead Warlock
 
Aman'Thul
I play a warlock and have been trying to put together a dogtag that will show a red dot when the target is more than 36 yards away. This is my tag:

[if MaxRange > 36 then
".":Red
end]

For some reason, the red dot never appears.

Changing it to:

[if MaxRange < 36 then
".":Red
end]

Makes the red dot appear when the target is less than 30 yards away, and disappears when it's more then 30 yards away. Which is obviously wrong. I've been tinkering with it for a few hours and it's driving me nuts. Help!

I'm using LibRangeCheck-2.0.

Offline
Reply With Quote
Old 08/19/08, 2:09 PM   #365
Sojik
Von Kaiser
 
Sojik's Avatar
 
Human Mage
 
Dunemaul
Originally Posted by Sykra View Post
I play a warlock and have been trying to put together a dogtag that will show a red dot when the target is more than 36 yards away. This is my tag:

[if MaxRange > 36 then
".":Red
end]

For some reason, the red dot never appears.

Changing it to:

[if MaxRange < 36 then
".":Red
end]

Makes the red dot appear when the target is less than 30 yards away, and disappears when it's more then 30 yards away. Which is obviously wrong. I've been tinkering with it for a few hours and it's driving me nuts. Help!

I'm using LibRangeCheck-2.0.
Try [if (MinRange => 36) then ".":Red end]

Offline
Reply With Quote
Old 08/19/08, 3:46 PM   #366
Sykra
Glass Joe
 
Undead Warlock
 
Aman'Thul
Originally Posted by livefastdiarrhea View Post
Try [if (MinRange => 36) then ".":Red end]
Ah thanks, using MinRange worked perfectly. I should have realised MaxRange after 36 yards would not have a value.

Offline
Reply With Quote
Old 08/20/08, 7:04 AM   #367
ghepip
Glass Joe
 
Blood Elf Warlock
 
Sunstrider (EU)
Spell timer

Hey, im trying to make/find a dogtag that, when i used "incinerate" it will reduce "x" by one and when "x" are used it will simply reset.
is that possible?

Offline
Reply With Quote
Old 08/20/08, 9:49 AM   #368
Ele'
Piston Honda
 
Ele''s Avatar
 
Human Warlock
 
Kirin Tor (EU)
Originally Posted by ghepip View Post
Hey, im trying to make/find a dogtag that, when i used "incinerate" it will reduce "x" by one and when "x" are used it will simply reset.
is that possible?
I don't think so. But if you are trying to count the number of incinerates left in your rotation before refreshing Immolate, I think you could do it by dividing AuraTimeLeft(Immolate) with the cast time of your incinerate.

[Edit] I would try something like this (disclaimer: not tested at all, may need some tweaking:
[if AuraTimeLeft(Immolate) <= 1.5 then
	"Immolate":RED
else
	Floor((AuraTimeLeft(Immolate)-1.5)/2.25) :ORANGE
]
It needs to be adapted to the "real" cast time of your Incinerate/Immolates, depending of your spec and your haste rating.

Last edited by Ele' : 08/20/08 at 10:28 AM. Reason: added Tag(1), forgot some parenthesis(2), ceil!=floor(3)

You can clip our wings, but we will always remember what it was like to fly.

Offline
Reply With Quote
Old 08/21/08, 4:24 AM   #369
ghepip
Glass Joe
 
Blood Elf Warlock
 
Sunstrider (EU)
Damn thats awesome
Ill try it out as soon as I got the time!
Thank you^^

Offline
Reply With Quote
Old 08/21/08, 2:57 PM   #370
Schlaz
Glass Joe
 
Orc Warrior
 
Cho'gall
TPS

Simple dogtag to pull data from Threatlib:GetTPS and throw it on your unitframe for people with Threat-2.0 and the pb player threat module. I found this handy because I spend about 90% of my time staring at my unit frames watching my HP while tanking.

in:
$Wowroot$\Interface\Addons\Pitbull\libs\LibDogTag-Unit-3.0\Categories\Threat.lua

Modifications:

After:

local function HasThreat_func(unit) return nil end
Insert:

local function TPS_func(unit) return nil end

-----------------------------------------------------------------------------------------------------------------

After:

	function HasThreat_func(unit)
		if UnitIsFriend("player", unit) then
			if UnitExists("target") then
				return ThreatLib:GetThreat(UnitGUID(unit), UnitGUID("target")) > 0
			else
				return false
			end
		else
			return ThreatLib:GetThreat(playerGuid, UnitGUID(unit)) > 0
		end
	end
Insert:

	function TPS_func(unit)
		if UnitIsFriend("player", unit) then
			if UnitExists("target") then
				return math.floor(ThreatLib:GetTPS(UnitGUID(unit), UnitGUID("target")) + 0.5)
			else
				return 0
			end
		else
			return math.floor(ThreatLib:GetTPS(playerGuid, UnitGUID(unit)) + 0.5)
		end
	end
-----------------------------------------------------------------------------------------------------------------

After:

DogTag:AddTag("Unit", "HasThreat", {
	code = function(args)
		return HasThreat_func
	end,
	dynamicCode = true,
	arg = {
		'unit', 'string;undef', 'player'
	},
	ret = "boolean",
	events = "Threat#$unit",
	doc = L["Return True if you have threat against enemy unit or friendly unit has threat against your target and if ThreatLib is available"],
	example = ('[HasThreat] => %q; [HasThreat] => ""'):format(L["True"]),
	category = L["Threat"]
})
Insert:

DogTag:AddTag("Unit", "TPS", {
	code = function(args)
		return TPS_func
	end,
	dynamicCode = true,
	arg = {
		'unit', 'string;undef', 'player'
	},
	ret = "nil;number",
	events = "Threat#$unit",
	doc = L["Threat Per Second"],
	example = '[TPS] => "950"',
	category = L["Threat"]
})
OR:

Threat.lua

TAG:
TPS:  [Outline] [(if TPS = 0 then
    nil
elseif TPS > 1500 then
    TPS:Color("FF3300")
elseif TPS > 1000 then
    TPS:Color("3366FF")
elseif TPS < 1000 then
    TPS:Green
end)]
colors threat by
green: >1000tps
blue: <1000tps
orange: <1500tps

Last edited by Schlaz : 08/31/08 at 1:32 AM.

Offline
Reply With Quote
Old 08/23/08, 9:34 PM   #371
clairecakes
Von Kaiser
 
clairecakes's Avatar
 
Orc Death Knight
 
Thunderlord
I was having a go at a dogtag for Underhood. I wanted it to show my target's name but when casting switch to the target's cast name and cast duration. Only I'm not sure exactly where to start.

Offline
Reply With Quote
Old 08/24/08, 1:31 AM   #372
Sojik
Von Kaiser
 
Sojik's Avatar
 
Human Mage
 
Dunemaul
Originally Posted by clairecakes View Post
I was having a go at a dogtag for Underhood. I wanted it to show my target's name but when casting switch to the target's cast name and cast duration. Only I'm not sure exactly where to start.
Something like [(CastName CastEndDuration:FormatDuration) or Name]

Offline
Reply With Quote
Old 08/24/08, 11:21 AM   #373
clairecakes
Von Kaiser
 
clairecakes's Avatar
 
Orc Death Knight
 
Thunderlord
Originally Posted by livefastdiarrhea View Post
Something like [(CastName CastEndDuration:FormatDuration) or Name]
So I modified it a bit.
[(castname " " castendduration:formatduration) or [(if IsPlayer then
    ClassColor
else
    HostileColor
end) NameRealm]]
And it works great...until I cast. I get the cast name and duration but when the cast is complete it doesn't return back to showing the target's name.

Last edited by clairecakes : 08/24/08 at 1:06 PM.

Offline
Reply With Quote
Old 08/25/08, 1:58 AM   #374
Sojik
Von Kaiser
 
Sojik's Avatar
 
Human Mage
 
Dunemaul
Sounds like an Underhood problem.

Offline
Reply With Quote
Old 08/25/08, 5:53 PM   #375
krx
Banned
 
krx_o
Draenei Hunter
 
Non-US/EU Server
i have no mana bar
so my mana shows as text

how can i color it..

like at 100% lightblue
50% blue
20% darkblue

10colors.
10% steps
help?

Last edited by krx : 08/25/08 at 6:28 PM.

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[DogTags] - Share yours! Fulnir User Interface and AddOns 164 03/30/08 1:30 AM