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

Method Cancel

core/MenuStyle_Base.cpp:800–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

798}
799
800void CBaseMenu::Cancel()
801{
802 if (m_bCancelling)
803 {
804 return;
805 }
806
807#if defined MENU_DEBUG
808 logger->LogMessage("[SM_MENU] CBaseMenu::Cancel(%p) (m_bShouldDelete %d)",
809 this,
810 m_bShouldDelete);
811#endif
812
813 m_bCancelling = true;
814 Cancel_Finally();
815 m_bCancelling = false;
816
817 if (m_bShouldDelete)
818 {
819 InternalDelete();
820 }
821}
822
823void CBaseMenu::Destroy(bool releaseHandle)
824{

Callers 5

CancelMenuMethod · 0.45
CancelVotingMethod · 0.45
HandleDetourFunction · 0.45
vhook.cppFile · 0.45
Callback_stringtFunction · 0.45

Calls 1

LogMessageMethod · 0.45

Tested by

no test coverage detected