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

Method Open

menu.go:693–706  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

691}
692
693func (menu *Menu) Open() {
694 menu.Opened = true
695 if menu.OnOpen != nil {
696 menu.OnOpen()
697 }
698 if menu.CurrentPage != "" && menu.Pages[menu.CurrentPage].OnOpen != nil {
699 menu.Pages[menu.CurrentPage].OnOpen()
700 }
701
702 // For confirmation menus, they play a "progress" sound when they open
703 if menu.IsAConfirmMenu {
704 PlayUISound(UISoundTypeProgress)
705 }
706}
707
708func (menu *Menu) Close() {
709 menu.Opened = false

Callers 15

UpdateMethod · 0.95
ConstructMenusFunction · 0.95
DrawMethod · 0.45
HandleDroppedFilesMethod · 0.45
NewSoundContentsFunction · 0.45
NewImageContentsFunction · 0.45
NewMapContentsFunction · 0.45
UpdateMethod · 0.45
NewLinkContentsFunction · 0.45
NewTableContentsFunction · 0.45
NewInternetContentsFunction · 0.45
ParseMethod · 0.45

Calls 1

PlayUISoundFunction · 0.85

Tested by

no test coverage detected