Display overlay text in the UI

We still have fonts to do, so this is very ugly, but it at least shows
*something* on the screen now.
This commit is contained in:
2020-03-26 22:09:26 +00:00
parent a0fd653c24
commit e4ce932324
7 changed files with 107 additions and 34 deletions

View File

@@ -2,7 +2,6 @@ package ui
import (
"image"
"log"
"math"
"strconv"
@@ -51,7 +50,7 @@ func registerCheckbox(d *Driver, r *menus.Record) error {
baseSpr: sprites[0], // unchecked
clickSpr: sprites[2], // checked
frozenSpr: sprites[1],
hoverImpl: hoverImpl{text: r.Desc},
hoverImpl: hoverImpl{text: r.Text},
},
valueImpl: valueImpl{str: "0"},
}
@@ -125,8 +124,6 @@ func (s *slider) registerMouseClick() {
}
s.valueImpl.str = strconv.Itoa(value)
log.Printf("Slider value: %#v", s.valueImpl.str)
log.Printf("%#+v", s.steps)
s.clickImpl.registerMouseClick()
}