static bool ShowTextScreen(TextScreenIntermissionAction *textscreen, bool demoMode) { if(textscreen->TextSpeed) Printf("Warning: Text screen has a non-zero textspeed which isn't supported at this time.\n"); ShowImage(textscreen, true); if(textscreen->TextDelay) { if(WaitIntermission(textscreen->TextDelay) && demoMode) return true; } py = textscreen->PrintY; px = textscreen->PrintX; for(unsigned int i = 0;i < textscreen->Text.Size();++i) { FString str = textscreen->Text[i]; if(str[0] == '$') str = language[str.Mid(1)]; DrawMultiLineText(str, textscreen->TextFont, textscreen->TextColor, textscreen->Alignment, textscreen->Anchor); } // This really only makes sense to use if trying to display text immediately. if(textscreen->FadeTime) { VL_FadeIn(0, 255, textscreen->FadeTime); } VW_UpdateScreen(); return WaitIntermission(textscreen->Time); }
void JMChattControl::DrawTextBox(Canvas* pCanvas, String strText, Rectangle rtArea, Color colorText, Color colorBack, Color colorOutline) { DrawFillRoundRectangle(pCanvas, rtArea, colorBack, colorOutline); Rectangle rtText; rtText = GetTextAreaInTextBox(rtArea); DrawMultiLineText(pCanvas, strText, rtText, colorText, colorBack); }
static void ShowBriefing(FString str) { VWB_DrawFill(backgroundFlat, 0, 0, screenWidth, screenHeight); switch(alignment) { default: px = 8; break; case TS_Center: px = 160; break; case TS_Right: px = 312; break; } py = 8; DrawMultiLineText(str, font, textcolor, alignment, anchor); VL_FadeIn(0,255,10); IN_Ack(); }