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

Function DoUIFrameWithoutInput

Descent3/newui_core.cpp:643–665  ·  view source on GitHub ↗

does one frame of ui.

Source from the content-addressed store, hash-verified

641
642// does one frame of ui.
643void DoUIFrameWithoutInput() {
644 if (Multi_bail_ui_menu) {
645 UI_frame_result = NEWUIRES_FORCEQUIT;
646 } else {
647 if (UI_callback)
648 (*UI_callback)();
649
650 if (GetFunctionMode() == MENU_MODE) {
651 tMusicSeqInfo music_info;
652
653 Sound_system.BeginSoundFrame(false);
654
655 music_info.frametime = UIFrameTime;
656 music_info.player_dead = false;
657 music_info.started_level = false;
658 D3MusicDoFrame(&music_info);
659
660 Sound_system.EndSoundFrame();
661 }
662
663 UI_frame_result = ui_DoFrame(false);
664 }
665}
666
667int GetUIFrameResult() { return UI_frame_result; }
668

Callers 2

GameRenderFrameFunction · 0.85
DoUIMethod · 0.85

Calls 5

GetFunctionModeFunction · 0.85
D3MusicDoFrameFunction · 0.85
ui_DoFrameFunction · 0.85
BeginSoundFrameMethod · 0.80
EndSoundFrameMethod · 0.80

Tested by

no test coverage detected