diff --git a/examples/splashmenu/scenes/splash.go b/examples/splashmenu/scenes/splash.go index 93261e5..7a72a1e 100644 --- a/examples/splashmenu/scenes/splash.go +++ b/examples/splashmenu/scenes/splash.go @@ -34,9 +34,10 @@ func init() { } type Splash struct { - bgcolor color.RGBA - increment int - events map[groovy.SceneEvent]func() + Dimensions groovy.Area + bgcolor color.RGBA + increment int + events map[groovy.SceneEvent]func() } // GetSceneEvents implements groovy.Scene. @@ -73,6 +74,11 @@ func (s *Splash) Update() error { return nil } +// sets sene dimensions +func (s *Splash) SetDimensions(a groovy.Area) { + s.Dimensions = a +} + func (s Splash) SetEventHandler(event groovy.SceneEvent, f func()) { s.events[event] = f }