MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ToggleHUDMode

Function ToggleHUDMode

Descent3/hud.cpp:775–780  ·  view source on GitHub ↗

toggle the hud between cockput & fullscreen modes

Source from the content-addressed store, hash-verified

773
774// toggle the hud between cockput & fullscreen modes
775void ToggleHUDMode() {
776 if (GetHUDMode() == HUD_COCKPIT)
777 SetHUDMode(HUD_FULLSCREEN);
778 else if (GetHUDMode() == HUD_FULLSCREEN)
779 SetHUDMode(HUD_COCKPIT);
780}
781
782// sets the hud item state(what's visible, how it's drawn, etc)
783void SetHUDState(uint16_t hud_mask, uint16_t hud_gr_mask) {

Callers 1

ProcessNormalKeyFunction · 0.85

Calls 2

GetHUDModeFunction · 0.85
SetHUDModeFunction · 0.85

Tested by

no test coverage detected