WoWInterface SVN Broadcaster

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/Broadcaster
    from Rev 16 to Rev 17
    Reverse comparison

Rev 16 → Rev 17

Modules/Priest.lua
33,13 → 33,13
 
local options = {
res = {
name = "Resurrection",
name = L["Resurrection"],
type = "group",
arg = class,
args = {
enable = {
name = "Enable",
desc = "Announce messages for this spell.",
name = L["Enable"],
desc = L["Announce messages for this spell."],
type = "toggle",
order = 1,
get = function()
50,11 → 50,11
end,
},
pick = {
name = "Pull messages from...",
desc = "Use the default messages, your own, or both.",
name = L["Pull messages from..."],
desc = L["Use the default messages, your own, or both."],
type = "select",
order = 2,
values = {"Default", "Custom", "Both"},
values = {L["Default"], L["Custom"], L["Both"]},
get = function()
for k, v in pairs(pick) do
if db.reschoose == v then
67,8 → 67,8
end,
},
custom = {
name = "Custom messages",
desc = "Enter in any custom messages you would like to use, one per line.\n\n%t = the spell's target",
name = L["Custom messages"],
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%t = "..L["the spell's target"],
type = "input",
order = 3,
multiline = true,
109,7 → 109,7
else
msg = list[random]
end
if coredb.channel == "Self" then
if coredb.channel == L["Self"] then
self:Print(msg)
else
SendChatMessage(msg, coredb.channel)
Modules/Druid.lua
33,13 → 33,13
 
local options = {
rebirth = {
name = "Rebirth",
name = L["Rebirth"],
type = "group",
arg = class,
args = {
enable = {
name = "Enable",
desc = "Announce messages for this spell.",
name = L["Enable"],
desc = L["Announce messages for this spell."],
type = "toggle",
order = 1,
get = function()
50,11 → 50,11
end,
},
pick = {
name = "Pull messages from...",
desc = "Use the default messages, your own, or both.",
name = L["Pull messages from..."],
desc = L["Use the default messages, your own, or both."],
type = "select",
order = 2,
values = {"Default", "Custom", "Both"},
values = {L["Default"], L["Custom"], L["Both"]},
get = function()
for k, v in pairs(pick) do
if db.rebirthchoose == v then
67,8 → 67,8
end,
},
custom = {
name = "Custom messages",
desc = "Enter in any custom messages you would like to use, one per line.\n\n%t = the spell's target",
name = L["Custom messages"],
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%t = "..L["the spell's target"],
type = "input",
order = 3,
multiline = true,
108,7 → 108,7
else
msg = list[random]
end
if coredb.channel == "Self" then
if coredb.channel == L["Self"] then
self:Print(msg)
else
SendChatMessage(msg, coredb.channel)
Modules/Shaman.lua
32,13 → 32,13
 
local options = {
ancsp = {
name = "Ancestral Spirit",
name = L["Ancestral Spirit"],
type = "group",
arg = class,
args = {
enable = {
name = "Enable",
desc = "Announce messages for this spell.",
name = L["Enable"],
desc = L["Announce messages for this spell."],
type = "toggle",
order = 1,
get = function()
49,11 → 49,11
end,
},
pick = {
name = "Pull messages from...",
desc = "Use the default messages, your own, or both.",
name = L["Pull messages from..."],
desc = L["Use the default messages, your own, or both."],
type = "select",
order = 2,
values = {"Default", "Custom", "Both"},
values = {L["Default"], L["Custom"], L["Both"]},
get = function()
for k, v in pairs(pick) do
if db.ancspchoose == v then
66,8 → 66,8
end,
},
custom = {
name = "Custom messages",
desc = "Enter in any custom messages you would like to use, one per line.\n\n%t = the spell's target",
name = L["Custom messages"],
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%t = "..L["the spell's target"],
type = "input",
order = 3,
multiline = true,
107,7 → 107,7
else
msg = list[random]
end
if coredb.channel == "Self" then
if coredb.channel == L["Self"] then
self:Print(msg)
else
SendChatMessage(msg, coredb.channel)
Modules/Paladin.lua
32,13 → 32,13
 
local options = {
redempt = {
name = "Redemption",
name = L["Redemption"],
type = "group",
arg = class,
args = {
enable = {
name = "Enable",
desc = "Announce messages for this spell.",
name = L["Enable"],
desc = L["Announce messages for this spell."],
type = "toggle",
order = 1,
get = function()
49,11 → 49,11
end,
},
pick = {
name = "Pull messages from...",
desc = "Use the default messages, your own, or both.",
name = L["Pull messages from..."],
desc = L["Use the default messages, your own, or both."],
type = "select",
order = 2,
values = {"Default", "Custom", "Both"},
values = {L["Default"], L["Custom"], L["Both"]},
get = function()
for k, v in pairs(pick) do
if db.redemptchoose == v then
66,8 → 66,8
end,
},
custom = {
name = "Custom messages",
desc = "Enter in any custom messages you would like to use, one per line.\n\n%t = the spell's target",
name = L["Custom messages"],
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%t = "..L["the spell's target"],
type = "input",
order = 3,
multiline = true,
107,7 → 107,7
else
msg = list[random]
end
if coredb.channel == "Self" then
if coredb.channel == L["Self"] then
self:Print(msg)
else
SendChatMessage(msg, coredb.channel)
Modules/Mage.lua
51,13 → 51,13
 
local options = {
poly = {
name = "Polymorph",
name = L["Polymorph"],
type = "group",
arg = class,
args = {
enable = {
name = "Enable",
desc = "Announce messages for this spell.",
name = L["Enable"],
desc = L["Announce messages for this spell."],
type = "toggle",
order = 1,
get = function()
68,11 → 68,11
end,
},
pick = {
name = "Pull messages from...",
desc = "Use the default messages, your own, or both.",
name = L["Pull messages from..."],
desc = L["Use the default messages, your own, or both."],
type = "select",
order = 2,
values = {"Default", "Custom", "Both"},
values = {L["Default"], L["Custom"], L["Both"]},
get = function()
for k, v in pairs(pick) do
if db.polychoose == v then
85,8 → 85,8
end,
},
custom = {
name = "Custom messages",
desc = "Enter in any custom messages you would like to use, one per line.\n\n%t = the spell's target",
name = L["Custom messages"],
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%t = "..L["the spell's target"],
type = "input",
order = 3,
multiline = true,
97,13 → 97,13
},
},
port = {
name = "Portals",
name = L["Portals"],
type = "group",
arg = class,
args = {
enable = {
name = "Enable",
desc = "Announce messages for this spell.",
name = L["Enable"],
desc = L["Announce messages for this spell."],
type = "toggle",
order = 1,
get = function()
114,11 → 114,11
end,
},
pick = {
name = "Pull messages from...",
desc = "Use the default messages, your own, or both.",
name = L["Pull messages from..."],
desc = L["Use the default messages, your own, or both."],
type = "select",
order = 2,
values = {"Default", "Custom", "Both"},
values = {L["Default"], L["Custom"], L["Both"]},
get = function()
for k, v in pairs(pick) do
if db.portchoose == v then
131,8 → 131,8
end,
},
custom = {
name = "Custom messages",
desc = "Enter in any custom messages you would like to use, one per line.\n\n%d = the portal's destination",
name = L["Custom messages"],
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%d = "..L["the portal's destination"],
type = "input",
order = 3,
multiline = true,
143,13 → 143,13
},
},
table = {
name = "Ritual of Refreshment",
name = L["Ritual of Refreshment"],
type = "group",
arg = class,
args = {
enable = {
name = "Enable",
desc = "Announce messages for this spell.",
name = L["Enable"],
desc = L["Announce messages for this spell."],
type = "toggle",
order = 1,
get = function()
160,11 → 160,11
end,
},
pick = {
name = "Pull messages from...",
desc = "Use the default messages, your own, or both.",
name = L["Pull messages from..."],
desc = L["Use the default messages, your own, or both."],
type = "select",
order = 2,
values = {"Default", "Custom", "Both"},
values = {L["Default"], L["Custom"], L["Both"]},
get = function()
for k, v in pairs(pick) do
if db.tablechoose == v then
177,8 → 177,8
end,
},
custom = {
name = "Custom messages",
desc = "Enter in any custom messages you would like to use, one per line.",
name = L["Custom messages"],
desc = L["Enter in any custom messages you would like to use, one per line."],
type = "input",
order = 3,
multiline = true,
223,7 → 223,7
if coredb.channel == "Self" then
self:Print(msg)
else
SendChatMessage(msg, db.channel)
SendChatMessage(msg, coredb.channel)
end
custom, replacee, replacer = nil
end
Broadcaster.lua
31,10 → 31,10
end,
},
channel = {
name = "Channel",
desc = "The channel to broadcast your messages to.",
name = L["Channel"],
desc = L["The channel to broadcast your messages to."],
type = "select",
values = {"RAID", "PARTY", "Self"},
values = {L["Raid"], L["Party"], L["Self"]},
order = 1,
get = function()
for k, v in pairs(chan) do
ReadMe.txt
6,7 → 6,7
 
I would like to thank people on irc who helped me learn how to do things, and just listened when I was frustrated. The messages in this addon were either taken from other addons (such as Cryolysis), the WoW forums, or were made up my myself and my guildies/friends, so thanks to them, as well.
 
Broadcaster reads directly from the combat log. For polymorph, it won't announce the message unless your spell cast is successful. (No longer requires you to set as focus.)
Broadcaster reads directly from the combat log. For polymorph, for example, it won't announce the message unless your spell cast is successful. (No longer requires you to set as focus.)
 
 
How to use Broadcaster:
45,6 → 45,10
| CHANGELOG |
=============
 
1.2.1 (9/10/08)
- updated localization table and added localization keys in core and modules
- corrected typo in mage module
 
1.2 (9/6/08)
- Now a fully fleshed-out GUI - type /bc or /broadcaster to access (or view in Interface Options)
- You can now put the entire addon into standby mode so no messages are sent
Broadcaster.toc
2,7 → 2,7
## Title: Broadcaster
## Notes: Announces polymorphs to party and raid chat
## Author: Seerah
## Version: 1.2
## Version: 1.2.1
## SavedVariables: BroadcasterDB
## OptionalDeps: Ace3
## X-Embeds: Ace3
Locales/enUS.lua
1,10 → 1,42
local L = LibStub("AceLocale-3.0"):NewLocale("Broadcaster", "enUS", true)
 
--OPTIONS--
--CORE--
L["Standby"] = true
L["Enable/disable the addon, so no messages are sent."] = true
L["Config"] = true
L["Opens the options window."] = true
L["Channel"] = true
L["The channel to broadcast your messages to."] = true
L["Raid"] = true
L["Party"] = true
L["Self"] = true
 
--ALL MODULES--
L["Enable"] = true
L["Announce messages for this spell."] = true
L["Pull messages from..."] = true
L["Use the default messages, your own, or both."] = true
L["Default"] = true
L["Custom"] = true
L["Both"] = true
L["Custom messages"] = true
L["Enter in any custom messages you would like to use, one per line."] = true
L["the spell's target"] = true
 
 
--MAGE MODULE--
L["Portal:"] = true
L["Polymorph"] = true
L["Portals"] = true
L["the portal's destination"] = true
L["Ritual of Refreshment"] = true
 
--DRUID MODULE--
L["Rebirth"] = true
 
 
--PALADIN MODULE--
L["Redemption"] = true
 
--PRIEST MODULE--
L["Resurrection"] = true
 
--SHAMAN MODULE--
L["Ancestral Spirit"] = true