feat(ui): implement new ui system
This commit is contained in:
parent
d407eaad8b
commit
6cf0e4abb4
11 changed files with 430 additions and 113 deletions
14
game/ui/component.go
Normal file
14
game/ui/component.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package ui
|
||||
|
||||
// Focusable is a component that can have focus
|
||||
type Focusable interface {
|
||||
SetFocus(value bool)
|
||||
Focus()
|
||||
Unfocus()
|
||||
HasFocus() bool
|
||||
}
|
||||
|
||||
// ReceivesInput is a component that can receive user input.
|
||||
type ReceivesInput interface {
|
||||
HandleInput()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue