Using the refactored Resources system.

This commit is contained in:
Sander Schobers 2020-05-25 22:24:58 +02:00
parent 62cbe14170
commit 7230ac966b

View File

@ -5,10 +5,9 @@ import (
"image/color"
"log"
"opslag.de/schobers/fs/ricefs"
"opslag.de/schobers/geom"
"opslag.de/schobers/zntg"
"opslag.de/schobers/zntg/addons/res"
"opslag.de/schobers/zntg/addons/riceres"
"opslag.de/schobers/zntg/play"
"opslag.de/schobers/zntg/ui"
@ -28,9 +27,8 @@ func main() {
}
func openResources(box *rice.Box) ui.Resources {
fs := ricefs.NewFs(box)
resources, _ := res.NewAferoFallbackResources(`res`, fs, `botanim`)
return resources
embedded := riceres.New(box)
return ui.NewFallbackResources(ui.NewPathResources(nil, box.Name()), embedded)
}
type app struct {