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

Function sendHudStartMessage

TheForceEngine/TFE_Input/replay.cpp:704–727  ·  view source on GitHub ↗

Just used to create the initial Recording/Replaying notification.

Source from the content-addressed store, hash-verified

702
703 // Just used to create the initial Recording/Replaying notification.
704 bool sendHudStartMessage()
705 {
706 // Don't bother sending messages if the eye isn't present yet.
707 if (!TFE_DarkForces::s_playerEye)
708 {
709 return false;
710 }
711
712 if (demoStartNotified)
713 {
714 demoStartNotified = false;
715 if (isRecording())
716 {
717 TFE_DarkForces::hud_sendTextMessage("Recording started...", 0, false);
718 return true;
719 }
720 else if (isDemoPlayback())
721 {
722 TFE_DarkForces::hud_sendTextMessage("Playback started...", 0, false);
723 return true;
724 }
725 }
726 return false;
727 }
728
729 void sendHudPauseMessage()
730 {

Callers 1

Calls 3

isRecordingFunction · 0.85
hud_sendTextMessageFunction · 0.85
isDemoPlaybackFunction · 0.85

Tested by

no test coverage detected