| 35 | } |
| 36 | |
| 37 | void 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 | } |