wip I guess
This commit is contained in:
@@ -3,16 +3,16 @@ package buttons
|
||||
import (
|
||||
"image/color"
|
||||
|
||||
"git.vezzani.net/ben/games/common/elements/v1"
|
||||
"git.vezzani.net/ben/games/common/elements/v1/base"
|
||||
"git.vezzani.net/ben/games/common/elements/v1/blocks"
|
||||
"git.vezzani.net/ben/games/common/elements/v1/mouse"
|
||||
)
|
||||
|
||||
type OptFunc func(button *Button)
|
||||
|
||||
func Core(f elements.OptFunc) OptFunc {
|
||||
func Core(f base.OptFunc) OptFunc {
|
||||
return func(b *Button) {
|
||||
f(&b.Core)
|
||||
f(&b.Element)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user