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 12-04-10, 12:19 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Oh, don't report yourself! lol

Just send a PM to Seerah, and ask her to remove that project. (Or maybe she could edit it to be an optional addon for Shot Glass)

Originally posted by enkil80
I tried and it wont let me because the other project its up, I reported myself to see if they take it down, in the meanwhile if you want you can copy paste the info, I did nothing lol just added the spell id order
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 11:17 PM  
enkil80
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 22
Uploads: 1
Originally posted by danltiger
Very cool! Thanks!

What you might want to do is change the project settings (or reupload) to appear as an optional file for Shot Glass. If you click the Optional Files tab, you'll see that there's a list of a few files that have been uploaded already. It makes it easier for people to find your plugin, and easier for the people who've already found it to find Shot Glass.
I tried and it wont let me because the other project its up, I reported myself to see if they take it down, in the meanwhile if you want you can copy paste the info, I did nothing lol just added the spell id order
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 08:15 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Re: Fear, possession and frame color

Try it out! Let us know how it turns out!

I like keeping my border frame free for aggro watch, since I do a bit of tanking. (And healing, obviously)

Originally posted by Pinghansen
While I'm eagerly awaiting the good folks at wowinterface to approve the release of 0.9, I have a few thoughts I'd like some feedback on:

How about turning the frame border green or blue (unfortunately yellow is spoken for ), when the unit is feared? The rationale for prioritizing fear like this, is that if we are in an area with multiple mob groups, the feared unit is about to take massive damage, or possibly provoke a wipe. It's merely annoying if you are feared by King Krush, but if a unit is feared when you are going after Jammal the Prophet in Sunken Temple, he/she is most likely dead.

Possession might, in some situations, rate the same treatment.

Lastly, I'm considering altering my copy to displaying magic, disease, poison and curse by changing the frame color, like decursive or healbot does. While this is a massive prioritizing, those debuffs are potentially lethal and easily handled. Is this overkill and are the present debuff indicators the way to go, or will this make the debuff indicators free for other purposes?

And if change my copy to decursive behavior, should I limit it to those the class can actually handle (disease and magic for a prist)? Come to think of it, most classes can in fact handle poison or disease with the right potions.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 08:12 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Re: Wowinterface v/s curse

Curse got the initial release of Shot Glass, even before I posted on Wowinterface. Not sure why I did that. I try to keep it up to date. Generally, the folks here at WoW-I approve my files MUCH faster than Curseforge. (Sometimes I'll have to wait over 9 hours, over there)

Anyway, I have both Wowinterface and Curse notifying me via email, which ends up on my phone. So I get to read all of your comments during the day. Occasionally, I'll respond if there's a problem, but it's a pain to type on these little keyboards. And, if I do respond, it'll be via Wowinterface, because Curse's comment system doesn't get along with the phone's browser.

Originally posted by Pinghansen
Both sites have their advantages. Communication and user participation is much easier on Wowinterface.

But please don't forget to keep both curse and curseforge current on releases.

I've noticed that several addon authors have disabled comments on curse and mention in the description that (link to some other site) is where to go for comments/participation. If you do that, you will only have to handle comments on one site.

You can set up wowinterface to e-mail you whenever a comment is posted. What this system doesn't handle, is edits - those you won't see, unless you read the comments here.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 08:03 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Re: Uploaded optional files

You're probably right. ;-)

My own ICC stuff in the ShotGlass_Druid file is there because it's part of my setup, and it serves as an example.

Originally posted by Pinghansen

I feel that the ICC auras should not be contained in any of the class sets.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 08:00 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Very cool! Thanks!

What you might want to do is change the project settings (or reupload) to appear as an optional file for Shot Glass. If you click the Optional Files tab, you'll see that there's a list of a few files that have been uploaded already. It makes it easier for people to find your plugin, and easier for the people who've already found it to find Shot Glass.

Originally posted by enkil80
added the shaman ones, tnx for the addon man, it rocks.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 07:58 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

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

It was me. I was missing this:

Code:
priority[aura.position] = aura.priority
Originally posted by Pinghansen
There seems to be something wrong with priorities - or with my set of priest auras.

I have an aura (Power Word: Shield) with a higher priority (2) being suppressed by a debuff (Weakened Soul) with a lower priority (1). When I cast PW:S, I see the white indicator, which almost immediately is being replaced with the blue Weakened Soul indicator. When Weakened Soul runs out, the white PW:S indicator comes back.

The priority code in ShotGlass looks correct, so WTF am I doing wrong?
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 04:06 PM  
enkil80
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 22
Uploads: 1
added the shaman ones, tnx for the addon man, it rocks.
Last edited by enkil80 : 12-03-10 at 04:43 PM.
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 11:05 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Question Priorities

There seems to be something wrong with priorities - or with my set of priest auras.

I have an aura (Power Word: Shield) with a higher priority (2) being suppressed by a debuff (Weakened Soul) with a lower priority (1). When I cast PW:S, I see the white indicator, which almost immediately is being replaced with the blue Weakened Soul indicator. When Weakened Soul runs out, the white PW:S indicator comes back.

The priority code in ShotGlass looks correct, so WTF am I doing wrong?
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 09:56 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Priest spells 0.2 uploaded

There was an error in the .toc of the 0.1 version of the priest set. That has been corrected and a new file has been uploaded.

What happened, is that I changed the .toc after I tested the addon, and didn't retest it prior to uploading it. Oops
Last edited by Pinghansen : 12-03-10 at 12:42 PM.
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 08:11 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Uploaded optional files

Originally posted by danltiger
External Aura Configuration
Nice

I have uploaded two sets of auras: a set of priest spells in ShotGlass_Priest and the ICC auras in ShotGlass_ICC.

I feel that the ICC auras should not be contained in any of the class sets.
Last edited by Pinghansen : 12-03-10 at 09:57 AM.
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 05:56 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Exclamation Wowinterface v/s curse

Originally posted by danltiger
And that's why I host on Wowinterface
Both sites have their advantages. Communication and user participation is much easier on Wowinterface.

But please don't forget to keep both curse and curseforge current on releases.

I've noticed that several addon authors have disabled comments on curse and mention in the description that (link to some other site) is where to go for comments/participation. If you do that, you will only have to handle comments on one site.

You can set up wowinterface to e-mail you whenever a comment is posted. What this system doesn't handle, is edits - those you won't see, unless you read the comments here.
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 05:39 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Question Fear, possession and frame color

While I'm eagerly awaiting the good folks at wowinterface to approve the release of 0.9, I have a few thoughts I'd like some feedback on:

How about turning the frame border green or blue (unfortunately yellow is spoken for ), when the unit is feared? The rationale for prioritizing fear like this, is that if we are in an area with multiple mob groups, the feared unit is about to take massive damage, or possibly provoke a wipe. It's merely annoying if you are feared by King Krush, but if a unit is feared when you are going after Jammal the Prophet in Sunken Temple, he/she is most likely dead.

Possession might, in some situations, rate the same treatment.

Lastly, I'm considering altering my copy to displaying magic, disease, poison and curse by changing the frame color, like decursive or healbot does. While this is a massive prioritizing, those debuffs are potentially lethal and easily handled. Is this overkill and are the present debuff indicators the way to go, or will this make the debuff indicators free for other purposes?

And if change my copy to decursive behavior, should I limit it to those the class can actually handle (disease and magic for a prist)? Come to think of it, most classes can in fact handle poison or disease with the right potions.
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 02:25 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
And that's why I host on Wowinterface. ;-) Loads more traffic on Curse... but the folks here seem to be more helpful.

Originally posted by Sarieth
You guys rock, thanks!
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 12-03-10, 02:19 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Version 0.9 changes a few things:

Vehicle Health
Duh

Spell Priority
This is not required in the aura list, but can be added by putting a ".priority" value onto your auras in the aura table.

Example:
Code:
TrackedAuras[GetSpellInfo(774)] = {position = 1, priority = 50, color = {r = .8,g = 0, b = .8, a = 1},}
External Aura Configuration
No changes were required to implement this (you could have done this on a few earlier versions), but here's how it works: You create an addon with "## Dependencies: ShotGlass" in the TOC file. Then, you can access the TrackedAuras table in the LUA file for that addon.

Example:
Code:
local TrackedAuras = ShotGlassRaidFrames.TrackedAuras

TrackedAuras[GetSpellInfo(774)] = {position = 1, color = {r = .8,g = 0, b = .8, a = 1},}		-- Rejuvenation
I've included my own configuration with the current package. My hope is for you guys to create these third party configurations, and either send them to me, or submit them as your own "Optional File". Eventually, these optional files will serve for more than just adding auras, but we're going to take this in baby steps.

An advantage to this method: There's a built-in tool for users to turn enable/disable the aura lists, per character.... The "Addon" button on your Character Selection Screen.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Last edited by danltiger : 12-03-10 at 02:27 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: