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

Function CreateSplashScreen

Descent3/multi_dll_mgr.cpp:873–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871void NewUIMessageBoxClose() {}
872static bool splash_screen_up = false;
873void CreateSplashScreen(const char *msg, int usecancel) {
874 if (splash_screen_up)
875 return;
876 splash_screen_up = true;
877 ti_cancel_on = UITextItem(TXT_CANCEL, UICOL_HOTSPOT_HI);
878 ti_cancel_off = UITextItem(TXT_CANCEL, UICOL_HOTSPOT_LO);
879 ti_msg = UITextItem(msg);
880 messageb.Create(0, 0, 384, UIF_CENTER);
881 ti.Create(&messageb, &ti_msg, 20, 50, UIF_CENTER);
882
883 if (usecancel) {
884 uihcancel.Create(&messageb, 99, KEY_ESC, &ti_cancel_off, &ti_cancel_on, 1, 75, 100, 15, UIF_CENTER);
885 }
886 messageb.Open();
887}
888void CloseSplashScreen(void) {
889 if (splash_screen_up) {
890 messageb.Close();

Callers 1

ShowNetgameInfoFunction · 0.85

Calls 3

UITextItemClass · 0.50
CreateMethod · 0.45
OpenMethod · 0.45

Tested by

no test coverage detected