refactor: move ui code from game/state/handlers/menu.go to its own package in game/ui
This commit is contained in:
parent
5204166ea1
commit
5f82162201
5 changed files with 118 additions and 45 deletions
6
game/ui/widget.go
Normal file
6
game/ui/widget.go
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package ui
|
||||
|
||||
type Widget interface {
|
||||
HandleInput()
|
||||
Draw(x, y int32, selected bool)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue