| 871 | void NewUIMessageBoxClose() {} |
| 872 | static bool splash_screen_up = false; |
| 873 | void 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 | } |
| 888 | void CloseSplashScreen(void) { |
| 889 | if (splash_screen_up) { |
| 890 | messageb.Close(); |
no test coverage detected