Permalink
Browse files

Switched to libdbicon for minimap icons

  • Loading branch information...
Tuller committed Sep 16, 2012
1 parent fd834c8 commit a4783d6f433979efdd3cff1135c06916ecbed99f
Showing with 454 additions and 17 deletions.
  1. +16 −15 Dominos.lua
  2. +1 −2 Dominos.toc
  3. +3 −0 embeds.xml
  4. +344 −0 libs/LibDBIcon-1.0/LibDBIcon-1.0.lua
  5. +90 −0 libs/LibDataBroker-1.1/LibDataBroker-1.1.lua
View
@@ -48,15 +48,12 @@ end
function Dominos:OnEnable()
self:HideBlizzard()
self:CreateDataBrokerPlugin()
self:Load()
if LibStub:GetLibrary('LibDataBroker-1.1', true) then
self:LoadDataBrokerPlugin()
end
end
function Dominos:LoadDataBrokerPlugin()
LibStub:GetLibrary('LibDataBroker-1.1'):NewDataObject('Dominos', {
function Dominos:CreateDataBrokerPlugin()
local dataObject = LibStub:GetLibrary('LibDataBroker-1.1'):NewDataObject('Dominos', {
type = 'launcher',
icon = [[Interface\Addons\Dominos\Dominos]],
@@ -98,6 +95,8 @@ function Dominos:LoadDataBrokerPlugin()
end
end,
})
LibStub('LibDBIcon-1.0'):Register('Dominos', dataObject, self.db.profile.minimap)
end
--[[ Version Updating ]]--
@@ -113,8 +112,11 @@ function Dominos:GetDefaults()
showBindingText = true,
showTooltips = true,
showTooltipsCombat = true,
showMinimap = true,
useVehicleUI = true,
minimap = {
hide = false,
},
ab = {
count = 10,
@@ -281,9 +283,9 @@ end
--shamelessly pulled from Bartender4
function Dominos:HideBlizzard()
-- if MultiActionBar_UpdateGrid then
-- MultiActionBar_UpdateGrid = Multibar_EmptyFunc
-- end
if MultiActionBar_UpdateGrid then
MultiActionBar_UpdateGrid = Multibar_EmptyFunc
end
-- Hidden parent frame
local UIHider = CreateFrame('Frame', nil, UIParent, 'SecureFrameTemplate'); UIHider:Hide()
@@ -926,20 +928,19 @@ end
--minimap button
function Dominos:SetShowMinimap(enable)
self.db.profile.showMinimap = enable or false
self.db.profile.minimap.hide = not enable
self:UpdateMinimapButton()
end
function Dominos:ShowingMinimap()
return self.db.profile.showMinimap
return not self.db.profile.minimap.hide
end
function Dominos:UpdateMinimapButton()
if self:ShowingMinimap() then
self.Minimap:UpdatePosition()
self.Minimap:Show()
LibStub('LibDBIcon-1.0'):Show('Dominos')
else
self.Minimap:Hide()
LibStub('LibDBIcon-1.0'):Hide('Dominos')
end
end
View
@@ -2,7 +2,7 @@
## Title: Dominos
## Notes: A main actionbar replacement
## Author: Tuller
## Version: 5.0.23
## Version: 5.0.25
## SavedVariables: DominosDB, DominosVersion
## OptionalDeps: Ace3, LibKeyBound-1.0, Masque, FlyPaper
embeds.xml
@@ -20,7 +20,6 @@ petBar.lua
classBar.lua
bagBar.lua
menuBar.lua
minimap.lua
extraActionBar.lua
vehicleBar.lua
bindingsUpdater.lua
View
@@ -7,5 +7,8 @@
<Include file="libs\AceConsole-3.0\AceConsole-3.0.xml"/>
<Include file="libs\AceLocale-3.0\AceLocale-3.0.xml"/>
<Include file="libs\AceDB-3.0\AceDB-3.0.xml"/>
<Include file="libs\LibKeyBound-1.0\lib.xml"/>
<Script file="libs\LibDataBroker-1.1\LibDataBroker-1.1.lua"/>
<Script file="libs\LibDBIcon-1.0\LibDBIcon-1.0.lua"/>
<Script file="libs\FlyPaper\FlyPaper.lua"/>
</Ui>
Oops, something went wrong.

0 comments on commit a4783d6

Please sign in to comment.