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:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user