956383a - Update all libraries
[wowui.git] / libs / AceGUI-3.0 / widgets / AceGUIContainer-TreeGroup.lua
index 6fbe066..617d5dc 100644 (file)
@@ -2,7 +2,7 @@
 TreeGroup Container
 Container that uses a tree control to switch between groups.
 -------------------------------------------------------------------------------]]
 TreeGroup Container
 Container that uses a tree control to switch between groups.
 -------------------------------------------------------------------------------]]
-local Type, Version = "TreeGroup", 36
+local Type, Version = "TreeGroup", 40
 local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
 
 local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
 
@@ -212,7 +212,7 @@ local function Button_OnEnter(frame)
        if self.enabletooltips then
                GameTooltip:SetOwner(frame, "ANCHOR_NONE")
                GameTooltip:SetPoint("LEFT",frame,"RIGHT")
        if self.enabletooltips then
                GameTooltip:SetOwner(frame, "ANCHOR_NONE")
                GameTooltip:SetPoint("LEFT",frame,"RIGHT")
-               GameTooltip:SetText(frame.text:GetText() or "", 1, .82, 0, 1)
+               GameTooltip:SetText(frame.text:GetText() or "", 1, .82, 0, true)
 
                GameTooltip:Show()
        end
 
                GameTooltip:Show()
        end
@@ -295,6 +295,7 @@ local methods = {
        ["OnAcquire"] = function(self)
                self:SetTreeWidth(DEFAULT_TREE_WIDTH, DEFAULT_TREE_SIZABLE)
                self:EnableButtonTooltips(true)
        ["OnAcquire"] = function(self)
                self:SetTreeWidth(DEFAULT_TREE_WIDTH, DEFAULT_TREE_SIZABLE)
                self:EnableButtonTooltips(true)
+               self.frame:SetScript("OnUpdate", FirstFrameUpdate)
        end,
 
        ["OnRelease"] = function(self)
        end,
 
        ["OnRelease"] = function(self)
@@ -335,6 +336,8 @@ local methods = {
                button.toggle.button = button
                button.toggle:SetScript("OnClick",Expand_OnClick)
 
                button.toggle.button = button
                button.toggle:SetScript("OnClick",Expand_OnClick)
 
+               button.text:SetHeight(14) -- Prevents text wrapping
+
                return button
        end,
 
                return button
        end,
 
@@ -667,7 +670,7 @@ local function Constructor()
 
        local scrollbg = scrollbar:CreateTexture(nil, "BACKGROUND")
        scrollbg:SetAllPoints(scrollbar)
 
        local scrollbg = scrollbar:CreateTexture(nil, "BACKGROUND")
        scrollbg:SetAllPoints(scrollbar)
-       scrollbg:SetTexture(0,0,0,0.4)
+       scrollbg:SetColorTexture(0,0,0,0.4)
 
        local border = CreateFrame("Frame",nil,frame)
        border:SetPoint("TOPLEFT", treeframe, "TOPRIGHT")
 
        local border = CreateFrame("Frame",nil,frame)
        border:SetPoint("TOPLEFT", treeframe, "TOPRIGHT")