Implement hypertext (badly)

This commit is contained in:
2020-03-22 23:29:40 +00:00
parent 971b3178d6
commit c67ee206cd
4 changed files with 82 additions and 23 deletions

View File

@@ -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 {