diff --git a/.pkgmeta b/.pkgmeta
index 5b1f19f..4d110cf 100644
--- a/.pkgmeta
+++ b/.pkgmeta
@@ -37,6 +37,8 @@ externals:
url: svn://svn.wowace.com/wow/libdogtag-3-0/mainline/trunk
libs/LibDogTag-Unit-3.0:
url: svn://svn.wowace.com/wow/libdogtag-unit-3-0/mainline/trunk
+ libs/LibDBIcon-1.0:
+ url: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0
optional-dependencies:
- libdogtag-3-0
diff --git a/IceCore.lua b/IceCore.lua
index 7216af4..7031fdc 100644
--- a/IceCore.lua
+++ b/IceCore.lua
@@ -74,6 +74,7 @@ function IceCore.prototype:SetupDefaults()
bShouldUseDogTags = true,
updatePeriod = 0.1,
+ minimap = {},
},
global = {
lastRunVersion = 0,
diff --git a/IceHUD.lua b/IceHUD.lua
index dd42930..905c94f 100644
--- a/IceHUD.lua
+++ b/IceHUD.lua
@@ -3,6 +3,7 @@ IceHUD = LibStub("AceAddon-3.0"):NewAddon("IceHUD", "AceConsole-3.0")
local SML = AceLibrary("LibSharedMedia-3.0")
local ACR = LibStub("AceConfigRegistry-3.0")
local ConfigDialog = LibStub("AceConfigDialog-3.0")
+local icon = LibStub("LibDBIcon-1.0")
IceHUD.CurrTagVersion = 3
IceHUD.debugging = false
@@ -669,6 +670,25 @@ Expand Module Settings, expand PlayerInfo (or TargetInfo for targets), and set t
step = 0.01,
order = 97
},
+
+ showMinimap = {
+ type = 'toggle',
+ name = "Show Minimap Icon",
+ desc = "Whether or not to show an IceHUD icon on the minimap.",
+ get = function(info)
+ return not IceHUD.db.profile.minimap.hide
+ end,
+ set = function(info, v)
+ IceHUD.db.profile.minimap.hide = not v
+ if v then
+ icon:Show("IceHUD")
+ else
+ icon:Hide("IceHUD")
+ end
+ end,
+ hidden = function() return not icon end,
+ order = 98
+ }
}
}
@@ -832,6 +852,10 @@ function IceHUD:InitLDB()
end
end,
})
+
+ if icon then
+ icon:Register("IceHUD", ldbButton, self.db.profile.minimap)
+ end
end
end
diff --git a/embeds.xml b/embeds.xml
index 0479556..79b5248 100644
--- a/embeds.xml
+++ b/embeds.xml
@@ -17,4 +17,5 @@
+