Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(21 Kb)
Download
Updated: 01-15-14 06:50 AM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Escalation (5.3)
Updated:01-15-14 06:50 AM
Created:11-17-10 12:15 AM
Downloads:4,442
Favorites:78
MD5:

Shot Glass Raid Frames

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


Archived Files (20)
File Name
Version
Size
Author
Date
3.1
21kB
danltiger
01-22-13 05:06 AM
3.0
21kB
danltiger
09-02-12 09:22 PM
2.3
14kB
danltiger
01-07-12 07:19 AM
2.2
80kB
danltiger
12-20-11 05:51 AM
2.1
80kB
danltiger
12-16-11 04:13 AM
2.0
80kB
danltiger
12-10-11 07:21 AM
1.15
87kB
danltiger
07-09-11 03:43 AM
1.14
87kB
danltiger
04-27-11 04:43 AM
1.13
87kB
danltiger
04-27-11 01:52 AM
1.12
85kB
danltiger
03-04-11 08:06 AM
1.11
83kB
danltiger
02-18-11 06:30 AM
0.10
76kB
danltiger
12-04-10 06:23 AM
0.9
76kB
danltiger
12-03-10 02:04 AM
0.8
75kB
danltiger
11-29-10 09:32 PM
0.7
83kB
danltiger
11-27-10 05:50 AM
0.6
82kB
danltiger
11-26-10 06:41 AM
0.5
75kB
danltiger
11-22-10 06:14 AM
0.4
113kB
danltiger
11-21-10 12:58 AM
0.3
113kB
danltiger
11-20-10 11:04 AM
0.2
77kB
danltiger
11-17-10 12:15 AM


Post A Reply Comment Options
Unread 12-02-10, 08:56 PM  
Sarieth
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
You guys rock, thanks!
Sarieth is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 05:01 PM  
Lastbreath
A Defias Bandit

Forum posts: 3
File comments: 81
Uploads: 0
Code:
ROGUE = {

		-- Buffs
		[GetSpellInfo(13750) or "Adrenaline Rush"] = true,		    	-- Adrenaline Rush
		[GetSpellInfo(13877) or "Blade Flurry"] = true,			    	-- Blade Flurry
		[GetSpellInfo(31230) or "Cheat Death"] = true,			    	-- Cheat Death
		[GetSpellInfo(84617) or "Revealing Strike"] = true,			    -- Revealing Strike
		[GetSpellInfo(51713) or "Shadow Dance"] = true,			    	-- Shadow Dance
		[GetSpellInfo(5171) or "Slice and Dice"] = true,				-- Slice and Dice

		-- Debuffs
		[GetSpellInfo(2094) or "Blind"] = true,					    	-- Blind
		[GetSpellInfo(1833) or "Cheap Shot"] = true,					-- Cheap Shot
		[GetSpellInfo(26679) or "Deadly Throw"] = true,			   	 	-- Deadly Throw
		[GetSpellInfo(51722) or "Dismantle"] = true, 					-- Dismantle
		[GetSpellInfo(8647) or "Expose Armor"] = true,			    	-- Expose Armor
		[GetSpellInfo(703) or "Garrote"] = true,						-- Garrote
		[GetSpellInfo(1776) or "Gouge"] = true,					    	-- Gouge
		[GetSpellInfo(408) or "Kidney Shot"] = true,					-- Kidney Shot
		[GetSpellInfo(1943) or "Rupture"] = true,						-- Rupture
		[GetSpellInfo(6770) or "Sap"] = true,							-- Sap
		[GetSpellInfo(79140) or "Vendetta"] = true,						-- Vendetta

	},
	
	SHAMAN = {

		-- Buffs
		[GetSpellInfo(974) or "Earth Shield"] = true,			    	-- Earth Shield
		[GetSpellInfo(324) or "Lightning Shield"] = true,		    	-- Lightning Shield
		[GetSpellInfo(51530) or "Maelstrom Weapon"] = true,		    	-- Maelstrom Weapon
		[GetSpellInfo(61295) or "Riptide"] = true,						-- Riptide
		[GetSpellInfo(30823) or "Shamanistic Rage"] = true,		    	-- Shamanistic Rage
		[GetSpellInfo(79206) or "Spiritwalker's Grace"] = true,		    -- Spiritwalker's Grace

		-- Debuffs
		[GetSpellInfo(8042) or "Earth Shock"] = true,					-- Earth Shock
		[GetSpellInfo(8050) or "Flame Shock"] = true,					-- Flame Shock
		[GetSpellInfo(8056) or "Frost Shock"] = true,					-- Frost Shock
		[GetSpellInfo(51514) or "Hex"] = true,							-- Hex

	},
	
	WARLOCK = {

		-- Buffs
		[GetSpellInfo(54277) or "Backdraft"] = true,					-- Backdraft
		[GetSpellInfo(59672) or "Metamorphosis"] = true,				-- Metamorphosis
		[GetSpellInfo(91711) or "Nether Ward"] = true,					-- Nether Ward
		[GetSpellInfo(17941) or "Shadow Trance"] = true,				-- Shadow Trance
		[GetSpellInfo(6229) or "Shadow Ward"] = true,					-- Shadow Ward

		-- Debuffs
		[GetSpellInfo(980) or "Bane of Agony"] = true,			  	 	-- Bane of Agony
		[GetSpellInfo(603) or "Bane of Doom"] = true,			  	 	-- Bane of Doom
		[GetSpellInfo(80240) or "Bane of Havoc"] = true,			  	-- Bane of Havoc
		[GetSpellInfo(710) or "Banish"] = true,				  			-- Banish
		[GetSpellInfo(172) or "Corruption"] = true,				  		-- Corruption
		[GetSpellInfo(18223) or "Curse of Exhaustion"] = true,			-- Curse of Exhaustion
		[GetSpellInfo(1714) or "Curse of Tongues"] = true,				-- Curse of Tongues
		[GetSpellInfo(48181) or "Haunt"] = true,						-- Haunt
		[GetSpellInfo(348) or "Immolate"] = true,						-- Immolate
		[GetSpellInfo(74434) or "Soulburn"] = true,						-- Soulburn
		[GetSpellInfo(30108) or "Unstable Affliction"] = true,			-- Unstable Affliction

	},
	
	WARRIOR = {

		-- Buffs
		[GetSpellInfo(18499) or "Berserker Rage"] = true,				-- Berserker Rage
		[GetSpellInfo(46916) or "Bloodsurge"] = true,					-- Bloodsurge
		[GetSpellInfo(85730) or "Deadly Calm"] = true,					-- Deadly Calm
		[GetSpellInfo(12292) or "Death Wish"] = true,					-- Death Wish
		[GetSpellInfo(3411) or "Intervene"] = true,				    	-- Intervene
		[GetSpellInfo(85739) or "Meat Cleaver"] = true,				    -- Meat Cleaver
		[GetSpellInfo(12975) or "Last Stand"] = true,					-- Last Stand
		[GetSpellInfo(1719) or "Recklessness"] = true,			    	-- Recklessness
		[GetSpellInfo(20230) or "Retaliation"] = true,					-- Retaliation
		[GetSpellInfo(86663) or "Rude Interruption"] = true,			-- Rude Interruption
		[GetSpellInfo(2565) or "Shield Block"] = true,			    	-- Shield Block
		[GetSpellInfo(871) or "Shield Wall"] = true,					-- Shield Wall
		[GetSpellInfo(23920) or "Spell Reflection"] = true,	    		-- Spell Reflection
		[GetSpellInfo(52437) or "Sudden Death"] = true,		    		-- Sudden Death
		[GetSpellInfo(12328) or "Sweeping Strikes"] = true,		    	-- Sweeping Strikes
		[GetSpellInfo(50227) or "Sword and Board"] = true,		    	-- Sword and Board
		[GetSpellInfo(60503) or "Taste for Blood"] = true,				-- Taste for Blood
		[GetSpellInfo(87096) or "Thunderstruck"] = true,				-- Thunderstruck

		-- Debuffs
		[GetSpellInfo(1160) or "Demoralizing Shout"] = true,			-- Demoralizing Shout
		[GetSpellInfo(1715) or "Hamstring"] = true,				    	-- Hamstring
		[GetSpellInfo(772) or "Rend"] = true,					    	-- Rend
		[GetSpellInfo(64382) or "Shattering Throw"] = true,		    	-- Shattering Throw
		[GetSpellInfo(58567) or "Sunder Armor"] = true,			    	-- Sunder Armor
		[GetSpellInfo(85388) or "Throwdown"] = true,			    	-- Throwdown

	},
	
	PET = {
		
		-- Hunter
		[GetSpellInfo(6991) or "Feed Pet"] = true,						-- Feed Pet
		[GetSpellInfo(19615) or "Frenzy Effect"] = true,				-- Frenzy
		[GetSpellInfo(136) or "Mend Pet"] = true,						-- Mend Pet
		
		-- Death Knight
		[GetSpellInfo(63560) or "Dark Transformation"] = true,			-- Dark Transformation
		[GetSpellInfo(91342) or "Shadow Infusion"] = true,
Last edited by Lastbreath : 12-02-10 at 05:01 PM.
Lastbreath is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 05:01 PM  
Lastbreath
A Defias Bandit

Forum posts: 3
File comments: 81
Uploads: 0
Here is my list that im using on another addon, hope it will help, sorry if it looks like spamming....
Code:
DEATHKNIGHT = {

		-- Buffs
		[GetSpellInfo(48707) or "Anti-Magic Shell"] = true,				-- Anti-Magic Shell
		[GetSpellInfo(51052) or "Anti-Magic Zone"] = true,				-- Anti-Magic Zone
		[GetSpellInfo(49222) or "Bone Shield"] = true,					-- Bone Shield
		[GetSpellInfo(59052) or "Freezing Fog"] = true,					-- Freezing Fog
		[GetSpellInfo(48792) or "Icebound Fortitude"] = true,			-- Icebound Fortitude
		[GetSpellInfo(51124) or "Killing Machine"] = true,				-- Killing Machine
		[GetSpellInfo(49039) or "Lichborne"] = true,					-- Lichborne
		[GetSpellInfo(51271) or "Pillar of Frost"] = true,				-- Pillar of Frost
		[GetSpellInfo(51271) or "Unbreakable Armor"] = true,			-- Unbreakable Armor
		[GetSpellInfo(55233) or "Vampiric Blood"] = true,				-- Vampiric Blood
		
		-- Debuffs
		[GetSpellInfo(55078) or "Blood Plague"] = true,					-- Blood Plague
		[GetSpellInfo(45524) or "Chains of Ice"] = true,				-- Chains of Ice
		[GetSpellInfo(55095) or "Frost Fever"] = true,					-- Frost Fever
		[GetSpellInfo(49203) or "Hungering Cold"] = true,				-- Hungering Cold
		[GetSpellInfo(47476) or "Strangulate"] = true,					-- Strangulate
	},
	
	DRUID = {
	
		-- Buffs
		[GetSpellInfo(22812) or "Barkskin"] = true,						-- Barkskin
		[GetSpellInfo(50334) or "Berserk"] = true,						-- Berserk
		[GetSpellInfo(1850) or "Dash"] = true,							-- Dash
		[GetSpellInfo(5229) or "Enrage"] = true, 						-- Enrage
		[GetSpellInfo(22842) or "Frenzied Regeneration"] = true,		-- Frenzied Regeneration
		[GetSpellInfo(29166) or "Innervate"] = true,					-- Innervate		
		[GetSpellInfo(33763) or "Lifebloom"] = true,					-- Lifebloom
		[GetSpellInfo(16689) or "Nature's Grasp"] = true,				-- Nature's Grasp
		[GetSpellInfo(8936) or "Regrowth"] = true,						-- Regrowth
		[GetSpellInfo(48441) or "Rejuvenation"] = true,					-- Rejuvenation
		[GetSpellInfo(52610) or "Savage Roar"] = true,					-- Savage Roar
		[GetSpellInfo(93400) or "Shooting Stars"] = true,				-- Shooting Stars
		[GetSpellInfo(61336) or "Survival Instincts"] = true,			-- Survival Instincts
		[GetSpellInfo(467) or "Thorns"] = true,							-- Thorns
		
		-- Debuffs
		[GetSpellInfo(5211) or "Bash"] = true,					    	-- Bash
		[GetSpellInfo(33786) or "Cyclone"] = true,						-- Cyclone
		[GetSpellInfo(99) or "Demoralizing Roar"] = true,	    		-- Demoralizing Roar
		[GetSpellInfo(339) or "Entangling Roots"] = true,	    		-- Entangling Roots
		[GetSpellInfo(5570) or "Insect Swarm"] = true,	    		-- Insect Swarm
		[GetSpellInfo(16979) or "Feral Charge - Bear"] = true,			-- Feral Charge - Bear
		[GetSpellInfo(2637) or "Hibernate"] = true,				   	 	-- Hibernate
		[GetSpellInfo(33745) or "Lacerate"] = true,				    	-- Lacerate
		[GetSpellInfo(49802) or "Maim"] = true,				    		-- Maim
		[GetSpellInfo(8921) or "Moonfire"] = true,			    		-- Moonfire
		[GetSpellInfo(1822) or "Rake"] = true,				    		-- Rake
		[GetSpellInfo(1079) or "Rip"] = true,							-- Rip
		[GetSpellInfo(93402) or "Sunfire"] = true,						-- Sunfire
	},
	
	HUNTER = {

		-- Buffs
		[GetSpellInfo(82692) or "Focus Fire"] = true,					-- Focus Fire
		[GetSpellInfo(56453) or "Lock and Load"] = true,				-- Lock and Load
		[GetSpellInfo(34477) or "Misdirection"] = true,					-- Misdirection
		[GetSpellInfo(82925) or "Ready, Set, Aim..."] = true,			-- Ready, Set, Aim...
		[GetSpellInfo(3045) or "Rapid Fire"] = true,					-- Rapid Fire
		[GetSpellInfo(35098) or "Rapid Killing"] = true,				-- Rapid Killing
		[GetSpellInfo(34692) or "The Beast Within"] = true,				-- The Beast Within
		[GetSpellInfo(77769) or "Trap Launcher"] = true,				-- Trap Launcher

		-- Debuffs
		[GetSpellInfo(3674) or "Black Arrow"] = true,					-- Black Arrow
		[GetSpellInfo(35101) or "Concussive Barrage"] = true,			-- Concussive Barrage
		[GetSpellInfo(5116) or "Concussive Shot"] = true,				-- Concussive Shot
		[GetSpellInfo(19185) or "Entrapment"] = true,					-- Entrapment
		[GetSpellInfo(53301) or "Explosive Shot"] = true,				-- Explosive Shot 
		[GetSpellInfo(3355) or "Freezing Trap"] = true,  				-- Freezing Trap
		[GetSpellInfo(51740) or "Immolation Trap"] = true,				-- Immolation Trap 
		[GetSpellInfo(1513) or "Scare Beast"] = true,					-- Scare Beast 
		[GetSpellInfo(1978) or "Serpent Sting"] = true,			    	-- Serpent Sting
		[GetSpellInfo(34490) or "Silencing Shot"] = true,				-- Silencing Shot
		[GetSpellInfo(2974) or "Wing Clip"] = true,				    	-- Wing Clip
		[GetSpellInfo(19386) or "Wyvern Sting"] = true,		    		-- Wyvern Sting
		
	},
	
	MAGE = {

		-- Buffs
		[GetSpellInfo(12042) or "Arcane Power"] = true,					-- Arcane Power
		[GetSpellInfo(11426) or "Ice Barrier"] = true,					-- Ice Barrier
		[GetSpellInfo(45438) or "Ice Block"] = true,					-- Ice Block
		[GetSpellInfo(66) or "Invisibility"] = true,					-- Invisibility
		[GetSpellInfo(543) or "Mage Ward"] = true,			    		-- Mage Ward
		[GetSpellInfo(1463) or "Mana Shield"] = true,			    	-- Mana Shield
		[GetSpellInfo(130) or "Slow Fall"] = true,				    	-- Slow Fall

		-- Debuffs
		[GetSpellInfo(44572) or "Deep Freeze"] = true,	    			-- Deep Freeze
		[GetSpellInfo(122) or "Frost Nova"] = true,			    		-- Frost Nova
		[GetSpellInfo(11255) or "Improved Counterspell"] = true,		-- Improved Counterspell
		[GetSpellInfo(44457) or "Living Bomb"] = true,					-- Living Bomb
		[GetSpellInfo(118) or "Polymorph"] = true,				   	 	-- Polymorph
		[GetSpellInfo(82676) or "Ring of Frost"] = true,				-- Ring of Frost
		[GetSpellInfo(31589) or "Slow"] = true,					   		-- Slow

	},
	
	PALADIN = {

		-- Buffs
		[GetSpellInfo(31850) or "Ardent Defender"] = true,				-- Ardent Defender
		[GetSpellInfo(31884) or "Avenging Wrath"] = true,				-- Avenging Wrath
		[GetSpellInfo(53651) or "Light's Beacon"] = true,				-- Beacon of Light		
		[GetSpellInfo(31842) or "Divine Favor"] = true,					-- Divine Favor
		[GetSpellInfo(54428) or "Divine Plea"] = true,					-- Divine Plea
		[GetSpellInfo(642) or "Divine Shield"] = true,					-- Divine Shield
		[GetSpellInfo(90174) or "Hand of Light"] = true,					-- Hand of Light
		[GetSpellInfo(84963) or "Inquisition"] = true,					-- Inquisition
		[GetSpellInfo(85696) or "Zealotry"] = true,						-- Zealotry
		
		-- Debuffs
		[GetSpellInfo(20066) or "Repentance"] = true,					-- Repentance
		
	},
	
	PRIEST = {

		-- Buffs
		[GetSpellInfo(81208) or "Chakra: Heal"] = true,					-- Chakra: Heal
		[GetSpellInfo(81206) or "Chakra: Prayer of Healing"] = true,	-- Chakra: Prayer of Healing
		[GetSpellInfo(81207) or "Chakra: Renew"] = true,				-- Chakra: Renew
		[GetSpellInfo(81209) or "Chakra: Smite"] = true,				-- Chakra: Smite
		[GetSpellInfo(87118) or "Dark Evangelism"] = true,				-- Dark Evangelism
		[GetSpellInfo(47585) or "Dispersion"] = true,					-- Dispersion
		[GetSpellInfo(81662) or "Evangelism"] = true,					-- Evangelism
		[GetSpellInfo(47788) or "Guardian Spirit"] = true,				-- Guardian Spirit
		[GetSpellInfo(33206) or "Pain Suppression"] = true,				-- Pain Suppression
		[GetSpellInfo(10060) or "Power Infusion"] = true,				-- Power Infusion
		[GetSpellInfo(48066) or "Power Word: Shield"] = true,			-- Power Word: Shield
		[GetSpellInfo(33076) or "Prayer of Mending"] = true,			-- Prayer of Mending
		[GetSpellInfo(139) or "Renew"] = true,					    	-- Renew
		[GetSpellInfo(63735) or "Serendipity"] = true,					-- Serendipity
		[GetSpellInfo(77487) or "Shadow Orb"] = true,					-- Shadow Orbs

		-- Debuffs
		[GetSpellInfo(2944) or "Devouring Plague"] = true,				-- Devouring Plague
		[GetSpellInfo(14914) or "Holy Fire"] = true,					-- Holy Fire	
		[GetSpellInfo(87178) or "Mind Spike"] = true,					-- Mind Spike
		[GetSpellInfo(64044) or "Psychic Horror"] = true,					-- Psychic Horror	
		[GetSpellInfo(589) or "Shadow Word: Pain"] = true,				-- Shadow Word: Pain	
		[GetSpellInfo(9484) or "Shackle Undead"] = true,				-- Shackle Undead	
		[GetSpellInfo(15487) or "Silence"] = true,						-- Silence	
		[GetSpellInfo(34914) or "Vampiric Touch"] = true,				-- Vampiric Touch	

	},
Last edited by Lastbreath : 12-02-10 at 05:02 PM.
Lastbreath is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 04:41 PM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Originally posted by Sarieth
Does anyone happen to have maybe a comprehensive spell list for more classes available?
Look at the prior entries in this list

These are the ones I use for my priest:
Code:
    -- Priest spells...
	[GetSpellInfo(139)]      = {position = 3, color = {r = 0,g = .9, b = 0, a = 1},},   -- "Renew", Green
	[GetSpellInfo(17)]       = {position = 2, color = {r = .9,g = .9, b = .9, a = 1},}, -- "Power Word: Shield", White
	[GetSpellInfo(21562)]    = {position = 1, color = {r = .9,g = 0, b = 0, a = 1},},   -- "Power Word: Fortitude", Red
	[GetSpellInfo(6346)]     = {position = 1, color = {r = 0,g = .9, b = .9, a = 1},},  -- "Fear Ward", Yellow
	[GetSpellInfo(27863)]    = {position = 1, color = {r = 0,g = 0, b = .9, a = 1},},   -- "Shadow Protection", Blue
	[GetSpellInfo(33076)]    = {position = 1, color = {r = .9,g = 0, b = .9, a = 1},},  -- "Prayer of Mending", 
	-- Priest debuffs...
	[GetSpellInfo(6788)]     = {position = 2, color = {r = 0,g = 0, b = .9, a = 1},},   -- "Weakened Soul", Blue

	-- Debuff Types
	Poison                   = {position = 5, color = {r = 0,g = .9, b = .1, a = 1},},  -- Greenish
	Magic                    = {position = 6, color = {r = 0,g = .3, b = .9, a = 1},},  -- Bluish
	Curse                    = {position = 4, color = {r = .9,g = 0, b = .7, a = 1},},  -- Purple
	Disease                  = {position = 4, color = {r = .7,g = .7, b = 1, a = 1},},
You'll notice multiple spells in the same position - I have added a spell priority system to my own copy.
Last edited by Pinghansen : 12-02-10 at 04:44 PM.
Pinghansen is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 03:07 PM  
Sarieth
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Let me just say that I love these frames! Very well implemented. However, it's obviously only useful for druid healers since it lacks priest, shaman and paladin spell lists. Does anyone happen to have maybe a comprehensive spell list for more classes available? Every time I try to add in spells, the frame disappears in-game. Any help would be appreciated
Sarieth is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 10:44 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Disabling drag

I've implemented toggling the state of the handle as a slash-command in my copy. The parsing is ready for future expansion.

Code:
local sgShown = true

{lots of code}
..
{all the way to the bottom}

function sgParseCommand(cmd)
    local param1, param2, param3 = cmd:lower():match("^([%S]+)%s*([%S]*)%s*(.*)$");
    param1, param2 = param1 or "", param2 or "";
    if param1 == "toggle" or param1 == "" then
        if sgShown == true then
            ShotGlassRaidFrames.HandleFrame:Hide()
            sgShown = false
        else
            ShotGlassRaidFrames.HandleFrame:Show()
            sgShown = true
        end
    end
end -- function sgParseCommand

ShotGlassRaidFrames = CreateGroupHeader()
ShotGlassRaidFrames.TrackedAuras = TrackedAuras

SLASH_SHOTGLASS1 = "/shotglass";
SlashCmdList["SHOTGLASS"] = sgParseCommand;
Last edited by Pinghansen : 12-02-10 at 12:48 PM.
Pinghansen is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 08:11 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Disabling drag

Originally posted by danltiger
This will hide the handle, and should lock the frames:
..
If you wanted to just lock the frames, you could do this:
..
Put that in a macro, and you've got yourself a button.
Actually, that state should be saved.

And then people will most likely have to be told that there's a reverse: .Show() and EnableMouse(true)

I'll try to whip up a few code snippets in preparation for the storm of requests you'll get for disabling/re-enabling. That way users can implement it themselves, if desired, and the addon will not bloat.
Pinghansen is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 07:56 AM  
Pinghansen
Certified Insane
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 75
Uploads: 2
Class spells

Originally posted by danltiger
Having a complete out-of-box setup for other classes ..
So I'll either have to trust the user submissions, or play around with those classes on my own.
There is a nice feature on wowhead, class spells. This is the section for a discipline priest.

There's a simple solution, short-term: make spells user configurable in an separate .lua file. I think that if the spell definitions were isolated to their own file, it would be much less daunting to try your hand at changing something.
I'd prefer to keep the file with the code, as that will enable me to edit while online and then reload the UI. If things are moved to a configuration file in WTF/, the user will need to exit before making any changes and then log in again.

Regardless, I'm editing my copy to load spells depending on class:
Code:
if class == "PRIEST" then
    {add priest buffs/debufs}
elseif class == "DRUID" then
    {add druid buffs/debuffs}
elseif class == "SHAMAN" then
    {add shammy buffs/debuffs}
end
{add general spells}
Last edited by Pinghansen : 12-02-10 at 07:57 AM.
Pinghansen is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 06:02 AM  
wulfishmojo
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Thanks for the lock macro. It works great.
Last edited by wulfishmojo : 12-02-10 at 07:47 AM.
wulfishmojo is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 05:12 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1517
Uploads: 21
No ready check indicator. The chat frame says, "Everyone is Ready" when peeps are ready, and it'll also say, "So-and-so was afk" or whatever, if they aren't.

This will hide the handle, and should lock the frames:

Code:
/run ShotGlassRaidFrames.HandleFrame:Hide()
If you wanted to just lock the frames, you could do this:

Code:
/run ShotGlassRaidFrames.HandleFrame:EnableMouse(false)
Put that in a macro, and you've got yourself a button.


Originally posted by Opaque
Seems really nice... but would really like the ability to hide the mover and lock the frames. Also, I haven't tried them yet, but do they show ready checks? If not would want that too. Finally, have them hide when you're not in a group. Keep up the great work!
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
danltiger is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 05:08 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1517
Uploads: 21
Re: Cooldown effects

Originally posted by Pinghansen
Filter out debuffs with insignificant duration - no need to waste mana on a short debuff, other than with things like fear.
Great idea, I'll put that on the list


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).
Once I sort out all the ideas, and pick a few that I like, I'll take them to Photoshop and try them out.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
danltiger is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 05:03 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1517
Uploads: 21
/run ShotGlassRaidFrames.HandleFrame:EnableMouse(false)

That'll lock the frame, in-game.

Originally posted by wulfishmojo
I completely agree with this. It's an extremely nice addon, but what it really needs is lockable frames and also ideally the ability to only have it on when in a party or raid.

Thanks for all your hard work!
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
danltiger is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 05:02 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1517
Uploads: 21
Re: Priorities

Originally posted by Pinghansen
I'm working on a priority system. This is what I'm doing:

...

Nice!
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
danltiger is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 04:59 AM  
wulfishmojo
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Originally posted by Opaque
Seems really nice... but would really like the ability to hide the mover and lock the frames. Also, I haven't tried them yet, but do they show ready checks? If not would want that too. Finally, have them hide when you're not in a group. Keep up the great work!
I completely agree with this. It's an extremely nice addon, but what it really needs is lockable frames and also ideally the ability to only have it on when in a party or raid.

Thanks for all your hard work!
wulfishmojo is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 04:53 AM  
danltiger
A Murloc Raider
 
danltiger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 1517
Uploads: 21
Re: Well, pets are NOT that important

Originally posted by Pinghansen
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.
Good thoughts! I will definitely expand the explanation on the description page. That'll happen sooner rather than later, and I'll include an explanation of the TrackedAuras table. Having a complete out-of-box setup for other classes is something that I'll have to look into. Obviously, I've got a druid healer, but I don't have much experience with the other classes. So I'll either have to trust the user submissions, or play around with those classes on my own.
__________________
Author Portal
Tidy Plates, Tidy Threat, and Tidy Bar
danltiger is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: