MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / Off

Method Off

src/SB/Game/zNPCSupport.cpp:148–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148S32 NPCWidget::Off(const zNPCCommon* npc, S32 theman)
149{
150 if (!theman && !this->NPCIsTheLocker(npc))
151 {
152 return 0;
153 }
154
155 if (npc)
156 {
157 this->Unlock(npc);
158 }
159
160 zEntEvent(this->base_widge, eEventInvisible);
161 zEntEvent(this->base_widge, eEventUIFocusOff_Unselect);
162 return 1;
163}
164
165S32 NPCWidget::Unlock(const zNPCCommon* npc)
166{

Callers 5

ExitMethod · 0.80
SuspendMethod · 0.80
ResumeMethod · 0.80
ProcessMethod · 0.80

Calls 3

NPCIsTheLockerMethod · 0.95
UnlockMethod · 0.95
zEntEventFunction · 0.50

Tested by

no test coverage detected