2020-05-16 08:12:54 +00:00
|
|
|
package ui
|
|
|
|
|
|
|
|
type OverlayProxy struct {
|
|
|
|
Proxy
|
|
|
|
}
|
|
|
|
|
2020-05-16 08:57:14 +00:00
|
|
|
func (p *OverlayProxy) Shown() {
|
2020-05-16 08:12:54 +00:00
|
|
|
overlay, ok := p.Content.(Overlay)
|
|
|
|
if ok {
|
2020-05-16 08:57:14 +00:00
|
|
|
overlay.Shown()
|
2020-05-16 08:12:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-16 08:57:14 +00:00
|
|
|
func (p *OverlayProxy) Hidden() {
|
2020-05-16 08:12:54 +00:00
|
|
|
overlay, ok := p.Content.(Overlay)
|
|
|
|
if ok {
|
2020-05-16 08:57:14 +00:00
|
|
|
overlay.Hidden()
|
2020-05-16 08:12:54 +00:00
|
|
|
}
|
|
|
|
}
|