1
0
Fork 0

feat(ui): implement new ui system

This commit is contained in:
Henrik Hautakoski 2025-10-27 20:17:13 +01:00
parent d407eaad8b
commit 6cf0e4abb4
11 changed files with 430 additions and 113 deletions

14
game/ui/component.go Normal file
View 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()
}