Mercurial > wow > hotcorners
comparison Libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua @ 17:3000eccbf1a0 v7.3.0.017
- ToC Update.
author | Tercio |
---|---|
date | Sat, 02 Sep 2017 14:10:48 -0300 |
parents | fc346da3afd9 |
children |
comparison
equal
deleted
inserted
replaced
16:6c64dd7f16a2 | 17:3000eccbf1a0 |
---|---|
19 OnClose | 19 OnClose |
20 | 20 |
21 ]] | 21 ]] |
22 do | 22 do |
23 local Type = "Window" | 23 local Type = "Window" |
24 local Version = 4 | 24 local Version = 6 |
25 | |
26 local function frameOnShow(this) | |
27 this.obj:Fire("OnShow") | |
28 end | |
25 | 29 |
26 local function frameOnClose(this) | 30 local function frameOnClose(this) |
27 this.obj:Fire("OnClose") | 31 this.obj:Fire("OnClose") |
28 end | 32 end |
29 | 33 |
30 local function closeOnClick(this) | 34 local function closeOnClick(this) |
31 PlaySound("gsTitleOptionExit") | 35 PlaySound(799) -- SOUNDKIT.GS_TITLE_OPTION_EXIT |
32 this.obj:Hide() | 36 this.obj:Hide() |
33 end | 37 end |
34 | 38 |
35 local function frameOnMouseDown(this) | 39 local function frameOnMouseDown(this) |
36 AceGUI:ClearFocus() | 40 AceGUI:ClearFocus() |
178 frame:SetMovable(true) | 182 frame:SetMovable(true) |
179 frame:SetResizable(true) | 183 frame:SetResizable(true) |
180 frame:SetFrameStrata("FULLSCREEN_DIALOG") | 184 frame:SetFrameStrata("FULLSCREEN_DIALOG") |
181 frame:SetScript("OnMouseDown", frameOnMouseDown) | 185 frame:SetScript("OnMouseDown", frameOnMouseDown) |
182 | 186 |
187 frame:SetScript("OnShow",frameOnShow) | |
183 frame:SetScript("OnHide",frameOnClose) | 188 frame:SetScript("OnHide",frameOnClose) |
184 frame:SetMinResize(240,240) | 189 frame:SetMinResize(240,240) |
185 frame:SetToplevel(true) | 190 frame:SetToplevel(true) |
186 | 191 |
187 local titlebg = frame:CreateTexture(nil, "BACKGROUND") | 192 local titlebg = frame:CreateTexture(nil, "BACKGROUND") |