mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added LibDBIcon to bring back the minimap icon
This commit is contained in:
2
.pkgmeta
2
.pkgmeta
@ -37,6 +37,8 @@ externals:
|
|||||||
url: svn://svn.wowace.com/wow/libdogtag-3-0/mainline/trunk
|
url: svn://svn.wowace.com/wow/libdogtag-3-0/mainline/trunk
|
||||||
libs/LibDogTag-Unit-3.0:
|
libs/LibDogTag-Unit-3.0:
|
||||||
url: svn://svn.wowace.com/wow/libdogtag-unit-3-0/mainline/trunk
|
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:
|
optional-dependencies:
|
||||||
- libdogtag-3-0
|
- libdogtag-3-0
|
||||||
|
@ -74,6 +74,7 @@ function IceCore.prototype:SetupDefaults()
|
|||||||
bShouldUseDogTags = true,
|
bShouldUseDogTags = true,
|
||||||
|
|
||||||
updatePeriod = 0.1,
|
updatePeriod = 0.1,
|
||||||
|
minimap = {},
|
||||||
},
|
},
|
||||||
global = {
|
global = {
|
||||||
lastRunVersion = 0,
|
lastRunVersion = 0,
|
||||||
|
24
IceHUD.lua
24
IceHUD.lua
@ -3,6 +3,7 @@ IceHUD = LibStub("AceAddon-3.0"):NewAddon("IceHUD", "AceConsole-3.0")
|
|||||||
local SML = AceLibrary("LibSharedMedia-3.0")
|
local SML = AceLibrary("LibSharedMedia-3.0")
|
||||||
local ACR = LibStub("AceConfigRegistry-3.0")
|
local ACR = LibStub("AceConfigRegistry-3.0")
|
||||||
local ConfigDialog = LibStub("AceConfigDialog-3.0")
|
local ConfigDialog = LibStub("AceConfigDialog-3.0")
|
||||||
|
local icon = LibStub("LibDBIcon-1.0")
|
||||||
|
|
||||||
IceHUD.CurrTagVersion = 3
|
IceHUD.CurrTagVersion = 3
|
||||||
IceHUD.debugging = false
|
IceHUD.debugging = false
|
||||||
@ -669,6 +670,25 @@ Expand Module Settings, expand PlayerInfo (or TargetInfo for targets), and set t
|
|||||||
step = 0.01,
|
step = 0.01,
|
||||||
order = 97
|
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
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if icon then
|
||||||
|
icon:Register("IceHUD", ldbButton, self.db.profile.minimap)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -17,4 +17,5 @@
|
|||||||
<Include file="libs\LibSharedMedia-3.0\lib.xml"/>
|
<Include file="libs\LibSharedMedia-3.0\lib.xml"/>
|
||||||
<Script file="libs\Deformat-2.0\Deformat-2.0.lua"/>
|
<Script file="libs\Deformat-2.0\Deformat-2.0.lua"/>
|
||||||
<Script file="LibDataBroker-1.1.lua"/>
|
<Script file="LibDataBroker-1.1.lua"/>
|
||||||
|
<Script file="libs\LibDBIcon-1.0\LibDBIcon-1.0.lua"/>
|
||||||
</Ui>
|
</Ui>
|
||||||
|
Reference in New Issue
Block a user