1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-10-31 16:27:18 -04:00
OpenDiablo2/d2render/d2ui/widget.go
ndechiara 1c2b4869a1 Migrate out d2common d2helper d2data modules (#195)
* Switch items to dynamic load with a common struct, add misc.txt loading
* Update Ebiten Reference
* Switch references to point to D2Shared
* Migrate part 2
2019-11-17 00:16:33 -05:00

17 lines
325 B
Go

package d2ui
import (
"github.com/OpenDiablo2/OpenDiablo2/d2corecommon/d2coreinterface"
)
// Widget defines an object that is a UI widget
type Widget interface {
d2coreinterface.Drawable
GetEnabled() bool
SetEnabled(enabled bool)
SetPressed(pressed bool)
GetPressed() bool
OnActivated(callback func())
Activate()
}