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

Function show_hud

src/SB/Game/zEntCruiseBubble.cpp:1466–1483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1464 }
1465
1466 void show_hud()
1467 {
1468 // scheduling and register usage off
1469 hud.gizmos_used = 1;
1470 basic_rect<F32> reticle_bound;
1471 reticle_bound.set_size(current_tweak->hud.reticle.size);
1472 // reticle_bound gets loaded again as r3 here which shouldn't be
1473 // might be a non functional match for edge cases
1474 reticle_bound.center(0.5f, 0.5f);
1475 show_gizmo(hud.gizmo[0], reticle_bound, hud.model.reticle);
1476
1477 hud.model.wind->Alpha = 0.0f;
1478 // scheduling off for this float
1479 hud.alpha = 0.0f;
1480 hud.alpha_vel = 1.0f / current_tweak->hud.time_fade;
1481
1482 flash_hud();
1483 }
1484
1485 void hide_hud()
1486 {

Callers 1

startMethod · 0.70

Calls 2

show_gizmoFunction · 0.85
flash_hudFunction · 0.85

Tested by

no test coverage detected