Mercurial > wow > askmrrobot
comparison Libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua @ 106:e635cd648e01 v49
7.2 update
author | yellowfive |
---|---|
date | Tue, 28 Mar 2017 16:10:00 -0700 |
parents | 01b63b8ed811 |
children | e31b02b24488 |
comparison
equal
deleted
inserted
replaced
105:3ce266c86bd3 | 106:e635cd648e01 |
---|---|
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 = 5 |
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 |
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") |