Download
(21Kb)
Download
Updated: 01-15-14 06:50 AM
Pictures
File Info
Updated:01-15-14 06:50 AM
Created:11-17-10 12:15 AM
Downloads:7,510
Favorites:74
MD5:

Shot Glass Raid Frames  Popular! (More than 5000 hits)

Version: 3.2
by: danltiger, Pinghansen

Shot Glass is a lightweight raid frame, which can be configured to show specific Aura Indicators, in addition to Health, Incoming Healing, Mana, Aggro, Range, and Target.

No Libraries are used, and the code is very simple, which makes it a nice learning tool for people who are learning to program their own raid frames.

Feature Highlights

  • Incoming Heals: You'll see incoming heals as a subtle, semi-transparent bar, indicating the future health of the unit.
  • Aura Indicators: Along the top edge of each unit frame, there are three circular indicators. On the bottom edge, there are three triangular indicators. Stacks are displayed below the indicator.
  • Aggro Indicator: A red border will light up around any unit that acquires aggro.
  • Range: Units out of your range will shrink in size.
  • Mana: Only mana is indicated; Rage, Runic Power, Energy, etc are not shown.

Aura Configuration
I've included two configuration files with the current package. (For Druid and Priest) Feel free to use those files as a template for your own customization.

The configuration file is simply an addon with "## Dependencies: ShotGlass" in the TOC file. You can access the 'TrackedAuras' table from your LUA file. Alternatively, you can edit the included file. An example:

Code:
local TrackedAuras = ShotGlassRaidFrames.TrackedAuras

TrackedAuras[GetSpellInfo(774)] = {position = 1, color = {r = .8,g = 0, b = .8, a = 1},}		-- Rejuvenation
TrackedAuras["Rejuvenation"] = {position = 1, color = {r = .8,g = 0, b = .8, a = 1},}
Note: You can find the spell ID# from Wowhead.

Character Profiles
The "Addon" button on your Character Selection Screen will allow you to Enable or Disable the Aura List for each character.




I'm not going to bug you by popping up an ad whenever you hit "Download". If you enjoy this addon and want to send a monetary "Thank You", please visit our Pledgie page by clicking on the button, above.

3.1:
- TOC Bump

3.0:
- Updated for MoP

2.3:
- Tracked auras can now be assigned a custom function for color and stack text. (See ShotGlass_Druid for an example)
- Delegate functions are passed a table, 'aura', containing information about the evaluated aura: aura.color, aura.stacks, aura.expiration, aura.position, aura.name
- Changed font to Blizzard's Arial Narrow. This will make life easier for international clients, and reduces the whole ZIP package to 15kb.
- Command line has returned: /shotglass [show|hide|lock|unlock]

2.1 & 2.2:
- Trying to fix the overlap bug. I've disabled the option for the frames to grow to the right, until it's fixed.

2.0:
+ TOC Bump for 4.3
+ Auras will display a countdown from 5 seconds (it will replace stack-count text, temporarily)
+ Added GUI Interface panel
+ Added quick link to interface panel, via right-click on the drag handle
- Removed slash commands, except for /shotglass (which will bring up the new interface panel)

1.15:
Merely a TOC bump for 4.2

1.14:
DUH! When you bump the TOC, then you should do it correctly. /facepalm

1.13:
Merely a TOC bump for 4.1

1.12:
Bug Fix: Priority bug.
Integrated ShotGlass_Priest.

1.11:
Implemented slash-commands. See readme.txt for a list of commands.

0.10:
Bug Fix: Priority Bug.

0.9:
Added Vehicle Support, Spell Priority, External Configuration for Auras.

0.4-0.8:
Clique Support, Bug fixes, Incoming Heals.

0.3:
Bug Fix: Certain events reset the attributes of the unit frame, breaking the link. This update will restore those links when attributes are changed.
Optional Files (2)
File Name
Version
Size
Author
Date
Type
0.3
893B
04-27-11 12:38 PM
Addon
0.3
1kB
02-13-11 04:47 PM
Addon


Post A Reply Comment Options
Unread 11-21-10, 09:06 AM  
DemonFist
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
Tried out clique support on my Druid. Seems to be working ok. I'll do more testing and report back as I've only tried it solo. I'll test party and raid as well.

Thanks for the Clique support,

Demon
Report comment to moderator  
Reply With Quote
Unread 11-21-10, 11:22 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Add this line near the end of the file:

ShotGlass:SetScale(2)

... where "2" stands for the scale multiplier. 2 = 200% size.

If you've never worked with LUA before, here's a tip: You can edit the file while the game is running by alt-tabbing, and then use the command '/reload' to apply the changes.

Originally posted by ffxiedyn
Beautiful eye candy and work.

Could you please tell me if I am able to scale it larger in the lua, and if so, which line I change to do so?

I know nothing about lua, thanks.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-21-10, 11:25 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Re: Awesome

Hmm... that's odd. My main is a druid, and I made this specifically so that I'd be able to see my HoTs. (You can add and remove auras to track by opening up the LUA file, and looking for...

Code:
local auralist = {
The lines following that define the auras, position, and colors.

What language client are you using? Perhaps the names of the auras are different between my client and yours.

Originally posted by Finnegan
I felt in love with this the first time I saw it. Nice work.

Sadly I can't see any of my droodhots... what am I doing wrong?
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-21-10, 11:26 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
And thank you for the info. Hopefully it works fine in party/raid modes.

Originally posted by DemonFist
Tried out clique support on my Druid. Seems to be working ok. I'll do more testing and report back as I've only tried it solo. I'll test party and raid as well.

Thanks for the Clique support,

Demon
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-21-10, 02:51 PM  
Finnegan
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 21
Uploads: 1
Re: Re: Awesome

Originally posted by danltiger
Hmm... that's odd. My main is a druid, and I made this specifically so that I'd be able to see my HoTs. (You can add and remove auras to track by opening up the LUA file, and looking for...

Code:
local auralist = {
The lines following that define the auras, position, and colors.

What language client are you using? Perhaps the names of the auras are different between my client and yours.
You were right. Changed to the german locales and now it works like a charm.

Here they are:

["Verj\195\188ngung"] = {name = "Indicator1", color = {r = .8,g = 0, b = .8, a = 1},},
["Nachwachsen"] = {name = "Indicator2", color = {r = .2,g = 1, b = .4, a = 1},},

["Bl\195\188hendes Leben"] = {name = "Indicator3", color = {r = .6,g = 1, b = .1, a = 1},},
["Wildwuchs"] = {name = "Indicator4", color = {r = .2,g = 1, b = 1, a = 1},},

-- Debuff Types
Gift = {name = "Indicator5", color = {r = 0,g = .9, b = .1, a = 1},},
Fluch = {name = "Indicator4", color = {r = .9,g = 0, b = .7, a = 1},},
Magie = {name = "Indicator6", color = {r = 0,g = .3, b = .9, a = 1},},
Report comment to moderator  
Reply With Quote
Unread 11-21-10, 07:56 PM  
kalemeow
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
custom configs

is it possible to have custom user configs -- for specific auras and indicators -- split off to a different file so it's not overwritten when the mod is updated?

also, would it be possible to add a border around the black box as an indicator?

otherwise, so far so good. i like it! thank you!
Report comment to moderator  
Reply With Quote
Unread 11-22-10, 06:20 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Re: custom configs

What I'll do is expose any configuration variables globally, somehow. Then, you just create a mini addon (I'll probably provide the files in this package) in your Addons folder, which would modify those variables.

There's already a border indicator outside the black box, technically. It's the aggro warning border. It sounds like it'd make sense for me to put that under the Indicators table.

Originally posted by kalemeow
is it possible to have custom user configs -- for specific auras and indicators -- split off to a different file so it's not overwritten when the mod is updated?

also, would it be possible to add a border around the black box as an indicator?

otherwise, so far so good. i like it! thank you!
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-22-10, 09:11 AM  
DemonFist
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
Ok,

So I've done extensive testing yesterday via Party, Raid and BG's with my druid and I've had no issues with Clique support.

Thanks again for such a refreshing mod. I do have a few things after using it for 6 straight hours that I would like to request.

1. Would it be possible to widen the unit frames a little more without breaking the art? I would like a little larger click area for those frantic times. Also having a little more of the name would be great as well. I know there is a scale, but that doesn't achieve what I want :P

2. Having the option to allow the frames to grow up instead of down

3. A way to allow 2 (5 man) groups per row.

4. A way to hide the mover, or lock the frames.

5. Incoming heals. (I know it's in the works/to do)

6. I think using the Spell ID's instead of aura names so that client localization is not a factor.

7. Spell duration timers. (Example: for Rejuv have the time left digits above the indicator outside the health bar). If the indicator is on the bottom then below and outside, etc. I know with Lifebloom you have text attached to buffs. If this requires allot of code to find out what's glpyhed etc, to find spell time then it might not be worth it.

Not really a request as I can change it, But I would almost rather have the bottom middle indicator be a red triangle for threat and have the background glow affect for Magic, Poison and Curse debuff's. That would free up 2 more indicators on the bottom for buffs, etc. And set a priority list of the debuff glow to things you can remove first.


Now to the things I love so far about this mod.

a. I love the change of scale when people are out of range instead of the normal alpha change. I noticed in BG's that it also reduces scale when your CC'ed (IE Silenced) very nice.

b. It's a very nice set of unit frames. Nice looking with allot possibility, and I love that it's very cheap on resources. Please keep it simple as it currently is.

c. The Aura indicators are bright and very easy to see at a glance. Fantastic!

Again thanks for the time you've spent on this mod and so far it's replaced Vuhdo for me.

Demon
Last edited by DemonFist : 11-22-10 at 09:48 AM.
Report comment to moderator  
Reply With Quote
Unread 11-22-10, 05:01 PM  
idostyle
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 3
Uploads: 1
Nice addon

Code:
-- Priest Auras
[GetSpellInfo(1706)] = {name = "Indicator1", color = {r = 1,g = 1, b = 1, a = 1},}, -- Levitate
[GetSpellInfo(6346)] = {name = "Indicator1", color = {r = 0,g = 0, b = 0, a = 1},}, -- Fear Ward
[GetSpellInfo(139)] = {name = "Indicator1", color = {r = .2,g = 1, b = 1, a = 1},}, -- Renew
[GetSpellInfo(47515)] = {name = "Indicator1", color = {r = 0,g = 0, b = 1, a = 1},}, -- Divine Aegis
[GetSpellInfo(17)] = {name = "Indicator2", color = {r = .2,g = 1, b = .2, a = 1},}, -- Power Word: Shield
[GetSpellInfo(6788)] = {name = "Indicator3", color = {r = .8,g = 0, b = .8, a = 1},}, -- Weakened Soul
[GetSpellInfo(81662)] = {name = "Indicator5", color = {r = 0.9,g = 0.9, b = 1, a = 1},}, -- Evangelism
[GetSpellInfo(47517)] = {name = "Indicator5", color = {r = 0.9,g = 0.9, b = 1, a = 1},}, -- Grace
[GetSpellInfo(33076)] = {name = "Indicator5", color = {r = .6,g = 1, b = .1, a = 1},}, -- Prayer of Mending
[GetSpellInfo(64844)] = {name = "Indicator5", color = {r = 1,g = 1, b = 0, a = 1},}, -- Divine Hymn
[GetSpellInfo(33206)] = {name = "Indicator5", color = {r = 1,g = 0, b = 0, a = 1},}, -- Pain Suppression

-- Debuff Types
--Poison = {name = "Indicator5", color = {r = 0,g = .9, b = .1, a = 1},},
--Curse = {name = "Indicator4", color = {r = .9,g = 0, b = .7, a = 1},},
Magic = {name = "Indicator6", color = {r = 0,g = .3, b = .9, a = 1},},
Disease = {name = "Indicator4", color = {r = .7,g = .7, b = 1, a = 1},},
Report comment to moderator  
Reply With Quote
Unread 11-22-10, 05:28 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Hey there Demon,

I'll respond to the other items, but #7 is the most interesting one, and something that you (and anyone else who might care) can participate.

I'd actually implemented timers at one point (It's trivial to find out the expiration time on an aura. There's an API function that will do it for you), but I felt that the frames looked too cluttered with all that text, which was opposite my goal. When I moved from Grid to Shot Glass, I missed the timers. But, I learned a different way of thinking about healing, and it actually became more fun to see patterns of damage rather than just responding to numbers. Certainly, I'm not advocating that everyone should "do it that way", but I'm just putting that out there.

Here's where we're going to brainstorm; Can we implement timers without cluttering things up? Personally, I'd like to know when my Lifebloom is going to expire. (I could live without any of the other ones) I'm guessing that each healer class has one very important aura that they need to track, which makes me wonder if it would be cool to implement a clock-handish graphic in the center of the nameplate, which could track a single aura timer. Anyway, that's just an example of the kind of ideas that I'd like to generate. The example might not be a very good idea, but I'd like to explore unconventional/novel solutions.

Originally posted by DemonFist
7. Spell duration timers. (Example: for Rejuv have the time left digits above the indicator outside the health bar). If the indicator is on the bottom then below and outside, etc. I know with Lifebloom you have text attached to buffs. If this requires allot of code to find out what's glpyhed etc, to find spell time then it might not be worth it.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Last edited by danltiger : 11-22-10 at 05:29 PM.
Report comment to moderator  
Reply With Quote
Unread 11-22-10, 05:30 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Thanks 'style!

Originally posted by idostyle
Nice addon

Code:
-- Priest Auras
[GetSpellInfo(1706)] = {name = "Indicator1", color = {r = 1,g = 1, b = 1, a = 1},}, -- Levitate
[GetSpellInfo(6346)] = {name = "Indicator1", color = {r = 0,g = 0, b = 0, a = 1},}, -- Fear Ward
[GetSpellInfo(139)] = {name = "Indicator1", color = {r = .2,g = 1, b = 1, a = 1},}, -- Renew
[GetSpellInfo(47515)] = {name = "Indicator1", color = {r = 0,g = 0, b = 1, a = 1},}, -- Divine Aegis
[GetSpellInfo(17)] = {name = "Indicator2", color = {r = .2,g = 1, b = .2, a = 1},}, -- Power Word: Shield
[GetSpellInfo(6788)] = {name = "Indicator3", color = {r = .8,g = 0, b = .8, a = 1},}, -- Weakened Soul
[GetSpellInfo(81662)] = {name = "Indicator5", color = {r = 0.9,g = 0.9, b = 1, a = 1},}, -- Evangelism
[GetSpellInfo(47517)] = {name = "Indicator5", color = {r = 0.9,g = 0.9, b = 1, a = 1},}, -- Grace
[GetSpellInfo(33076)] = {name = "Indicator5", color = {r = .6,g = 1, b = .1, a = 1},}, -- Prayer of Mending
[GetSpellInfo(64844)] = {name = "Indicator5", color = {r = 1,g = 1, b = 0, a = 1},}, -- Divine Hymn
[GetSpellInfo(33206)] = {name = "Indicator5", color = {r = 1,g = 0, b = 0, a = 1},}, -- Pain Suppression

-- Debuff Types
--Poison = {name = "Indicator5", color = {r = 0,g = .9, b = .1, a = 1},},
--Curse = {name = "Indicator4", color = {r = .9,g = 0, b = .7, a = 1},},
Magic = {name = "Indicator6", color = {r = 0,g = .3, b = .9, a = 1},},
Disease = {name = "Indicator4", color = {r = .7,g = .7, b = 1, a = 1},},
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-22-10, 06:52 PM  
JackOnTheMap
A Murloc Raider

Forum posts: 8
File comments: 147
Uploads: 0
Will these work only for raid frames or can they be enabled to work for 5-mans also?

I think I'd like to try them for healing in small groups also.
Report comment to moderator  
Reply With Quote
Unread 11-22-10, 08:44 PM  
DemonFist
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
JackOnTheMap,

Yes these work for 5 man parties and raids.

Originally posted by JackOnTheMap
Will these work only for raid frames or can they be enabled to work for 5-mans also?

I think I'd like to try them for healing in small groups also.
As far as the Aura timers,

I do agree I like the clean uncluttered look as it is. Maybe the art/shading background to the Mana bar, but that will not work without having a power/focus bar. I'll continue to think about it, but I really like the center area of the health bar be clear and uncluttered. Maybe the aura indicators themselves could be pie pieces that disappear as the time expires? Not sure if that would work as small as they currently are. Maybe another way would be to decrease the alpha of the indicator over time.

Demon
Last edited by DemonFist : 11-22-10 at 08:46 PM.
Report comment to moderator  
Reply With Quote
Unread 11-23-10, 05:15 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
They're On all the time; You'll see your own character even if you're not in a group. So, Yes. What Demon said.

Originally posted by JackOnTheMap
Will these work only for raid frames or can they be enabled to work for 5-mans also?

I think I'd like to try them for healing in small groups also.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-23-10, 05:17 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Alpha, size... we can change all of those things. The pie-piece idea might work. I'd like to get a few more ideas together, and I'll pick the best one and give it a shot. (When I get the time, that is)

Originally posted by DemonFist
JackOnTheMap,

Yes these work for 5 man parties and raids.



As far as the Aura timers,

I do agree I like the clean uncluttered look as it is. Maybe the art/shading background to the Mana bar, but that will not work without having a power/focus bar. I'll continue to think about it, but I really like the center area of the health bar be clear and uncluttered. Maybe the aura indicators themselves could be pie pieces that disappear as the time expires? Not sure if that would work as small as they currently are. Maybe another way would be to decrease the alpha of the indicator over time.

Demon
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: