MCPcopy Create free account
hub / github.com/diasurgical/devilution / progress_Load

Function progress_Load

SourceX/DiabloUI/progress.cpp:35–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33};
34
35void progress_Load(char *msg)
36{
37 LoadBackgroundArt("ui_art\\black.pcx");
38 LoadArt("ui_art\\spopup.pcx", &ArtPopupSm);
39 LoadArt("ui_art\\prog_bg.pcx", &ArtProgBG);
40 LoadArt("ui_art\\prog_fil.pcx", &ProgFil);
41 LoadSmlButtonArt();
42 LoadTtfFont();
43
44 if (font != NULL) {
45 SDL_Color color = { 243, 243, 243, 0 };
46
47 msgSurface = TTF_RenderUTF8_Solid(font, msg, color);
48 cancleSurface = TTF_RenderUTF8_Solid(font, "Cancel", color);
49 TTF_SizeUTF8(font, "Cancel", &textWidth, NULL);
50 }
51}
52
53void progress_Free()
54{

Callers 1

UiProgressDialogFunction · 0.85

Calls 4

LoadBackgroundArtFunction · 0.85
LoadArtFunction · 0.85
LoadSmlButtonArtFunction · 0.85
LoadTtfFontFunction · 0.85

Tested by

no test coverage detected