Permalink
Browse files

toc bump + added extra action bar for 4.3

  • Loading branch information...
1 parent e09c0ce commit 34d55d0041f3f15141c791929a56c63a17897f51 @Tuller Tuller committed Oct 22, 2011
Showing with 43 additions and 1 deletion.
  1. +5 −0 Dominos.lua
  2. +2 −1 Dominos.toc
  3. +36 −0 extraActionBar.lua
View
@@ -209,6 +209,10 @@ function Dominos:Load()
self.BagBar:New()
self.MenuBar:New()
self.VehicleBar:New()
+
+ if self.ExtraBar then
+ self.ExtraBar:New()
+ end
--load in extra functionality
for _,module in self:IterateModules() do
@@ -230,6 +234,7 @@ function Dominos:Unload()
self.Frame:ForFrame('menu', 'Free')
self.Frame:ForFrame('bags', 'Free')
self.Frame:ForFrame('vehicle', 'Free')
+ self.Frame:ForFrame('extra', 'Free')
--unload any module stuff
for _,module in self:IterateModules() do
View
@@ -2,7 +2,7 @@
## Title: Dominos
## Notes: A main actionbar replacement
## Author: Tuller
-## Version: 4.2.3
+## Version: 4.2.4
## SavedVariables: DominosDB, DominosVersion
## OptionalDeps: Ace3, LibKeyBound-1.0, Masque, FlyPaper
embeds.xml
@@ -21,3 +21,4 @@ menuBar.lua
vehicleBar.lua
minimap.lua
bindingsUpdater.lua
+extraActionBar.lua
View
@@ -0,0 +1,36 @@
+local ExtraActionBar = _G['ExtraActionBarFrame']
+if not ExtraActionBar then return end
+
+local ExtraBar = Dominos:CreateClass('Frame', Dominos.Frame)
+Dominos.ExtraBar = ExtraBar
+
+function ExtraBar:New()
+ if UIPARENT_MANAGED_FRAME_POSITIONS['ExtraActionBarFrame'] then
+ UIPARENT_MANAGED_FRAME_POSITIONS['ExtraActionBarFrame'] = nil
+ end
+
+ local f = self.super.New(self, 'extra')
+ f:SetFrameStrata('HIGH')
+ f:Layout()
+ return f
+end
+
+function ExtraBar:GetDefaults()
+ return {
+ point = 'CENTER',
+ x = -244,
+ y = 0,
+ numButtons = 1,
+ }
+end
+
+function ExtraBar:Layout()
+ ExtraActionBar:SetParent(self.header)
+ ExtraActionBar:ClearAllPoints()
+ ExtraActionBar:SetPoint('CENTER')
+
+ self:SetSize(ExtraActionBar:GetSize())
+
+ self.drag:SetFrameStrata('HIGH')
+ self.drag:SetFrameLevel(ExtraActionBar:GetFrameLevel() + 5)
+end

0 comments on commit 34d55d0

Please sign in to comment.