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-24-10, 12:28 AM  
Backwoods
A Kobold Labourer

Forum posts: 1
File comments: 26
Uploads: 0
My only complaint with this addon, and it's not even really a complaint, is that there isn't a way to lock the frames or hide the drag button. I also second the use of spellIDs instead of spel names to make it a universal addon.

Aside from that, a raid frames addon like this has been a long time coming. Thanks.

There may be more when I get more play time on it, but it would likely be just tuning.
Report comment to moderator  
Reply With Quote
Unread 11-24-10, 12:59 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
I'm not really planning on going through each class and adding their spells; I think that's personal preference, y'know? I've included the druid spells as I play them as an example. You could replace the English names with the GetSpellID return value, as seen a few comments below.

Ex:
Code:
[GetSpellInfo(1706)] = {name = "Indicator1", color = {r = 1,g = 1, b = 1, a = 1},}, -- Levitate
Anyhow, thanks for the feedback!

Originally posted by Backwoods
My only complaint with this addon, and it's not even really a complaint, is that there isn't a way to lock the frames or hide the drag button. I also second the use of spellIDs instead of spel names to make it a universal addon.

Aside from that, a raid frames addon like this has been a long time coming. Thanks.

There may be more when I get more play time on it, but it would likely be just tuning.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-26-10, 06:42 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Version 0.6 is up, with Heal Prediction.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-27-10, 06:45 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Very nice looking frameset! Simple functionality with pleasing aesthetics. Same philosophy as oUF_Phanx and oUF_PredatorSimple. I've got to try this out

Originally posted by danltiger
I'd like to get a few more ideas together
Let the indicators blink, pulse, increase size, shift back and forth a few pixels, or even rotate when they are about to expire - well, rotating may not be that impressive for circles

e.g. increase size n seconds before expiration, then start blinking p seconds before.


How about pets? Some times the hunter pets can be important.
Report comment to moderator  
Reply With Quote
Unread 11-29-10, 09:02 AM  
Enthusia
A Defias Bandit

Forum posts: 2
File comments: 22
Uploads: 0
great addon!!

Hello there, thank you for such a great addon!

I would like to ask if there is any way that can set the layout?
i.e
say there is 40 ppl
on the screen it is showing 8 rows
wil it be possible to set row1 = group 1? under the lua file?

i've been looking into the file but got no idea where to config..sorry

Thanks!
Report comment to moderator  
Reply With Quote
Unread 11-29-10, 01:55 PM  
Backwoods
A Kobold Labourer

Forum posts: 1
File comments: 26
Uploads: 0
Been noticing this error repeatedly in BGs. Actually installed an error grabber because it was so spammy.

[14:28:29] Interface\AddOns\ShotGlass\ShotGlass.lua:52: attempt to index local 'text' (a nil value)
[C]: ?
Interface\AddOns\ShotGlass\ShotGlass.lua:52: in function <Interface\AddOns\ShotGlass\ShotGlass.lua:52>
Interface\AddOns\ShotGlass\ShotGlass.lua:256: in function <Interface\AddOns\ShotGlass\ShotGlass.lua:247>
Interface\AddOns\ShotGlass\ShotGlass.lua:225: in function `?'
Interface\AddOns\ShotGlass\ShotGlass.lua:291: in function <Interface\AddOns\ShotGlass\ShotGlass.lua:290>
Report comment to moderator  
Reply With Quote
Unread 11-29-10, 09:06 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Thanks for the ideas!

Originally posted by Pinghansen
Very nice looking frameset! Simple functionality with pleasing aesthetics. Same philosophy as oUF_Phanx and oUF_PredatorSimple. I've got to try this out



Let the indicators blink, pulse, increase size, shift back and forth a few pixels, or even rotate when they are about to expire - well, rotating may not be that impressive for circles

e.g. increase size n seconds before expiration, then start blinking p seconds before.


How about pets? Some times the hunter pets can be important.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-29-10, 09:14 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Re: great addon!!

In the ShotGlass.lua file, there's a function called, CreateGroupHeader(). It's near the end of the file. You'll notice that there's a whole lot of lines that start with, "RaidGroupHeader:SetAttribute..."

Take a look at this:

http://wowprogramming.com/docs/secur.../Group_Headers

You'll need to add your own SetAttribute commands to configure the sorting and grouping. It might be something as easy as:

RaidGroupHeader:SetAttribute("groupBy", "GROUP")

You'll have to play around with it; I don't know exactly how all of the attributes affect the header.

Originally posted by Enthusia

wil it be possible to set row1 = group 1? under the lua file?

i've been looking into the file but got no idea where to config..sorry
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-29-10, 09:14 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Fixed it, gotta upload it when I get home.

Originally posted by Backwoods
Been noticing this error repeatedly in BGs. Actually installed an error grabber because it was so spammy.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-30-10, 07:16 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Lightbulb Pets

I've been thinking about pet healing - it's mostly only an issue in groups. In raids it's normally the owner's own responsibility.

Perhaps the pets could be shown below the owner, when not in a raid.
Report comment to moderator  
Reply With Quote
Unread 11-30-10, 07:32 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Lightbulb Pets, again

Another possibility, is a horizontal bar below the owner frame, like the vertical mana bar. The small size would require precise mouse navigation for use with @mouseover or Clique, but would be low impact on the visual aesthetics.

Perhaps a slightly dim green bar for hunter pets, the remainder turning yellow at 50% health and bright red at 25%.

If you want to include other pets as well, a dim purple for demons, and a dim blue for waterspouts.
Report comment to moderator  
Reply With Quote
Unread 11-30-10, 09:49 AM  
Backwoods
A Kobold Labourer

Forum posts: 1
File comments: 26
Uploads: 0
Thanks for the fix. I'll have to test as soon as servers come online.
Report comment to moderator  
Reply With Quote
Unread 11-30-10, 08:11 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

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

I replied to your comment on Curse, but I'll post the response again, just so the Wowinterface folks know what's up:

I hate to admit it, but I don't know how to implement pets. I've heard that there's something called a SecureGroupPetHeader, but that's all I know. So, it's something that I'd have to read up and learn, and then I'd have to design the look, which all takes time. I just don't have a ton of time, so this is going to be a back-burner feature that I'll have to work on when I can.


PS - If you would, Let's have our discussions on Wowinterface rather than Curse; The comment system is much nicer, IMO.

Originally posted by Pinghansen
I've been thinking about pet healing - it's mostly only an issue in groups. In raids it's normally the owner's own responsibility.

Perhaps the pets could be shown below the owner, when not in a raid.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Last edited by danltiger : 11-30-10 at 08:13 PM.
Report comment to moderator  
Reply With Quote
Unread 12-01-10, 05:04 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Well, pets are NOT that important

Originally posted by danltiger
I hate to admit it, but I don't know how to implement pets
Fair enough I'll try to look into it myself IF I get the energy (I can be a bit fickle) and tell you what I come up with.

And please don't feel pressured to add anything, just because a user or two ask for this and that and everything - you'd loose the simplicity and the very soul of the addon. Nice to have v/s need to have.

Hunter pets are not that important (nice to have). What is more important (need to have) for general acceptance, is implementing spells for other healing classes than druids, like the priest healing spells I posted the other day. I myself love tinkering, but surprisingly many players have problems figuring out even how to install an addon, and wouldn't dream of altering even a single line of lua.

I think that you should put a short explanation of what goes where on the description page, like having the auras you have cast yourself on top and various debuffs on the bottom. E.g.
The three icons on top tell you which auras you have active on the player, left: Wildgrowth/Bloom/Thorns, middle: Regrowth, right:Rejuvenation. The three icons on the bottom show if certain debuffs that you should know about/cleanse are active - from left poison, curse and magic, plus a few selected ICC auras. You can easily add other auras/debuffs as you please by altering the code.
Naturally my regular unit frames addon has party frames, but I do find that I'm ignoring them in favor of the Shot Glass frames. I haven't done any healing yet with your frames loaded (I gave my account away right after 4.0.1 and started from scratch again), but it won't be long before I take the plunge - just need a few pieces of gear to make sure I can actually heal if attacked by anything else than a vanity pet
Last edited by Pinghansen : 12-01-10 at 10:49 AM.
Report comment to moderator  
Reply With Quote
Unread 12-01-10, 05:48 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Lightbulb Cooldown effects

Just came up with a few more ideas:

Perhaps the best and most simple way to implement priorities would be to define the priority of each TrackedAura and then in UnitEventHandlers.UNIT_AURA frame have a variable for each slot indicating the current active priority (reset to 0 before loop). If the priority of the aura we are looking at is higher than the current, then display it.

Filter out debuffs with insignificant duration - no need to waste mana on a short debuff, other than with things like fear.

If you decide to implement cooldown indication, other than with digits, you may want to expand TrackedAuras with one or two values (in seconds), like will-expire-soon and do-something-now.

Put a golden border around auras about to expire. Flash it, or change the border color to ?red?, when it has ?1? second left.

Increase the size of frames that have auras that are about to expire.

Flash the frame around frames that have auras that are about to expire.

Put a frame around (some?) stacked debufs (don't know the relevance of this).
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: