Download
(70 Kb)
Download
Updated: 09-26-09 08:38 AM
Addon for:
Tidy Plates.
Pictures
File Info
Updated:09-26-09 08:38 AM
Created:07-18-09 01:08 PM
Downloads:4,485
Favorites:23
MD5:
Tidy Plates: Lucky Charms
Version: 5.2
by: danltiger [More]
This theme for Tidy Plates uses the Multi-Plate feature to set a custom graphical appearance for different types of units.

Friendly NPCs will have shamrocks, Friendly players have water droplets, and other units will have a heart. The heart for neutral units is scaled smaller than the graphic for hostile units. The casting bar is shaped like a little fireball. Neat, eh?

If you are looking for an example of how to create your own custom plates, this theme is a good place to start. No documentation is available, yet, but I'm working on it.
Archived Files (3)
File Name
Version
Size
Author
Date
5.0.1
70kB
danltiger
08-04-09 05:33 PM
5
70kB
danltiger
08-01-09 10:35 PM
1
70kB
danltiger
07-18-09 01:08 PM


Post A Reply Comment Options
Old 10-31-09, 07:03 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1497
Uploads: 21
Pardon me if I write stuff that you already know...

The "local config = {}" is there to create a table/array, and store the pointer in "config". Since "config" is a local variable, it won't continue outside the scope of the file. So, each file can have its own variable named, "config". We're just using it to temporarily hold a pointer, before we transfer that value to the ThemeList.

Delete out all function declaration for SetSpecialText in your high, low, medium, and normal styles, and paste the function into your TidyPlatesThreat file. Then, you'll add a line like this (likely, next to your StyleDelegate reference):

TidyPlatesThemeList["ThreatPlates"].SetSpecialText = SetSpecialText

It worked for me, so I could send you the files, if need be.

Originally posted by suicidalkatt
What would the "local config" be set to since it's now in the theme lua?
danltiger is offline Report comment to moderator  
Reply With Quote
Old 10-31-09, 04:02 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1374
Uploads: 60
Originally posted by danltiger
I peeked at Threatplates..

Here's the problem: The SetSpecialText function is part of the base theme, not each style. So, you'd set one SpecialText function in the "TidyPlatesThreat.lua" file.
What would the "local config" be set to since it's now in the theme lua?
Last edited by suicidalkatt : 10-31-09 at 04:05 PM.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 10-31-09, 12:55 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1497
Uploads: 21
I peeked at Threatplates..

Here's the problem: The SetSpecialText function is part of the base theme, not each style. So, you'd set one SpecialText function in the "TidyPlatesThreat.lua" file.

The hierarchy:
  • ["Theme"] (Multi-style)
  • SetStyle()
  • SetSpecialText()
  • SetSpecialImage()
  • ["Style1"] (ex. low, medium, or high)
  • Style data (No functions, just the appearance)
  • ["Style2"]
  • More Styles

and, for reference...
  • ["Theme"] (Single Style)
  • SetSpecialText()
  • SetSpecialImage()
  • Style Data


Originally posted by suicidalkatt
Yea I have them active and should be showing but they're simply not?

I really have no idea why it's not working.
danltiger is offline Report comment to moderator  
Reply With Quote
Old 10-31-09, 04:07 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1374
Uploads: 60
Originally posted by danltiger
How about setting ShowSpecialText = true in each of the theme files? I got the special text to show up (in Lucky Charms) by changing just those two values.
Yea I have them active and should be showing but they're simply not?

I really have no idea why it's not working.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 10-30-09, 07:55 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1497
Uploads: 21
How about setting ShowSpecialText = true in each of the theme files? I got the special text to show up (in Lucky Charms) by changing just those two values.

Originally posted by suicidalkatt
I've had it like that before and I still wasn't getting my SpecialText showing.
Any ideas?

I'll update my "Threat Plates" which is my multiplate theme with what SHOULD have my SpecialText but doesn't seem to be working.
danltiger is offline Report comment to moderator  
Reply With Quote
Old 10-30-09, 06:56 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1374
Uploads: 60
Originally posted by danltiger
Code:
function config.SetSpecialText(unit)
	return unit.health.." / "..unit.healthmax
end
I've had it like that before and I still wasn't getting my SpecialText showing.
Any ideas?

I'll update my "Threat Plates" which is my multiplate theme with what SHOULD have my SpecialText but doesn't seem to be working.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 10-30-09, 05:21 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1497
Uploads: 21
You need to 'attach' the function to the theme table. Take a peek at one of the other themes (like Knurl).

Code:
function config.SetSpecialText(unit)
	return unit.health.." / "..unit.healthmax
end
The pointer to the function gets stored under config.SetSpecialText, where 'config' is just the local name for the table that will be passed to the theme list.

Originally posted by suicidalkatt
function SetSpecialText(unit)
return "test"
end

?

I can't seem to find the right name for the function. I still get nothing for my special texts.
danltiger is offline Report comment to moderator  
Reply With Quote
Old 10-30-09, 02:48 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1374
Uploads: 60
Originally posted by danltiger
You'd have to 1) write a SetSpecialText() function for the theme, and 2) enable the special text for each plate style (ie. options.showSpecialText = true) that you want it to affect.
function SetSpecialText(unit)
return "test"
end

?

I can't seem to find the right name for the function. I still get nothing for my special texts.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 10-29-09, 06:57 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1497
Uploads: 21
You'd have to 1) write a SetSpecialText() function for the theme, and 2) enable the special text for each plate style (ie. options.showSpecialText = true) that you want it to affect.

Originally posted by suicidalkatt
How would one get special text working for this?!
danltiger is offline Report comment to moderator  
Reply With Quote
Old 10-29-09, 02:30 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 308
File comments: 1374
Uploads: 60
How would one get special text working for this?!
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 08-06-09, 06:25 AM  
borgi
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Doh! Thanks alot! Works nicely.
borgi is offline Report comment to moderator  
Reply With Quote
Old 08-05-09, 11:49 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1497
Uploads: 21
Heya Borgi,

The 'showName' tag needs to be set in the .options category..

Code:
config.options = {
	......
	showName = true,
}
See if that works for ya :-)

Originally posted by borgi
Hi there!

Great template. I really like the change of the mood ingame by using this theme

In order to find a nice skin for tanks (as small as possible with as much information as possible), I try to include names of NPCs to the Lucky Charms. Looks like I am too stupid to do so...
......

Thanks!
danltiger is offline Report comment to moderator  
Reply With Quote
Old 08-05-09, 11:15 AM  
borgi
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Hi there!

Great template. I really like the change of the mood ingame by using this theme

In order to find a nice skin for tanks (as small as possible with as much information as possible), I try to include names of NPCs to the Lucky Charms. Looks like I am too stupid to do so...

I reused the code

Code:
config.name = {
	typeface =					path.."\\ARIAL.ttf",
	size = 8,
	width = 90,
	height = 13,
	x = 0,
	y = 10,
	align = "CENTER",
	anchor = "CENTER",
}
And included the arial.ttf in the directory of the lucky charms. My intention is to have small nameplates on top of the symbols. But they are not showing. Where is my mistake? Is there any hope for me?

Thanks!
borgi is offline Report comment to moderator  
Reply With Quote
Old 08-03-09, 09:23 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1497
Uploads: 21
Re: Re: Re: How to modify to like this?

Yep, that's what I was talking about in my previous post; I'm not sure if it's a bug with Blizzard's implementation of vertical statusbars, or if they intended it to function that way. Regardless, it's not something that I've be planning to address, since it would require creating a custom statusbar widget.

Originally posted by zokr7et
Thanks.
I add "orientation=vertical" to the healthbar section. BUT the heart look like this.

danltiger is offline Report comment to moderator  
Reply With Quote
Old 08-03-09, 07:48 PM  
zokr7et
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: How to modify to like this?

Originally posted by danltiger
Theoretically, you should be able to add "orientation=vertical" to the healthbar section of the theme.

One problem: the way that Blizz handles vertical status-bars is different from the way that they handle horizontal; With horizontal bars, the texture coordinates are modified so that the edge of the bar crops the texture as it moves. However, with vertical bars, the opposite (stationary) edge is cropped, so it looks like the texture is being shifted down. This means that vertical bars look proper only for square status-bars. (At least, that's how I understand it)
Thanks.
I add "orientation=vertical" to the healthbar section. BUT the heart look like this.

__________________
Last edited by zokr7et : 08-03-09 at 07:50 PM.
zokr7et is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: