MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / GUI_StrategicMap_DrawText

Function GUI_StrategicMap_DrawText

src/gui/gui.c:3090–3117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3088}
3089
3090static void GUI_StrategicMap_DrawText(const char *string)
3091{
3092 static uint32 l_timerNext = 0;
3093 Screen oldScreenID;
3094 uint16 y;
3095
3096 oldScreenID = GFX_Screen_SetActive(SCREEN_1);
3097
3098 GUI_Screen_Copy(8, 165, 8, 186, 24, 14, SCREEN_0, SCREEN_1);
3099
3100 GUI_DrawFilledRectangle(64, 172, 255, 185, GFX_GetPixel(64, 186));
3101
3102 GUI_DrawText_Wrapper(string, 64, 175, 12, 0, 0x12);
3103
3104 while (g_timerGUI + 90 < l_timerNext) sleepIdle();
3105
3106 for (y = 185; y > 172; y--) {
3107 GUI_Screen_Copy(8, y, 8, 165, 24, 14, SCREEN_1, SCREEN_0);
3108
3109 for (g_timerTimeout = 3; g_timerTimeout != 0; sleepIdle()) {
3110 if (GUI_StrategicMap_FastForwardToggleWithESC()) break;
3111 }
3112 }
3113
3114 l_timerNext = g_timerGUI + 90;
3115
3116 GFX_Screen_SetActive(oldScreenID);
3117}
3118
3119static uint16 GUI_StrategicMap_ScenarioSelection(uint16 campaignID)
3120{

Calls 6

GFX_Screen_SetActiveFunction · 0.85
GUI_Screen_CopyFunction · 0.85
GUI_DrawFilledRectangleFunction · 0.85
GFX_GetPixelFunction · 0.85
GUI_DrawText_WrapperFunction · 0.85

Tested by

no test coverage detected