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