some refinement
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package stacks
|
||||
|
||||
import (
|
||||
"git.vezzani.net/ben/games/common/elements/v1"
|
||||
"git.vezzani.net/ben/games/common/elements/v1/core"
|
||||
"git.vezzani.net/ben/games/common/elements/v1/mouse"
|
||||
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
func New(ops ...OptFunc) elements.Element {
|
||||
func New(ops ...OptFunc) *Stack {
|
||||
s := Stack{}
|
||||
for op := range ops {
|
||||
ops[op](&s)
|
||||
@@ -29,7 +29,7 @@ func New(ops ...OptFunc) elements.Element {
|
||||
}
|
||||
|
||||
type Stack struct {
|
||||
elements.Core
|
||||
core.Element
|
||||
mouse.NopHandler
|
||||
horizontal bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user