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

Method DoUI

Descent3/mmItem.cpp:361–377  ·  view source on GitHub ↗

does user interface.

Source from the content-addressed store, hash-verified

359
360// does user interface.
361int mmInterface::DoUI() {
362 UI_frame_result = -1;
363 ui_ShowCursor();
364
365 SetUICallback(MenuScene);
366
367 while (UI_frame_result == -1) {
368 Descent->defer();
369 DoUIFrame();
370 rend_Flip();
371 }
372
373 ui_HideCursor();
374 ui_Flush();
375
376 return UI_frame_result;
377}
378
379// add item.
380bool mmInterface::AddItem(int id, int key, const char *text, int type) {

Callers 15

PilotSelectFunction · 0.45
PilotChooseFunction · 0.45
DoPilotTauntScreenFunction · 0.45
PltSelectShipFunction · 0.45
ShowPilotPicDialogFunction · 0.45
SaveGameDialogFunction · 0.45
LoadGameDialogFunction · 0.45
MainMultiplayerMenuFunction · 0.45
DisplayNetDLLHelpFunction · 0.45
ShowNetgameInfoFunction · 0.45

Calls 7

ui_ShowCursorFunction · 0.85
SetUICallbackFunction · 0.85
DoUIFrameFunction · 0.85
ui_HideCursorFunction · 0.85
ui_FlushFunction · 0.85
rend_FlipFunction · 0.50
deferMethod · 0.45

Tested by

no test coverage detected