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

@@ -0,0 +1,15 @@
package ui
import (
"image"
"github.com/hajimehoshi/ebiten"
)
// A static element is not a widget; it merely displays some pixels and may
// optionally have a tooltip for display within bounds
type staticElement struct {
bounds image.Rectangle
image *ebiten.Image
tooltip string
}