Go to Page... |
Updated: | 01-15-14 06:50 AM |
Created: | 11-17-10 12:15 AM |
Downloads: | 7,495 |
Favorites: | 74 |
MD5: |
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
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},}
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 |
Comment Options |
Opaque |
View Public Profile |
Send a private message to Opaque |
Visit Opaque's homepage! |
Find More Posts by Opaque |
Add Opaque to Your Buddy List |
Pinghansen |
View Public Profile |
Send a private message to Pinghansen |
Visit Pinghansen's homepage! |
Find More Posts by Pinghansen |
Add Pinghansen to Your Buddy List |
danltiger |
View Public Profile |
Send a private message to danltiger |
Visit danltiger's homepage! |
Find More Posts by danltiger |
Add danltiger to Your Buddy List |
12-02-10, 04:59 AM | ||
A Kobold Labourer
Forum posts: 0
File comments: 4
Uploads: 0
|
Thanks for all your hard work! |
|
|
wulfishmojo |
View Public Profile |
Send a private message to wulfishmojo |
Visit wulfishmojo's homepage! |
Find More Posts by wulfishmojo |
Add wulfishmojo to Your Buddy List |
12-02-10, 05:02 AM | ||
|
Re: Priorities
|
|
|
danltiger |
View Public Profile |
Send a private message to danltiger |
Visit danltiger's homepage! |
Find More Posts by danltiger |
Add danltiger to Your Buddy List |
12-02-10, 05:03 AM | ||
|
/run ShotGlassRaidFrames.HandleFrame:EnableMouse(false)
That'll lock the frame, in-game.
|
|
|
danltiger |
View Public Profile |
Send a private message to danltiger |
Visit danltiger's homepage! |
Find More Posts by danltiger |
Add danltiger to Your Buddy List |
12-02-10, 05:08 AM | |||
|
Re: Cooldown effects
|
||
|
danltiger |
View Public Profile |
Send a private message to danltiger |
Visit danltiger's homepage! |
Find More Posts by danltiger |
Add danltiger to Your Buddy List |
12-02-10, 05:12 AM | ||
|
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() Code:
/run ShotGlassRaidFrames.HandleFrame:EnableMouse(false)
|
|
|
danltiger |
View Public Profile |
Send a private message to danltiger |
Visit danltiger's homepage! |
Find More Posts by danltiger |
Add danltiger to Your Buddy List |
12-02-10, 06:02 AM | |
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 |
View Public Profile |
Send a private message to wulfishmojo |
Visit wulfishmojo's homepage! |
Find More Posts by wulfishmojo |
Add wulfishmojo to Your Buddy List |
12-02-10, 07:56 AM | ||
|
Class spells
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 |
View Public Profile |
Send a private message to Pinghansen |
Visit Pinghansen's homepage! |
Find More Posts by Pinghansen |
Add Pinghansen to Your Buddy List |
12-02-10, 08:11 AM | ||
|
Disabling drag
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 |
View Public Profile |
Send a private message to Pinghansen |
Visit Pinghansen's homepage! |
Find More Posts by Pinghansen |
Add Pinghansen to Your Buddy List |
12-02-10, 10:44 AM | |
|
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 |
View Public Profile |
Send a private message to Pinghansen |
Visit Pinghansen's homepage! |
Find More Posts by Pinghansen |
Add Pinghansen to Your Buddy List |
12-02-10, 03:07 PM | |
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 |
View Public Profile |
Send a private message to Sarieth |
Visit Sarieth's homepage! |
Find More Posts by Sarieth |
Add Sarieth to Your Buddy List |
12-02-10, 04:41 PM | ||
|
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},},
Last edited by Pinghansen : 12-02-10 at 04:44 PM.
|
|
|
Pinghansen |
View Public Profile |
Send a private message to Pinghansen |
Visit Pinghansen's homepage! |
Find More Posts by Pinghansen |
Add Pinghansen to Your Buddy List |
12-02-10, 05:01 PM | |
A Defias Bandit
Forum posts: 3
File comments: 77
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 |
View Public Profile |
Send a private message to Lastbreath |
Visit Lastbreath's homepage! |
Find More Posts by Lastbreath |
Add Lastbreath to Your Buddy List |