git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2ddc77e - Remove AceTimer
[wowui.git]
/
libs
/
AceGUI-3.0
/
widgets
/
AceGUIContainer-Frame.lua
diff --git
a/libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua
b/libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua
index
0dae68c
..
020eaf6
100644
(file)
--- a/
libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua
+++ b/
libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua
@@
-1,7
+1,7
@@
--[[-----------------------------------------------------------------------------
Frame Container
-------------------------------------------------------------------------------]]
--[[-----------------------------------------------------------------------------
Frame Container
-------------------------------------------------------------------------------]]
-local Type, Version = "Frame", 2
4
+local Type, Version = "Frame", 2
6
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
@@
-21,10
+21,14
@@
local CreateFrame, UIParent = CreateFrame, UIParent
Scripts
-------------------------------------------------------------------------------]]
local function Button_OnClick(frame)
Scripts
-------------------------------------------------------------------------------]]
local function Button_OnClick(frame)
- PlaySound(
"gsTitleOptionExit")
+ PlaySound(
PlaySoundKitID and "gsTitleOptionExit" or 799) -- SOUNDKIT.GS_TITLE_OPTION_EXIT
frame.obj:Hide()
end
frame.obj:Hide()
end
+local function Frame_OnShow(frame)
+ frame.obj:Fire("OnShow")
+end
+
local function Frame_OnClose(frame)
frame.obj:Fire("OnClose")
end
local function Frame_OnClose(frame)
frame.obj:Fire("OnClose")
end
@@
-186,6
+190,7
@@
local function Constructor()
frame:SetBackdropColor(0, 0, 0, 1)
frame:SetMinResize(400, 200)
frame:SetToplevel(true)
frame:SetBackdropColor(0, 0, 0, 1)
frame:SetMinResize(400, 200)
frame:SetToplevel(true)
+ frame:SetScript("OnShow", Frame_OnShow)
frame:SetScript("OnHide", Frame_OnClose)
frame:SetScript("OnMouseDown", Frame_OnMouseDown)
frame:SetScript("OnHide", Frame_OnClose)
frame:SetScript("OnMouseDown", Frame_OnMouseDown)