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

Function findUIFont

src/SB/Game/zUI.cpp:1340–1361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1338}
1339
1340static zUIFont* findUIFont(zScene* zsc, U32 id)
1341{
1342 S32 i;
1343 zUIFont* ui = (zUIFont*)zsc->baseList[eBaseTypeUIFont];
1344
1345 for (i = 0; i < zsc->baseCount[eBaseTypeUIFont]; i++)
1346 {
1347 if (xBaseIsValid(ui) && ui->sasset->id == id)
1348 {
1349 break;
1350 }
1351
1352 ui++;
1353 }
1354
1355 if (i == zsc->baseCount[eBaseTypeUIFont])
1356 {
1357 return NULL;
1358 }
1359
1360 return ui;
1361}
1362
1363S32 zUIPortalEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* toParamWidget)
1364{

Callers 2

init_patsocksFunction · 0.85
zUI_ScenePortalInitFunction · 0.85

Calls 1

xBaseIsValidFunction · 0.85

Tested by

no test coverage detected