Sander Schobers
9af85d79a6
Added proxy that proxies overlay callbacks as well (on top of control callbacks).
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()
|
|
}
|
|
}
|