X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/15537570216afe28cc3a04cd6a41e5fd7ba4cc7f..3dca925710d145ea5b6fc4ce1c0b230e81001305:/libs/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua?ds=inline diff --git a/libs/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua b/libs/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua index 8abbd4a..2d0e32c 100644 --- a/libs/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua +++ b/libs/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua @@ -8,7 +8,7 @@ local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0") do local widgetType = "LSM30_Statusbar" - local widgetVersion = 9 + local widgetVersion = 11 local contentFrameCache = {} local function ReturnSelf(self) @@ -53,8 +53,8 @@ do 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 @@ -141,7 +141,9 @@ do else AceGUI:SetFocus(self) self.dropdown = AGSMW:GetDropDownFrame() + local width = self.frame:GetWidth() 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 @@ -198,13 +200,14 @@ do 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:SetAlpha(0.5) self.bar = bar self.alignoffset = 31 - + self.OnRelease = OnRelease self.OnAcquire = OnAcquire self.ClearFocus = ClearFocus