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

Function xParSysEventCB

src/SB/Core/x/xParSys.cpp:241–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241S32 xParSysEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* toParamWidget)
242{
243 xParSys* t = (xParSys*)to;
244
245 switch (toEvent)
246 {
247 case eEventReset:
248 xParSysReset(t);
249 break;
250 case eEventVisible:
251 t->visible = TRUE;
252 if (t->group != NULL)
253 {
254 xParGroupSetVisibility(t->group, t->visible);
255 }
256 break;
257 case eEventInvisible:
258 t->visible = FALSE;
259 if (t->group != NULL)
260 {
261 xParGroupSetVisibility(t->group, t->visible);
262 }
263 break;
264 case eEventOn:
265 if (t->group != NULL)
266 {
267 xParGroupSetActive(t->group, TRUE);
268 }
269 break;
270 case eEventOff:
271 if (t->group != NULL)
272 {
273 xParGroupSetActive(t->group, FALSE);
274 }
275 break;
276 }
277
278 return TRUE;
279}
280
281static void xParGroupUpdateR(xParSys* s, xParGroup* g, F32 dt);
282static void xParGroupUpdate(xParSys* s, xParGroup* g, F32 dt);

Callers

nothing calls this directly

Calls 3

xParSysResetFunction · 0.85
xParGroupSetVisibilityFunction · 0.85
xParGroupSetActiveFunction · 0.85

Tested by

no test coverage detected