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

Function findUI

src/SB/Game/zUI.cpp:1317–1338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1315}
1316
1317static _zUI* findUI(zScene* s, U32 id)
1318{
1319 S32 i;
1320 _zUI* ui = (_zUI*)s->baseList[eBaseTypeUI];
1321
1322 for (i = 0; i < s->baseCount[eBaseTypeUI]; i++)
1323 {
1324 if (xBaseIsValid(ui) && ui->sasset->id == id)
1325 {
1326 break;
1327 }
1328
1329 ui++;
1330 }
1331
1332 if (i == s->baseCount[eBaseTypeUI])
1333 {
1334 return NULL;
1335 }
1336
1337 return ui;
1338}
1339
1340static zUIFont* findUIFont(zScene* zsc, U32 id)
1341{

Callers 2

init_patsocksFunction · 0.85
zUI_ScenePortalInitFunction · 0.85

Calls 1

xBaseIsValidFunction · 0.85

Tested by

no test coverage detected