Update Manager to Modern V2

This commit is contained in:
Clint 2024-06-28 15:51:24 +02:00 committed by GitHub
parent 0c0b71d20a
commit c4e9020157
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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