diff --git a/.pkgmeta b/.pkgmeta
index c263fd8..2870aca 100644
--- a/.pkgmeta
+++ b/.pkgmeta
@@ -39,9 +39,9 @@ externals:
Libs/LibTalentQuery-1.0:
url: svn://svn.wowace.com/wow/libtalentquery-1-0/mainline/trunk
tag: latest
- Libs/LibDBIcon-1.0:
- url: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0
- tag: latest
- Libs/LibDataBroker-1.1:
- url: git://github.com/tekkub/libdatabroker-1-1.git
- tag: v1.1.4
+ Libs/LibDBIcon-1.0:
+ url: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0
+ tag: latest
+ Libs/LibDataBroker-1.1:
+ url: git://github.com/tekkub/libdatabroker-1-1.git
+ tag: v1.1.4
diff --git a/Modules/Appearance.lua b/Modules/Appearance.lua
index 65d6483..cffccbf 100644
--- a/Modules/Appearance.lua
+++ b/Modules/Appearance.lua
@@ -1,5 +1,6 @@
local mod = StarTip:NewModule("Appearance")
mod.name = "Appearance"
+mod.noToggle = true
local _G = _G
local StarTip = _G.StarTip
local GameTooltip = _G.GameTooltip
diff --git a/Modules/Bars.lua b/Modules/Bars.lua
index 5f0e911..7d510d2 100644
--- a/Modules/Bars.lua
+++ b/Modules/Bars.lua
@@ -1,5 +1,6 @@
local mod = StarTip:NewModule("Bars", "AceTimer-3.0")
mod.name = "Bars"
+mod.toggled = true
local _G = _G
local StarTip = _G.StarTip
local GameTooltip = _G.GameTooltip
diff --git a/Modules/DeadlyWhispers.lua b/Modules/DeadlyWhispers.lua
new file mode 100644
index 0000000..bb5750b
--- /dev/null
+++ b/Modules/DeadlyWhispers.lua
@@ -0,0 +1,40 @@
+if not DBM then return end
+local mod = StarTip:NewModule("DeadlyWhispers")
+mod.name = "Who"
+mod.desc = "Show last DBM messages, such as whispers, announces, etc... You can filter out unwanted messages."
+
+local _G = _G
+local StarTip = _G.StarTip
+local GameTooltip = _G.GameTooltip
+local ShoppingTooltip1 = _G.ShoppingTooltip1
+local ShoppingTooltip2 = _G.ShoppingTooltip2
+local self = mod
+
+local defaults = {
+ profile = {
+ watchList = {},
+ modifier = 1
+ }
+}
+
+local options = {}
+
+function mod:OnInitialize()
+ self.db = StarTip.db:RegisterNamespace(self:GetName(), defaults)
+ StarTip:SetOptionsDisabled(options, true)
+end
+
+function mod:OnEnable()
+ --StarTip:SecureHook(FriendsFrame, "Show", mod.FriendFrameShow)
+end
+
+function mod:OnDisable()
+end
+
+function mod:GetOptions()
+ return options
+end
+
+function mod:SetUnit()
+
+end
\ No newline at end of file
diff --git a/Modules/PvP.lua b/Modules/PvP.lua
index c458f0d..42ca144 100644
--- a/Modules/PvP.lua
+++ b/Modules/PvP.lua
@@ -1,5 +1,6 @@
local mod = StarTip:NewModule("PvP", "AceEvent-3.0")
mod.name = "PvP"
+mod.toggled = true
local _G = _G
local GameTooltip = _G.GameTooltip
local UnitFactionGroup = _G.UnitFactionGroup
diff --git a/Modules/RaidIcon.lua b/Modules/RaidIcon.lua
index bc7f51a..8df484f 100644
--- a/Modules/RaidIcon.lua
+++ b/Modules/RaidIcon.lua
@@ -1,5 +1,6 @@
local mod = StarTip:NewModule("RaidIcon", "AceEvent-3.0")
mod.name = "RaidIcon"
+mod.toggled = true
local _G = _G
local GameTooltip = _G.GameTooltip
local GetRaidTargetIndex = _G.GetRaidTargetIndex
diff --git a/Modules/Talents.lua b/Modules/Talents.lua
index d1e82eb..cbabaec 100644
--- a/Modules/Talents.lua
+++ b/Modules/Talents.lua
@@ -1,5 +1,6 @@
local mod = StarTip:NewModule("Talents", "AceTimer-3.0", "AceEvent-3.0")
mod.name = "Talents"
+mod.toggled = true
local text = StarTip:GetModule("Text")
local _G = _G
local GameTooltip = _G.GameTooltip
diff --git a/Modules/Targeting.lua b/Modules/Targeting.lua
index a6e400c..ca2a80c 100644
--- a/Modules/Targeting.lua
+++ b/Modules/Targeting.lua
@@ -1,5 +1,6 @@
local mod = StarTip:NewModule("Targeting", "AceEvent-3.0")
mod.name = "Targeting"
+mod.toggled = true
local _G = _G
local GameTooltip = _G.GameTooltip
local UnitFactionGroup = _G.UnitFactionGroup
diff --git a/Modules/Text.lua b/Modules/Text.lua
index de4c5ff..3c9ebd9 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -1,5 +1,6 @@
local mod = StarTip:NewModule("Text", "AceTimer-3.0", "AceEvent-3.0")
mod.name = "Text"
+mod.toggled = true
local _G = _G
local GameTooltip = _G.GameTooltip
local StarTip = _G.StarTip
diff --git a/StarTip.lua b/StarTip.lua
index 34dbda7..5c068a9 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -218,46 +218,52 @@ end
function StarTip:RebuildOpts()
for k, v in self:IterateModules() do
+ local t = {}
options.args.modules.args[v:GetName()] = {
name = v.name,
type = "group",
args = nil
}
- local t
- if v.GetOptions then
- t = v:GetOptions()
- t.optionsHeader = {
- name = "Settings",
+
+ if v.toggled then
+ if v.GetOptions then
+ t = v:GetOptions()
+ t.optionsHeader = {
+ name = "Settings",
+ type = "header",
+ order = 3
+ }
+ if v:GetName() == "Bars" then
+ options.args.modules.args[v:GetName()].childGroups = "tab"
+ end
+ else
+ t = {}
+ end
+ t.header = {
+ name = v.name,
type = "header",
- order = 3
+ order = 1
}
- if v:GetName() == "Bars" then
- options.args.modules.args[v:GetName()].childGroups = "tab"
- end
+ t.toggle = {
+ name = "Enable",
+ desc = "Enable or disable this module",
+ type = "toggle",
+ set = function(info,v)
+ self.db.profile.modules[k] = v
+ if v then
+ self:EnableModule(k)
+ else
+ self:DisableModule(k)
+ end
+ end,
+ get = function() return self.db.profile.modules[k] == nil or self.db.profile.modules[k] end,
+ order = 2
+ }
+
+ options.args.modules.args[v:GetName()].args = t
else
- t = {}
+ options.args.modules.args[v:GetName()] = nil
end
- t.header = {
- name = v.name,
- type = "header",
- order = 1
- }
- t.toggle = {
- name = "Enable",
- desc = "Enable or disable this module",
- type = "toggle",
- set = function(info,v)
- self.db.profile.modules[k] = v
- if v then
- self:EnableModule(k)
- else
- self:DisableModule(k)
- end
- end,
- get = function() return self.db.profile.modules[k] == nil or self.db.profile.modules[k] end,
- order = 2
- }
- options.args.modules.args[v:GetName()].args = t
end
end