git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
956383a - Update all libraries
[wowui.git]
/
libs
/
AceGUI-3.0
/
widgets
/
AceGUIContainer-Window.lua
diff --git
a/libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua
b/libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua
index
bb0a2a2
..
6c36aca
100644
(file)
--- a/
libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua
+++ b/
libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua
@@
-21,14
+21,18
@@
local CreateFrame, UIParent = CreateFrame, UIParent
]]
do
local Type = "Window"
]]
do
local Type = "Window"
- local Version = 4
+ local Version = 6
+
+ local function frameOnShow(this)
+ this.obj:Fire("OnShow")
+ end
local function frameOnClose(this)
this.obj:Fire("OnClose")
end
local function closeOnClick(this)
local function frameOnClose(this)
this.obj:Fire("OnClose")
end
local function closeOnClick(this)
- PlaySound(
"gsTitleOptionExit")
+ PlaySound(
PlaySoundKitID and "gsTitleOptionExit" or 799) -- SOUNDKIT.GS_TITLE_OPTION_EXIT
this.obj:Hide()
end
this.obj:Hide()
end
@@
-180,6
+184,7
@@
do
frame:SetFrameStrata("FULLSCREEN_DIALOG")
frame:SetScript("OnMouseDown", frameOnMouseDown)
frame:SetFrameStrata("FULLSCREEN_DIALOG")
frame:SetScript("OnMouseDown", frameOnMouseDown)
+ frame:SetScript("OnShow",frameOnShow)
frame:SetScript("OnHide",frameOnClose)
frame:SetMinResize(240,240)
frame:SetToplevel(true)
frame:SetScript("OnHide",frameOnClose)
frame:SetMinResize(240,240)
frame:SetToplevel(true)