| 1338 | } |
| 1339 | |
| 1340 | static 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 | |
| 1363 | S32 zUIPortalEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* toParamWidget) |
| 1364 | { |
no test coverage detected