some refinement

This commit is contained in:
2025-09-05 22:18:36 -04:00
parent 4e6d720a91
commit 8e7db331a7
16 changed files with 371 additions and 119 deletions

View File

@@ -3,7 +3,6 @@ package buttons
import (
"image/color"
"git.vezzani.net/ben/games/common/elements/v1"
"git.vezzani.net/ben/games/common/elements/v1/blocks"
"git.vezzani.net/ben/games/common/elements/v1/mouse"
"git.vezzani.net/ben/games/common/ux/v1"
@@ -13,7 +12,7 @@ import (
"golang.org/x/image/font"
)
func New(ops ...OptFunc) elements.Element {
func New(ops ...OptFunc) *Button {
b := Button{
Block: blocks.Block{},
font: ux.FontFace,