MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / hud_startup

Function hud_startup

TheForceEngine/TFE_DarkForces/hud.cpp:505–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503 }
504
505 void hud_startup(JBool fromSave)
506 {
507 // Reset cached values.
508 s_prevBatteryPower = 0;
509 s_prevLifeCount = 0;
510 s_prevShields = 0;
511 s_prevHealth = 0;
512 s_prevPrimaryAmmo = 0;
513 s_prevSecondaryAmmo = 0;
514 s_prevSuperchageHud = JFALSE;
515 s_prevHeadlampActive = JFALSE;
516
517 if (!fromSave)
518 {
519 s_secretsFound = 0;
520 s_secretsPercent = 0;
521 }
522
523 hud_initAnimation();
524 if (s_config.showUI)
525 {
526 hud_setupToggleAnim1(JTRUE);
527 }
528 offscreenBuffer_drawTexture(s_cachedHudRight, s_hudLightOff, 19, 0);
529 }
530
531 void hud_drawMessage(u8* framebuffer)
532 {

Callers 2

mission_startTaskFuncFunction · 0.85
mission_setupTasksFunction · 0.85

Calls 3

hud_initAnimationFunction · 0.85
hud_setupToggleAnim1Function · 0.85

Tested by

no test coverage detected