20 lines
282 B
Go
20 lines
282 B
Go
|
package ui
|
||
|
|
||
|
type OverlayProxy struct {
|
||
|
Proxy
|
||
|
}
|
||
|
|
||
|
func (p *OverlayProxy) OverlayShown() {
|
||
|
overlay, ok := p.Content.(Overlay)
|
||
|
if ok {
|
||
|
overlay.OverlayShown()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (p *OverlayProxy) OverlayHidden() {
|
||
|
overlay, ok := p.Content.(Overlay)
|
||
|
if ok {
|
||
|
overlay.OverlayHidden()
|
||
|
}
|
||
|
}
|