| 1 | /* |
| 2 | * LegacyClonk |
| 3 | * |
| 4 | * Copyright (c) RedWolf Design |
| 5 | * Copyright (c) 2003, Sven2 |
| 6 | * Copyright (c) 2017-2021, The LegacyClonk Team and contributors |
| 7 | * |
| 8 | * Distributed under the terms of the ISC license; see accompanying file |
| 9 | * "COPYING" for details. |
| 10 | * |
| 11 | * "Clonk" is a registered trademark of Matthes Bender, used with permission. |
| 12 | * See accompanying file "TRADEMARK" for details. |
| 13 | * |
| 14 | * To redistribute this file separately, substitute the full license texts |
| 15 | * for the above references. |
| 16 | */ |
| 17 | |
| 18 | // startup screen |
| 19 | |
| 20 | #pragma once |
| 21 | |
| 22 | #include <C4FacetEx.h> |
| 23 | |
| 24 | class C4LoaderScreen |
| 25 | { |
| 26 | public: |
| 27 | CStdFont &TitleFont; // font used for title output |
| 28 | CStdFont &LogFont; // font used for logging |
| 29 | C4FacetExSurface fctBackground; // background image |
| 30 | |
| 31 | public: |
| 32 | C4LoaderScreen(); |
| 33 | ~C4LoaderScreen() = default; |
| 34 | |
| 35 | bool Init(const char *szLoaderSpec); // inits and loads from global C4Game-class |
| 36 | int SeekLoaderScreens(C4Group &rFromGrp, const char *szWildcard, int iLoaderCount, char *szDstName, C4Group **ppDestGrp); |
| 37 | |
| 38 | void Draw(C4Facet &cgo, int iProgress = 0, class C4LogBuffer *pLog = nullptr, int Process = 0); // draw loader screen (does not page flip!) |
| 39 | }; |
| 40 | |