Dimension setter added.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user