diff --git a/ui/ctx/ctx.go b/ui/ctx/ctx.go index 7af9cdb..3dd7e1a 100644 --- a/ui/ctx/ctx.go +++ b/ui/ctx/ctx.go @@ -1,19 +1,30 @@ package ctx -import "github.com/mrusme/gobbs/system" +import ( + "github.com/mrusme/gobbs/config" + "github.com/mrusme/gobbs/system" + "go.uber.org/zap" +) type Ctx struct { Screen [2]int Content [2]int + Config *config.Config Systems []*system.System Loading bool + Logger *zap.SugaredLogger } -func New() Ctx { +func New( + cfg *config.Config, + logger *zap.SugaredLogger, +) Ctx { return Ctx{ Screen: [2]int{0, 0}, Content: [2]int{0, 0}, + Config: cfg, Loading: false, + Logger: logger, } }