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,495
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, 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, 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, 08:36 AM  
Finnegan
A Kobold Labourer
AddOn Author - Click to view AddOns

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

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?
Report comment to moderator  
Reply With Quote
Unread 11-21-10, 03:18 AM  
ffxiedyn
A Chromatic Dragonspawn
 
ffxiedyn's Avatar

Forum posts: 165
File comments: 87
Uploads: 1
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.
Report comment to moderator  
Reply With Quote
Unread 11-21-10, 02:09 AM  
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 851
File comments: 127
Uploads: 9
~600 lines of code. oO
Nice work
Last edited by Duugu : 11-21-10 at 02:09 AM.
Report comment to moderator  
Reply With Quote
Unread 11-21-10, 01:01 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Send you a PM, too; I made those simple changes. Let me know if it works. ;-)

Originally posted by DemonFist
Any chance of Clique support in the near future?
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-21-10, 01:00 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
One fine user pointed me to a thread with instructions for connecting frames to Clique. There were two methods. I chose the dirt easy one (two stinkin lines of code). I'm not sure if it will work perfectly, but I'll let you test it out.

Originally posted by shegeek
these frames are gorgeous <3 ......sucks that i swear by Clique *le tear* maybe in the future
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-21-10, 12:23 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Re: possible bug, and feature request

Did you grab 0.3? I'd started having trouble after last Tuesday where my frames would become inactive after switching specs. (Couldn't click, and not updating) Seems related. I made some changes which I expected would correct the issue.

I didn't include code to hide the standard party frames because I'd been using a little addon to do that for quite a while (when I'd been using Grid). But, you're right, I should include that in this addon.

Originally posted by shmeek
I loaded these up today for the first time, and in a 5 man group i couldn't click on the middle three unit squares. They were also not updating health or buffs on these three.

has this been reported before? is there anything i am missing (like turning off interface elements etc) before using these raid frames?

I also noticed that my regular party frames (which i setup to look like the new blizz raid frames) are not hiding when I use these raid frames. Again, am I missing something, or can a feature be added to hide blizzard party/raid frames completely so as to only be able to use these raid frames?

thanks, and nice work !
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-20-10, 03:43 PM  
shmeek
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
possible bug, and feature request

I loaded these up today for the first time, and in a 5 man group i couldn't click on the middle three unit squares. They were also not updating health or buffs on these three.

has this been reported before? is there anything i am missing (like turning off interface elements etc) before using these raid frames?

I also noticed that my regular party frames (which i setup to look like the new blizz raid frames) are not hiding when I use these raid frames. Again, am I missing something, or can a feature be added to hide blizzard party/raid frames completely so as to only be able to use these raid frames?

thanks, and nice work !
Report comment to moderator  
Reply With Quote
Unread 11-20-10, 02:53 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Hey, if you happen to see something about how to make the frames visible to Clique, I'd be happy to take a quick look.

Originally posted by shegeek
these frames are gorgeous <3 ......sucks that i swear by Clique *le tear* maybe in the future
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-20-10, 01:57 PM  
shegeek
A Defias Bandit
 
shegeek's Avatar

Forum posts: 2
File comments: 33
Uploads: 0
these frames are gorgeous <3 ......sucks that i swear by Clique *le tear* maybe in the future
Report comment to moderator  
Reply With Quote
Unread 11-17-10, 08:42 PM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
About my earlier response; I don't mean to be negative. It's just that I've got a lot on my plate, and to invest time implementing something that I'll never use seems like bad time management.

That said, I did a quick search for adding Clique support, but the current Wowinterface and Curse pages make no mention about how authors can interface their frames. So here's the deal: If you can find something about adding support, send it to me via PM or post it up here on the comments. If the changes will only take a few minutes, I'll add it. ;-)

Originally posted by DemonFist
Any chance of Clique support in the near future?
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Last edited by danltiger : 11-17-10 at 08:43 PM.
Report comment to moderator  
Reply With Quote
Unread 11-17-10, 11:30 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
Sorry, but it's probably not in the cards; I use mouseover macros. Feel fee to mod the code, though.

Originally posted by DemonFist
Any chance of Clique support in the near future?
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Unread 11-17-10, 11:07 AM  
DemonFist
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
Any chance of Clique support in the near future?
Report comment to moderator  
Reply With Quote
Unread 11-17-10, 10:16 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1522
Uploads: 13
It can display any aura, but you'll have to edit the lua to indicate the name and color.

Originally posted by Papoye
Does he show dispellable debuff?
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: