Update Manager to Modern V2
This commit is contained in:
parent
0c0b71d20a
commit
c4e9020157
1 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,10 @@ function manager:OpenWindow(window: types.Window)
|
||||||
self.Events.WindowOpened:Fire(window, true)
|
self.Events.WindowOpened:Fire(window, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function manager:OpenWindowByName(name: string)
|
||||||
|
self:OpenWindow(self:GetWindow(name))
|
||||||
|
end
|
||||||
|
|
||||||
function manager:CloseWindow(window: types.Window)
|
function manager:CloseWindow(window: types.Window)
|
||||||
window:Close()
|
window:Close()
|
||||||
window:Remove()
|
window:Remove()
|
||||||
|
@ -71,4 +75,4 @@ function manager:Clean()
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
return manager
|
return manager
|
||||||
|
|
Loading…
Reference in a new issue