X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/3dca925710d145ea5b6fc4ce1c0b230e81001305..956383a3e90c8f7c79c009e96117e41f2ed9425b:/libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua diff --git a/libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua b/libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua index 951cad7..37a365b 100644 --- a/libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua +++ b/libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua @@ -1,4 +1,4 @@ ---[[ $Id: AceGUIWidget-DropDown.lua 1101 2013-10-25 12:46:47Z nevcairiel $ ]]-- +--[[ $Id: AceGUIWidget-DropDown.lua 1161 2017-08-12 14:30:16Z funkydude $ ]]-- local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs @@ -356,7 +356,7 @@ end do local widgetType = "Dropdown" - local widgetVersion = 29 + local widgetVersion = 31 --[[ Static data ]]-- @@ -381,7 +381,7 @@ do local function Dropdown_TogglePullout(this) local self = this.obj - PlaySound("igMainMenuOptionCheckBoxOn") -- missleading name, but the Blizzard code uses this sound + PlaySound(PlaySoundKitID and "igMainMenuOptionCheckBoxOn" or 856) -- SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON if self.open then self.open = nil self.pullout:Close() @@ -494,9 +494,11 @@ do if disabled then self.text:SetTextColor(0.5,0.5,0.5) self.button:Disable() + self.button_cover:Disable() self.label:SetTextColor(0.5,0.5,0.5) else self.button:Enable() + self.button_cover:Enable() self.label:SetTextColor(1,.82,0) self.text:SetTextColor(1,1,1) end @@ -704,6 +706,7 @@ do button:SetScript("OnClick",Dropdown_TogglePullout) local button_cover = CreateFrame("BUTTON",nil,self.frame) + self.button_cover = button_cover button_cover.obj = self button_cover:SetPoint("TOPLEFT",self.frame,"BOTTOMLEFT",0,25) button_cover:SetPoint("BOTTOMRIGHT",self.frame,"BOTTOMRIGHT")