Implement hypertext (badly)
This commit is contained in:
@@ -86,7 +86,11 @@ func (w *Widget) mouseButton(value bool) {
|
||||
|
||||
func (w *Widget) Image(aniStep int) (*ebiten.Image, error) {
|
||||
if w.disabled {
|
||||
return w.disabledImage, nil
|
||||
if w.disabledImage != nil {
|
||||
return w.disabledImage, nil
|
||||
}
|
||||
|
||||
return w.sprite.Image, nil
|
||||
}
|
||||
|
||||
if w.mouseButtonDownImage != nil && w.hoverState && w.mouseButtonState {
|
||||
|
Reference in New Issue
Block a user