3dca925 - Fix up libraries
[wowui.git] / libs / AceGUI-3.0-SharedMediaWidgets / StatusbarWidget.lua
index 8abbd4a..2d0e32c 100644 (file)
@@ -8,7 +8,7 @@ local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0")
 
 do
        local widgetType = "LSM30_Statusbar"
 
 do
        local widgetType = "LSM30_Statusbar"
-       local widgetVersion = 9
+       local widgetVersion = 11
 
        local contentFrameCache = {}
        local function ReturnSelf(self)
 
        local contentFrameCache = {}
        local function ReturnSelf(self)
@@ -53,8 +53,8 @@ do
                                local font, size = text:GetFont()
                                text:SetFont(font,size,"OUTLINE")
 
                                local font, size = text:GetFont()
                                text:SetFont(font,size,"OUTLINE")
 
-                               text:SetPoint("LEFT", check, "RIGHT", 3, 0)
-                               text:SetPoint("RIGHT", frame, "RIGHT", -2, 0)
+                               text:SetPoint("TOPLEFT", check, "TOPRIGHT", 3, 0)
+                               text:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -2, 0)
                                text:SetJustifyH("LEFT")
                                text:SetText("Test Test Test Test Test Test Test")
                        frame.text = text
                                text:SetJustifyH("LEFT")
                                text:SetText("Test Test Test Test Test Test Test")
                        frame.text = text
@@ -141,7 +141,9 @@ do
                else
                        AceGUI:SetFocus(self)
                        self.dropdown = AGSMW:GetDropDownFrame()
                else
                        AceGUI:SetFocus(self)
                        self.dropdown = AGSMW:GetDropDownFrame()
+                       local width = self.frame:GetWidth()
                        self.dropdown:SetPoint("TOPLEFT", self.frame, "BOTTOMLEFT")
                        self.dropdown:SetPoint("TOPLEFT", self.frame, "BOTTOMLEFT")
+                       self.dropdown:SetPoint("TOPRIGHT", self.frame, "BOTTOMRIGHT", width < 160 and (160 - width) or 0, 0)
                        for k, v in pairs(self.list) do
                                sortedlist[#sortedlist+1] = k
                        end
                        for k, v in pairs(self.list) do
                                sortedlist[#sortedlist+1] = k
                        end
@@ -198,13 +200,14 @@ do
                frame.dropButton:SetScript("OnClick",ToggleDrop)
                frame:SetScript("OnHide", OnHide)
 
                frame.dropButton:SetScript("OnClick",ToggleDrop)
                frame:SetScript("OnHide", OnHide)
 
-               local bar = frame:CreateTexture(nil, "ARTWORK")
+               local bar = frame:CreateTexture(nil, "OVERLAY")
                        bar:SetPoint("TOPLEFT", frame,"TOPLEFT",6,-25)
                        bar:SetPoint("BOTTOMRIGHT", frame,"BOTTOMRIGHT", -21, 5)
                        bar:SetPoint("TOPLEFT", frame,"TOPLEFT",6,-25)
                        bar:SetPoint("BOTTOMRIGHT", frame,"BOTTOMRIGHT", -21, 5)
+                       bar:SetAlpha(0.5)
                self.bar = bar
 
                self.alignoffset = 31
                self.bar = bar
 
                self.alignoffset = 31
-               
+
                self.OnRelease = OnRelease
                self.OnAcquire = OnAcquire
                self.ClearFocus = ClearFocus
                self.OnRelease = OnRelease
                self.OnAcquire = OnAcquire
                self.ClearFocus = ClearFocus