Dimension setter added.

This commit is contained in:
2023-08-25 11:59:41 -04:00
parent 403a81d0fb
commit 4930557ba3

View File

@@ -34,6 +34,7 @@ func init() {
}
type Splash struct {
Dimensions groovy.Area
bgcolor color.RGBA
increment int
events map[groovy.SceneEvent]func()
@@ -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
}