comparison Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua @ 124:e31b02b24488

Updated for 8.0 pre-patch and BfA.
author yellowfive
date Tue, 17 Jul 2018 09:57:39 -0700
parents 01b63b8ed811
children
comparison
equal deleted inserted replaced
123:7a6364917f86 124:e31b02b24488
1 --[[ $Id: AceGUIWidget-DropDown.lua 1116 2014-10-12 08:15:46Z nevcairiel $ ]]-- 1 --[[ $Id: AceGUIWidget-DropDown.lua 1167 2017-08-29 22:08:48Z funkydude $ ]]--
2 local AceGUI = LibStub("AceGUI-3.0") 2 local AceGUI = LibStub("AceGUI-3.0")
3 3
4 -- Lua APIs 4 -- Lua APIs
5 local min, max, floor = math.min, math.max, math.floor 5 local min, max, floor = math.min, math.max, math.floor
6 local select, pairs, ipairs, type = select, pairs, ipairs, type 6 local select, pairs, ipairs, type = select, pairs, ipairs, type
354 AceGUI:RegisterWidgetType(widgetType, Constructor, widgetVersion) 354 AceGUI:RegisterWidgetType(widgetType, Constructor, widgetVersion)
355 end 355 end
356 356
357 do 357 do
358 local widgetType = "Dropdown" 358 local widgetType = "Dropdown"
359 local widgetVersion = 30 359 local widgetVersion = 31
360 360
361 --[[ Static data ]]-- 361 --[[ Static data ]]--
362 362
363 --[[ UI event handler ]]-- 363 --[[ UI event handler ]]--
364 364
379 end 379 end
380 end 380 end
381 381
382 local function Dropdown_TogglePullout(this) 382 local function Dropdown_TogglePullout(this)
383 local self = this.obj 383 local self = this.obj
384 PlaySound("igMainMenuOptionCheckBoxOn") -- missleading name, but the Blizzard code uses this sound 384 PlaySound(856) -- SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON
385 if self.open then 385 if self.open then
386 self.open = nil 386 self.open = nil
387 self.pullout:Close() 387 self.pullout:Close()
388 AceGUI:ClearFocus() 388 AceGUI:ClearFocus()
389 else 389 else