MCPcopy Create free account
hub / github.com/EasyRPG/Player / Refresh

Method Refresh

src/window_import_progress.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void Window_ImportProgress::Refresh() {
38 contents->Clear();
39
40 contents->TextDraw(0, 2, Font::ColorDefault, "Searching for files...", Text::AlignLeft);
41
42 Rect inner(1, 16+3, 142, 16-6);
43 Rect outer(inner.x-1, inner.y-1, inner.width+2, inner.height+2);
44
45 contents->FillRect(outer, Color(0x00, 0x00, 0x00, 0xFF));
46 contents->FillRect(inner, Color(0x66, 0x66, 0x66, 0xFF));
47 inner.width = (inner.width*percent) / 100;
48 contents->FillRect(inner, Color(0xFF, 0x00, 0x00, 0xFF));
49
50 contents->TextDraw(0, 2 + 32, Font::ColorDefault, std::string("Folder: ") + curr_path, Text::AlignLeft);
51}

Callers

nothing calls this directly

Calls 4

TextDrawMethod · 0.80
FillRectMethod · 0.80
ColorClass · 0.70
ClearMethod · 0.45

Tested by

no test coverage detected