Wire the sliders into the config file

Not yet the game itself. That's still TODO.
This commit is contained in:
2020-03-24 23:11:37 +00:00
parent 20ad9ae6f8
commit d376d9850c
3 changed files with 53 additions and 1 deletions

View File

@@ -180,6 +180,12 @@ func (d *Driver) ValueInt(id string, into *int) error {
return nil
}
func (d *Driver) SetValueInt(id string, value int) error {
vStr := strconv.Itoa(value)
return d.SetValue(id, vStr)
}
func (d *Driver) Update(screenX, screenY int) error {
// This will be updated while processing hovers
d.tooltip = ""