MCPcopy Create free account
hub / github.com/SolarLune/masterplan / AddPage

Method AddPage

menu.go:563–567  ·  view source on GitHub ↗
(pageName string)

Source from the content-addressed store, hash-verified

561}
562
563func (menu *Menu) AddPage(pageName string) *Container {
564 page := NewContainer(menu.Rect, false)
565 menu.Pages[pageName] = page
566 return page
567}
568
569func (menu *Menu) SetPage(pageName string) {
570 menu.NextPage = pageName

Callers 5

NewMenuFunction · 0.95
ConstructMenusFunction · 0.95
NewPageFunction · 0.45
NewSubPageContentsFunction · 0.45
ReceiveMessageMethod · 0.45

Calls 1

NewContainerFunction · 0.85

Tested by

no test coverage detected