Using the refactored Resources system.
This commit is contained in:
parent
62cbe14170
commit
7230ac966b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user