MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / CancelMenu

Method CancelMenu

core/MenuManager.cpp:783–793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783void MenuManager::CancelMenu(IBaseMenu *menu)
784{
785 if (s_VoteHandler.GetCurrentMenu() == menu
786 && !s_VoteHandler.IsCancelling())
787 {
788 s_VoteHandler.CancelVoting();
789 return;
790 }
791
792 menu->Cancel();
793}
794
795bool MenuManager::StartVote(IBaseMenu *menu, unsigned int num_clients, int clients[], unsigned int max_time, unsigned int flags)
796{

Callers 3

Cancel_FinallyMethod · 0.45
Cancel_FinallyMethod · 0.45
CancelMenuFunction · 0.45

Calls 4

GetCurrentMenuMethod · 0.80
IsCancellingMethod · 0.80
CancelVotingMethod · 0.45
CancelMethod · 0.45

Tested by

no test coverage detected