Download
(275 Kb)
Download
Updated: 04-16-10 07:29 AM
Addon for:
Tidy Plates.
Pictures
File Info
Updated:04-16-10 07:29 AM
Created:10-25-09 07:27 AM
Downloads:71,203
Favorites:453
MD5:
Categories:Unit Mods, Outdated Mods
Tidy Plates: Threat Plates  Popular! (More than 5000 hits)
Version: v3.0.4
by: suicidalkatt [More]
--[[v3.0.4]]--
  • ~~ Fixed: Typo on "showdangerskull" to "showDangerSkull".

--[[v3.0.3]]--
  • ~~ Fixed: OnInitialize conditionals to prevent multiple widgets being created when not needed. (5.11)


--[[v3.0.2]]--
  • ~~ Fixed: Target highlight lag spikes on targeting.

--[[v3.0.1]]--
  • ~~ Fixed: Target highlight toggling should now be functioning properly.

--[[v3.0]]-- NOTE: UPDATING TO THIS VERSION WILL RESET YOUR VARIABLES!!
  • ++ New Feature: Elite Icon's have now been implemented.
  • ++ New Feature: Combo Point widget has now been implemented.
  • ++ New Feature: Threat Widget is now been implemented.
  • ++ New Feature: Color HP by percentage fading from green (high HP) to red (low HP).
  • ++ New Feature: Override the default blizzard nameplate fade as well as allow adjustments.
  • ++ New Feature: The threat system now has a "look and feel" category allowing users to change texture, disable scaling, or disable alpha changes created by the threat system.
  • ++ New Feature: More lazy trees (courtesy of mimichi).
  • ~~ Coding Alteration: Nameplates have been readjusted in height to better reflect the actual mouseover area.
  • ~~ Coding Alteration: Switched to .primary & .secondary from the depreciated .theme
  • || Fixed: Widgets from "sticking" while changing from theme to theme.
  • || Fixed: Target highlight texture sometimes being overlapped by threat glows.
  • -- Removed: Automatic nameplate hiding and showing features has been removed as it is now a feature provided by Tidy Plates v5.10.

--[[v2.3.1]]--
  • ++ Added some additional custom health color options as well as a toggle to hide class colors in pvp.

--[[v2.3]]--
  • ++ Name text is now able to be changed in color and will no longer change color upon entering combat.
  • ++ Healthbars can now have a custom color.
  • -- Removed the threat widget until it is more stable. (drastic memory and cpu improvement)
  • ~~ Fixed some users not having functionality due to threat glows not being enabled (glows are now automatically turned on if the user is using the threat system or off if not).
  • ~~ Improved the automatic turning on and off of the threat system while leaving a battleground.
  • || "Non-Combat" units will no longer exclude units with less than 100% HP.
  • || Alpha levels can now reach 0%.

--[[v2.2]]--
  • ++ A new toggle command has been implemented. The command "/tptpol" will now toggle nameplate overlapping.
  • ++ The threat system will now automatically be turned off while entering arenas or BG's. The threat system also be turned back on if it were so before hand.
  • ~~ Welcome message and talent detection has been fixed and now will properly detect new player specs.
  • ~~ Fixed "ACTIVE_TALENT_GROUP_CHANGED" from firing on log in.
  • ~~ Fixed the "none" threat theme from sometimes showing class icons.

--[[v2.1f]]--
  • ++ A new Autohide feature has been implemented. This will allow you to automatically hide enemy nameplates after leaving combat, and automatically show them upon entering combat.

--[[v2.1e]]--
  • ~~ Fixed the intended change of v2.1d. Apologies for my missed coding.

--[[v2.1d]]--
  • ++ Added a toggle for the temporary threat widget(not completed yet).
  • ~~ Player role settings and spec preferences are now character specific, as intented.

--[[v2.1c]]--
  • ++ Class Icons now have a transparent setting.
  • ++ Threat Textures now have a "none" style which removes the threat textures.
  • ++ All text's now have outline options and shadow toggles.
  • ++ New Feature: Health bars can now be colored according to threat levels.
  • ++ New users will now be prompted on loading to assign their current theme to Threat Plates or not.
  • || Textures have been moved around to make better sense of the theme system.
  • || Threat widget is currently in progress.

--[[v2.1b]]--
  • Lua error fix. Meant to comment that out.

--[[v2.1a]]--
  • -- Removed frame x and y offsets as this caused conflicts with positioning.
  • ++ Class icons can now be toggled, sized, and positioned.
  • ++ Boss danger skull icons can now be toggled, sized, and positioned.
  • ++ Raid icons can now be sized, and positioned.
  • ++ Paladin and Warrior tanking spec's can now be determined on first usage of the addon.
  • ++ When players respec, talent information and spec is displayed.(i.e. Enhancement: (19/52/0))
  • ~~ Cast text is now working.
  • ~~ Statusbar widget now displays textures properly as well as statusbar names.
  • || Options optimized. (lower memory)

--[[v2.1]]--
  • Added SharedMedia support.
  • Added text options.
  • Added threat glow color options. ~ Requires reloading of UI to update.
  • Added target art.
  • Added unit type threat scaling offsets as well as a toggle for that system.
  • Added threat ignored marked scaling and alpha.
  • Added non-combat mob threat hiding. ~ May not be accurate.
  • Threat texture style 'Bar' has been remade to reflect the proper colors (reversed).
  • Option functions reworked. (Lower memory)
  • Switched back to global saved variables.

--[[v2.0a]]--
  • Memory and CPU usage optimized.
  • Ace Libraries updated. (no more 'IsVisible' lua errors)
  • Empty.lua fixed to no longer change the empty texture to a shared media texture.
  • Options reworked and custom profile names can be created (per character ~ no worries they still look the same).

--[[v2.0]]--
  • New Feature: Custom Theme's can now be created and used. (More info in the userConfig.lua)
  • New Theme: 'Bar Style' is now available in the threat options. ~ made by suicidalkatt (COULD BE YOU! Find out HOW! more info in the userConfig.lua)
  • Additional SharedMedia adjustments made available in the userConfig.lua as well as an additional localization font option for defaultFont. (Blizzard global for default localized text.)
  • Typo's fixed.

--[[v1.9a]]--
  • New Feature: A new userConfig.lua file has been created for more user settings such as Shared Media and Localization. Open the userConfig.lua with notepad for more information.
  • Welcome message fixed to only display on first usage.
  • First time users will have some dual spec settings auto configured.
  • Warning for first time users to enable the Threat Plates theme in the Tidy Plates configurations.
  • Added dual spec support to all toggles including slash commands.

--[[v1.9]]--
  • Saved Variables are now Per Character
  • New Feature: Dual Spec settings will now auto toggle your role depending on your spec and settings.
  • Fixed an error with class icons in pvp combat.

--[[v1.8]]--
  • Saved variables redone.
  • Marked units can now be ignored by some threat managed components.
  • Some new text options have become available.
  • Fixed an error with non-elite but "dangerous" level mobs (skull level).

--[[v1.7h]]--
  • Fixed threat textures showing out of combat.

--[[v1.7g]]--
  • Minor typo fix.

--[[v1.7f]]--
  • All lua errors fixed. Strange conditionals for threat ignored units will now be working. :D

--[[v1.7e]]--
  • Fixed lua errors.

--[[v1.7d]]--
  • Fixed lua errors.

--[[v1.7c]]--
  • Fixed conditionals sometimes giving a nil return when threat options were disabled.

--[[v1.7b]]--
  • Fixed friendly nameplates giving the "empty" return for conditionals.

--[[v1.7a]]--
  • Images Compressed to reduce memory usage.
  • Casting text is now on by default.

--[[v1.7]]--
  • Neutral units are now detected by the threat system.
  • Each level of threat now has per role, per level custom alpha settings.
  • Specific unit classifications can now be toggled to be ignored from the threat system.
  • Specific unit classifications can now be completely turned off.
  • Specific unit classifications now have custom scale settings.
  • Specific unit classifications now have custom alpha settings.

--[[v1.6b]]--
  • Toc update for 30300.

--[[v1.6a]]--
  • Threat textures are now working.

--[[v1.6]]--
  • Threat system reworked to allow much cleaner scaling to avoid frame size mismatches.
  • Options have been completely redone.
  • Per role and per threat level scaling has been implemented.
  • Spell Cast text has been implemented.

--[[v1.5]]--
Now included a /tptp, /tptptoggle /tptpdps, and /tptptank commands for class role changes between dpsing and tanking.

Updated ToC
Changed the "high threat" texture to a "default" style texture for better clarity.
Special Text is now working! ~ Thanks DanielTiger <3
Auto class colors in nameplates and auto threat warning enabled.
Ace3 Profiling now included.
Now implemented a toggle switch to enable or disable the threat system.

/tptp - Displays options.
/tptptoggle - Toggle Role from one to the other.
/tptpdps - Toggles DPS threat plates
/tptptank - Toggles Tank threat plates
Archived Files (37)
File Name
Version
Size
Author
Date
v3.0.3
275kB
suicidalkatt
04-12-10 04:25 PM
v3.0.2
275kB
suicidalkatt
03-26-10 08:15 PM
v3.0.1
275kB
suicidalkatt
03-23-10 12:33 AM
v3.0
275kB
suicidalkatt
03-21-10 11:25 AM
v2.3.1
269kB
suicidalkatt
02-28-10 03:41 PM
v2.3
269kB
suicidalkatt
02-21-10 12:05 PM
v2.2
268kB
suicidalkatt
02-07-10 02:54 AM
v2.1f
272kB
suicidalkatt
01-31-10 01:27 AM
v2.1e
272kB
suicidalkatt
01-29-10 06:21 AM
v2.1d
272kB
suicidalkatt
01-28-10 09:15 PM
v2.1c
272kB
suicidalkatt
01-28-10 08:54 AM
v2.1b
217kB
suicidalkatt
01-24-10 06:35 PM
v2.1a
217kB
suicidalkatt
01-24-10 03:17 PM
v2.1
214kB
suicidalkatt
01-22-10 07:51 AM
v2.0a
205kB
suicidalkatt
01-17-10 02:34 AM
v2.0
227kB
suicidalkatt
01-16-10 03:19 AM
v1.9a
234kB
suicidalkatt
01-08-10 11:43 AM
v1.9
236kB
suicidalkatt
01-04-10 06:19 AM
v1.8
229kB
suicidalkatt
01-02-10 08:22 AM
v1.7h
180kB
suicidalkatt
12-25-09 10:40 PM
v1.7g
170kB
suicidalkatt
12-24-09 09:41 PM
v1.7f
170kB
suicidalkatt
12-24-09 09:21 PM
v1.7d
185kB
suicidalkatt
12-24-09 06:42 PM
v1.7c
185kB
suicidalkatt
12-24-09 02:31 PM
v1.7b
185kB
suicidalkatt
12-21-09 01:45 PM
v1.7a
185kB
suicidalkatt
12-18-09 11:10 PM
v1.7
187kB
suicidalkatt
12-16-09 01:43 PM
v1.6b
183kB
suicidalkatt
12-08-09 10:59 AM
v1.6a
192kB
suicidalkatt
12-06-09 02:51 AM
v1.6
193kB
suicidalkatt
12-03-09 05:13 PM
v1.5
232kB
suicidalkatt
11-01-09 01:42 PM
v1.4a
233kB
suicidalkatt
10-30-09 07:25 AM
v1.4
233kB
suicidalkatt
10-30-09 07:16 AM
v1.3
235kB
suicidalkatt
10-28-09 05:24 PM
v1.2
234kB
suicidalkatt
10-27-09 03:17 PM
v1.1
87kB
suicidalkatt
10-26-09 12:27 AM
v1.0
86kB
suicidalkatt
10-25-09 07:27 AM


Post A Reply Comment Options
Old 02-22-10, 04:27 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1375
Uploads: 60
Originally posted by galvin
The threat system works nice for dps. But one problem, it covers up the selection rectangle. For threat I have it change the color of the health bar. But it also keeps using the outer edge of the bar that covers up the selection border.

Nice work though, but I'm going to have to turn that feature off for now.
If I could adjust the way the clickable region worked, I would, however I can't.

As for this:

Code:
 if not plate.NameText then OnInitialize(plate) end

 local c = db.name.color
 if db.options.showName then

   local st = unit.name:lower()
   -- local color = "|cFF00FF00" -- green
   local color = "|cFFFFFF00" -- yellow
   if st == "cult adherent" or st == "empowered adherent" or st == "reanimated adherent" then
     unit.name = color .. unit.name
   end

  plate.NameText:SetText(unit.name)
 else
  plate.NameText:SetText(nil)
 end
Should be this:

Code:
 if not plate.NameText then OnInitialize(plate) end

 local c = db.name.color
 if db.options.showName then

   local st = unit.name:lower()
   -- local color = "|cFF00FF00" -- green
   local color = "|cFFFFFF00" -- yellow
   if st == "cult adherent" or st == "empowered adherent" or st == "reanimated adherent" then
    
     st = color .. unit.name
   end

  plate.NameText:SetText(st)
 else
  plate.NameText:SetText(nil)
 end
You could also just change the SetTextColor and that would be much safer:

Code:
local c = db.name.color
local st = unit.name:lower()
if st == "cult adherent" or st == "empowered adherent" or st == "reanimated adherent" then
	plate.NameText:SetTextColor(1, 1, 0) -- Yellow
else
	plate.NameText:SetTextColor(c.r, c.g, c.b)
end
Last edited by suicidalkatt : 02-22-10 at 04:32 AM.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 02-22-10, 01:41 AM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
The threat system works nice for dps. But one problem, it covers up the selection rectangle. For threat I have it change the color of the health bar. But it also keeps using the outer edge of the bar that covers up the selection border.

Nice work though, but I'm going to have to turn that feature off for now.
galvin is offline Report comment to moderator  
Reply With Quote
Old 02-22-10, 12:44 AM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
This won't break anything since i'm setting unit.name a new value?

Code:
 if not plate.NameText then OnInitialize(plate) end

 local c = db.name.color
 if db.options.showName then

   local st = unit.name:lower()
   -- local color = "|cFF00FF00" -- green
   local color = "|cFFFFFF00" -- yellow
   if st == "cult adherent" or st == "empowered adherent" or st == "reanimated adherent" then
     unit.name = color .. unit.name
   end

  plate.NameText:SetText(unit.name)
 else
  plate.NameText:SetText(nil)
 end
galvin is offline Report comment to moderator  
Reply With Quote
Old 02-21-10, 11:39 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1375
Uploads: 60
Originally posted by galvin
So for now if I wanted to change the color based on the name. Where would I edit the LUA?
Extensions.lua
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 02-21-10, 09:41 PM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
So for now if I wanted to change the color based on the name. Where would I edit the LUA?
galvin is offline Report comment to moderator  
Reply With Quote
Old 02-20-10, 11:45 PM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
The plates shown in this post look awesome. Except maybe for the star icon. These look better than any plates i've seen.

http://www.tankspot.com/showthread.p...086#post337086

How come something like this is not being used. They look so much better.
Last edited by galvin : 02-21-10 at 12:31 AM.
galvin is offline Report comment to moderator  
Reply With Quote
Old 02-20-10, 08:22 PM  
Dope
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
That was idd the problem...I didnt use that because i found em spammy. Well now i enjoyed your very nice addon ! No more threat problems with groups...Tho HoR stays a lil problem ^^

Grtz & Thx !
Dope is offline Report comment to moderator  
Reply With Quote
Old 02-20-10, 03:11 PM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
using threatplates bar texture fixed it. These make the bar color brightness much better.

The new version sounds like it's going to kick ass.
Last edited by galvin : 02-20-10 at 03:13 PM.
galvin is offline Report comment to moderator  
Reply With Quote
Old 02-20-10, 01:51 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1375
Uploads: 60
Re: Problem with Threatplates

Originally posted by Dope
hey,

I got a little problem with threat plates and I just cant figure out what im doing wrong.

I have tidyplates installed, neon plates aswell for another look.
This is the problem.

I log on, the wow asks me politly to switch over to Threat plates and reloads my UI. Then i set it to "tank mode" ...I start tanking. The bars stay red all the time with the "explosion graphics next to it" and it stays red. Even tho i got aggro all the time.

I then started to tank stupid and lose aggro on purpose to see if anything would change. Nothing...the plates stay red all the time...

Did I miss something in settings ? I have reseted the addon (in profile tab) more then once...I used the "color health by threat" ...still same.

I hope you can help me out, cause i really like this addon !

Grtz Dope
You probably just need to double check if your default threat settings are turned on to "always".

The way these nameplates work is by the default nameplate threat glows, so these won't function without working glows.

To ensure they're currently on and working follow these steps:
1. Press ESC on your keyboard and click on interface.
2. Click on the "Game" tab at the top left of the options window.
3. Click on "Display".
4. Locate the "Display Aggro Warning" dropdown and select "Always"

This should ensure that your aggro warnings are always on and working.

This problem will be fixed with the next version of Threat Plates.
Last edited by suicidalkatt : 02-20-10 at 01:52 PM.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 02-20-10, 01:50 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1375
Uploads: 60
Originally posted by galvin
1. Show nameplate for target only. Be nice if this can be set for friendly or harmful only.
This unfortunately doesn't seem like a feature I'd like to implement. The amount of time to create the system to make that functional would not be enjoyable and the majority would probably not use it.

Originally posted by galvin
2. Healthbar background, right now as the health gets low theres no darker background behind it. Maybe this could get an alpha setting for background so you can set it just how you want it. It's always easier to read healthbars when they have backgrounds. Actually this is probably not needed if there is a way to make the healthbar brighter.
Due to the way nameplates overlap having multiple background colors overlapping each other would ultimately result in the darkening of other nameplates. By leaving the background "empty" even though there is a slight background that you may not notice, You can see through to other nameplates, which (in my opinion) is more "legible".

Originally posted by galvin
3. Assigns different colors to a list of names and have those names appear in different color in the name text.
With the merger of Clean Plates and Threat Plates there is going to be a "special" nameplate for certain designated mobs such as your usage of adherents and fanatics and their transformations.

Originally posted by galvin
4. Theres no way to change width/height of the name plates.
While changing the height and width is doable, the responsive mouseover area can not be changed and even though you may be moused over the texture, it won't be reactive.

Originally posted by galvin
5. Nameplate health bars are too dark. Be nice if there is a slider to set how dark/light you want the bar to be.
The reason why this could be is that the texture you are innately using is shaded in a very dark grey(since all textures for statusbars are grey). I will be introducing custom health bar coloring with the next version, which could alleviate your problem.

Originally posted by galvin
Also if possible is there an LUA edit I can do to change how dark the healthbars are?
There is no way to create textures on the fly with lua in a manor that would suffice.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 02-20-10, 11:55 AM  
Dope
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Problem with Threatplates

hey,

I got a little problem with threat plates and I just cant figure out what im doing wrong.

I have tidyplates installed, neon plates aswell for another look.
This is the problem.

I log on, the wow asks me politly to switch over to Threat plates and reloads my UI. Then i set it to "tank mode" ...I start tanking. The bars stay red all the time with the "explosion graphics next to it" and it stays red. Even tho i got aggro all the time.

I then started to tank stupid and lose aggro on purpose to see if anything would change. Nothing...the plates stay red all the time...

Did I miss something in settings ? I have reseted the addon (in profile tab) more then once...I used the "color health by threat" ...still same.

I hope you can help me out, cause i really like this addon !

Grtz Dope
Dope is offline Report comment to moderator  
Reply With Quote
Old 02-20-10, 11:29 AM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
So any of these features making it in for next release?

1. Show nameplate for target only. Be nice if this can be set for friendly or harmful only.
2. Healthbar background, right now as the health gets low theres no darker background behind it. Maybe this could get an alpha setting for background so you can set it just how you want it. It's always easier to read healthbars when they have backgrounds. Actually this is probably not needed if there is a way to make the healthbar brighter.
3. Assigns different colors to a list of names and have those names appear in different color in the name text.
4. Theres no way to change width/height of the name plates.
5. Nameplate health bars are too dark. Be nice if there is a slider to set how dark/light you want the bar to be.

Also if possible is there an LUA edit I can do to change how dark the healthbars are?
Last edited by galvin : 02-20-10 at 12:52 PM.
galvin is offline Report comment to moderator  
Reply With Quote
Old 02-19-10, 08:18 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1375
Uploads: 60
Originally posted by galvin
You open to the idea of adding custom color for different mob names? The only thing I'm concerned about is if doing a lookup in a table in the specialtext function will cause a lot of overhead.

I been playing with the change in 5mans, I can spot mob names so much easier now.

For my own use I made the adherent mobs appear in green text. Here is the code snippit I used to do this:
Code:
local function SetSpecialText(unit)
  local st = unit.name:lower()
  local st2 = ""
  local color = "|cFF00FF00" -- green
  if st == "cult adherent" or st == "empowered adherent" or st == "reanimated adherent" then
    st = color .. unit.name
  else
    st = unit.name
  end
  return st
end
But my other question, is there a way to disable the rectangle on mouse over? I take it this is the glowtexture under the healthborder theme.
Yea just put it to .."Empty" instead
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 02-19-10, 08:08 PM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
You open to the idea of adding custom color for different mob names? The only thing I'm concerned about is if doing a lookup in a table in the specialtext function will cause a lot of overhead.

I been playing with the change in 5mans, I can spot mob names so much easier now.

For my own use I made the adherent mobs appear in green text. Here is the code snippit I used to do this:
Code:
local function SetSpecialText(unit)
  local st = unit.name:lower()
  local st2 = ""
  local color = "|cFF00FF00" -- green
  if st == "cult adherent" or st == "empowered adherent" or st == "reanimated adherent" then
    st = color .. unit.name
  else
    st = unit.name
  end
  return st
end
But my other question, is there a way to disable the rectangle on mouse over? I take it this is the glowtexture under the healthborder theme.
Last edited by galvin : 02-19-10 at 08:11 PM.
galvin is offline Report comment to moderator  
Reply With Quote
Old 02-19-10, 07:44 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1375
Uploads: 60
Originally posted by galvin
I figured out how to make name text appear in health bar. But this modification breaks show other health text. But this works perfect. Go to line 542 in tidyplatesthreat.lua then rem out the lines shown in the code starting with "--[[" and ending with "--]]". Btw this is what i was asking for earlier.
Only thing I didn't test was to see if the name can go out of bounds, but hopefully that doesn't happen.

Works perfect for now I'm adding some custom color for certain names this will come useful for some boss fights where you need to spot a mob out of a cluster of targets. Hopefully that can be added as a feature.

Is there anyway to disable the white rectangle around targets when you mouse over them?

Code:
local function SetSpecialText(unit) 
  return unit.name
end
--[[	local HpPct
	local HpAmt
	local HpMax
	if TidyPlatesThreat.db.profile.text.percent then
		if (TidyPlatesThreat.db.profile.text.amount or TidyPlatesThreat.db.profile.text.max) then
			if TidyPlatesThreat.db.profile.text.deficit and not TidyPlatesThreat.db.profile.text.max and unit.health == unit.healthmax then
				HpPct = floor(100*(unit.health / unit.healthmax)).."%"
			else
				HpPct = " - "..floor(100*(unit.health / unit.healthmax)).."%"
			end
		else
			HpPct = floor(100*(unit.health / unit.healthmax)).."%"
		end
	else
		HpPct = ""
	end
	if TidyPlatesThreat.db.profile.text.amount then
		if TidyPlatesThreat.db.profile.text.deficit then
			if (unit.health == unit.healthmax) then
				HpAmt = ""
			else
				HpAmt = "-"..Truncate(unit.healthmax - unit.health)
			end
		else
			HpAmt = Truncate(unit.health)
		end
	else HpAmt = ""
	end
	if TidyPlatesThreat.db.profile.text.max then
		if TidyPlatesThreat.db.profile.text.amount then
			if TidyPlatesThreat.db.profile.text.deficit and unit.health == unit.healthmax then
				HpMax = Truncate (unit.healthmax)
			else
				HpMax = " / "..Truncate(unit.healthmax)
			end
		else
			HpMax = Truncate(unit.healthmax)
		end
	else
		HpMax = ""
	end
	if TidyPlatesThreat.db.profile.settings.options.showSpecialText then
		if (unit.health / unit.healthmax) < 1 then
			return HpAmt..HpMax..HpPct
		else
			if TidyPlatesThreat.db.profile.text.full then
				return HpAmt..HpMax..HpPct
			else
				return ""
			end
		end
	else
		return ""
	end
end --]]
I was planning on just making a separate text element and completely bypass the default name text from TidyPlates.

This won't be needed in the next version.
Last edited by suicidalkatt : 02-19-10 at 07:45 PM.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.