comparison Libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua @ 124:e31b02b24488

Updated for 8.0 pre-patch and BfA.
author yellowfive
date Tue, 17 Jul 2018 09:57:39 -0700
parents e635cd648e01
children
comparison
equal deleted inserted replaced
123:7a6364917f86 124:e31b02b24488
1 --[[----------------------------------------------------------------------------- 1 --[[-----------------------------------------------------------------------------
2 Frame Container 2 Frame Container
3 -------------------------------------------------------------------------------]] 3 -------------------------------------------------------------------------------]]
4 local Type, Version = "Frame", 25 4 local Type, Version = "Frame", 26
5 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) 5 local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
6 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end 6 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
7 7
8 -- Lua APIs 8 -- Lua APIs
9 local pairs, assert, type = pairs, assert, type 9 local pairs, assert, type = pairs, assert, type
19 19
20 --[[----------------------------------------------------------------------------- 20 --[[-----------------------------------------------------------------------------
21 Scripts 21 Scripts
22 -------------------------------------------------------------------------------]] 22 -------------------------------------------------------------------------------]]
23 local function Button_OnClick(frame) 23 local function Button_OnClick(frame)
24 PlaySound("gsTitleOptionExit") 24 PlaySound(799) -- SOUNDKIT.GS_TITLE_OPTION_EXIT
25 frame.obj:Hide() 25 frame.obj:Hide()
26 end 26 end
27 27
28 local function Frame_OnShow(frame) 28 local function Frame_OnShow(frame)
29 frame.obj:Fire("OnShow") 29 frame.obj:Fire("OnShow")