Download
(275Kb)
Download
Updated: 09-26-09 08:37 AM
Patch for:
Tidy Plates.
Pictures
File Info
Updated:09-26-09 08:37 AM
Created:07-06-09 08:43 PM
Downloads:13,124
Favorites:50
MD5:

Tidy Plates: Knurl Theme (With PVP Class Icons)  Popular! (More than 5000 hits)

Version: 5.2
by: danltiger [More]

This theme is meant for some old version of Tidy Plates. (5-ish?) I'll be keeping it available for the time-being, but I have no plans to update it for the current version of Tidy Plates.

Release 3: Cast Icon should show properly, now.
Post A Reply Comment Options
Unread 09-13-09, 10:00 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Glad you like it! :-)

If you open up "Theme.lua" (in the TidyPlatesKnurl folder), and take a peek at the code, you'll find a section that looks like this:

Code:
function config.SetSpecialText(unit)
	return unit.health.." / "..unit.healthmax
end
The function simply returns a string of text. The variable 'unit' is a table, which is loaded with information about that particular unit. So, 'unit.health' becomes that specific unit's health. The '..' appends pieces of text, so we can add the slash '/' between the two numbers.

To return the percentage, we include a little bit of math in our statement:

Code:
function config.SetSpecialText(unit)
	local healthPercent = ceil( ( unit.health / unit.healthmax ) * 100 )
	return healthPercent.."%"
end
The function 'ceil()' rounds the number up to the next whole number.

Hope that helps!

Originally posted by Ganglia
I love this addon.

Can anybody help to add an "%"-show for Life ?
I´m not realy good in lua programing

Thnx much
Report comment to moderator  
Reply With Quote
Unread 10-26-09, 02:26 PM  
Obviousdwarf
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 13
Uploads: 1
under what conditions are the pvp icons guaranteed to work? never seen them so far

great theme though
if not the best *hides*
Report comment to moderator  
Reply With Quote
Unread 10-26-09, 04:03 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
lol - Hey, I make no guarantees!

The class icons are activated when 1) a player is able to attack you, and 2) you've enabled "class-colored nameplates" under the Interface panel.

This means that the icon will show up during duels, battlegrounds, world pvp, and NPC mind control.

Originally posted by Obviousdwarf
under what conditions are the pvp icons guaranteed to work? never seen them so far

great theme though
if not the best *hides*
Report comment to moderator  
Reply With Quote
Unread 03-19-10, 11:08 AM  
autobot
A Defias Bandit

Forum posts: 2
File comments: 34
Uploads: 0
Is there anyway you could add the "tug of war" option that you just added to default tidy plate? I been using this theme for awhile and just really used to it but i also like the new tug of war you made.
Report comment to moderator  
Reply With Quote
Unread 03-19-10, 03:48 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
That's a good idea; I'll put it on the list.

Originally posted by autobot
Is there anyway you could add the "tug of war" option that you just added to default tidy plate? I been using this theme for awhile and just really used to it but i also like the new tug of war you made.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 03-20-10, 07:59 PM  
Somaru
A Defias Bandit

Forum posts: 3
File comments: 4
Uploads: 0
Talking I love this theme!

I really love these theme. It actually looks kind of like my custom pit bull raid frames, especially with the tooltip border.

I just wish it had all the options of the grey theme!
Report comment to moderator  
Reply With Quote
Unread 03-20-10, 08:31 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Re: I love this theme!

Migrating Grey's panel to other themes is something that I want to do... just need to find a few more hours in the day. ;-)

Originally posted by Somaru
I really love these theme. It actually looks kind of like my custom pit bull raid frames, especially with the tooltip border.

I just wish it had all the options of the grey theme!
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 04-16-10, 07:35 PM  
whitemandan89
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
hi...
since tidy plates 5.11.2 i get some of these errors

Code:
Message: Interface\AddOns\TidyPlatesKnurl\theme.lua:5: attempt to concatenate field 'healthmax' (a nil value)
Time: 04/16/10 22:52:21
Count: 4
Stack: Interface\AddOns\TidyPlatesKnurl\theme.lua:5: in function `SetSpecialText'
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:126: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:102>
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:283: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:278>
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:358: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:358>

Locals: unit = <table> {
 isCasting = 1
}
(*temporary) = nil
(*temporary) = " / "
(*temporary) = nil
(*temporary) = "attempt to concatenate field 'healthmax' (a nil value)"
Report comment to moderator  
Reply With Quote
Unread 04-16-10, 08:31 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Heya; Update to 5.11.3

Originally posted by whitemandan89
hi...
since tidy plates 5.11.2 i get some of these errors

Code:
Message: Interface\AddOns\TidyPlatesKnurl\theme.lua:5: attempt to concatenate field 'healthmax' (a nil value)
Time: 04/16/10 22:52:21
Count: 4
Stack: Interface\AddOns\TidyPlatesKnurl\theme.lua:5: in function `SetSpecialText'
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:126: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:102>
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:283: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:278>
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:358: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:358>

Locals: unit = <table> {
 isCasting = 1
}
(*temporary) = nil
(*temporary) = " / "
(*temporary) = nil
(*temporary) = "attempt to concatenate field 'healthmax' (a nil value)"
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 04-17-10, 10:54 AM  
whitemandan89
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
yeah updated to 5.11.3 and still get errors
Code:
Message: Interface\AddOns\TidyPlatesKnurl\theme.lua:5: attempt to concatenate field 'healthmax' (a nil value)
Time: 04/17/10 18:33:27
Count: 2
Stack: Interface\AddOns\TidyPlatesKnurl\theme.lua:5: in function `SetSpecialText'
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:128: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:104>
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:286: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:281>
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:371: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:371>

Locals: unit = <table> {
 isCasting = 1
}
(*temporary) = nil
(*temporary) = " / "
(*temporary) = nil
(*temporary) = "attempt to concatenate field 'healthmax' (a nil value)"
Report comment to moderator  
Reply With Quote
Unread 04-17-10, 11:55 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Aright, it looks like a problem with the castbars; I'll probably have an update posted in an hour or so.

Originally posted by whitemandan89
yeah updated to 5.11.3 and still get errors
Code:
Message: Interface\AddOns\TidyPlatesKnurl\theme.lua:5: attempt to concatenate field 'healthmax' (a nil value)
Time: 04/17/10 18:33:27
Count: 2
Stack: Interface\AddOns\TidyPlatesKnurl\theme.lua:5: in function `SetSpecialText'
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:128: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:104>
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:286: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:281>
Interface\AddOns\TidyPlates\TidyPlatesCore.lua:371: in function <Interface\AddOns\TidyPlates\TidyPlatesCore.lua:371>

Locals: unit = <table> {
 isCasting = 1
}
(*temporary) = nil
(*temporary) = " / "
(*temporary) = nil
(*temporary) = "attempt to concatenate field 'healthmax' (a nil value)"
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 04-19-10, 02:00 AM  
whitemandan89
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
yeah.... that was very helpful ... thank you
Report comment to moderator  
Reply With Quote
Unread 04-29-10, 07:54 PM  
The Brain
A Kobold Labourer

Forum posts: 0
File comments: 13
Uploads: 0
Is there a way to code in reducing the scale of the bars for pets/minions/army of the undead? This is my favorite theme so far, so this would be icing on the cake.
Report comment to moderator  
Reply With Quote
Unread 04-30-10, 04:40 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Hey there!

In the theme.lua file, add this:

Code:
function config.SetScale(unit)
	if unit.reaction == "FRIENDLY" and unit.type == "NPC" then return .75
	else return 1 end
end
You can play around with the .75 scale, obviously. This will scale all friendly npcs. Another way to do it would be to create a list that referenced the unit.name value... but that'd be a lot of work.

Code:
local FilterOutMobs = {
	["Mob Name"] = true,
	["Another Mob Name"] = true,
	-- Etc, etc..
}
function config.SetScale(unit)
	if FilterOutMobs[unit.name] then return .75
	else return 1 end
end
Originally posted by The Brain
Is there a way to code in reducing the scale of the bars for pets/minions/army of the undead? This is my favorite theme so far, so this would be icing on the cake.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 08-28-10, 06:08 PM  
rach3l
A Kobold Labourer

Forum posts: 1
File comments: 11
Uploads: 0
changing targa textures

This is the best tidyplates theme I've seen yet. I love the health display integration, particularly as a tank! (and as dps it assists in getting KBs for my warrior and priest, which are nice for triggering kb-procced abilities in PVE). My question is this:

I dislike the checkered texture on the nameplates and would prefer a nice gradient look. I went into the knurl folder and edited three of the image files in photoshop to look how I'd prefer them to look: eliteborder.tga, glow.tga, and nonborder.tga. These are the only files I could see that had a checkered pattern on them. However, the plates in game are still checkered!

I exclusively re-used colors that were already part of the images, as well. It's all grayscale except for the elite star, which is yellow.

Is there something I'm missing?
Last edited by rach3l : 08-28-10 at 06:09 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: