32 CaptionFont(FontCaption), TitleFont(FontTitle), TextFont(FontRegular), MiniFont(FontTiny), TooltipFont(FontTooltip)
315 const char *szCursorFilename;
316 szCursorFilename =
"Cursor";
337 auto *pMainGfxGrp =
new C4Group();
363 static C4Group *FindSuitableFile(
const char *szName,
C4GroupSet &rGfxSet,
char *szFileName, int32_t * pID)
365 const char *
const extensions[] = {
"bmp",
"jpeg",
"jpg",
"png",
nullptr };
373 C4Group *pGrp = FindSuitableFile(szName, rGfxSet, FileName, &ID);
377 if (!fNoWarnIfNotFound)
388 if (!fct.
Load(*pGrp, FileName, iWdt, iHgt,
false, iFlags))
403 C4Group *pGrp = FindSuitableFile(szName, rGfxSet, FileName, &ID);
410 if (ID == ridCurrSfc)
414 if (!sfc.
Load(*pGrp, FileName,
false,
false, iFlags))
438 *pfZoom = (float) iHgt / (
float) iLineHgt;
447 if(!fInitialized)
return false;
456 if(!hadGroupsRegistered)
463 const bool result =
true;
465 if(!hadGroupsRegistered)
#define C4CFN_ShaderFiles
C4GraphicsResource GraphicsResource
#define C4GUI_ControllerIconHgt
#define C4GUI_ControllerIconWdt
const char * LoadResStr(const char *id)
bool LogF(const char *strMessage,...)
bool LogFatal(const char *szMessage)
StdStrBuf FormatString(const char *szFmt,...)
char RXFontName[CFG_MaxString+1]
void Set(C4Surface &rSfc)
bool GetPhaseNum(int32_t &rX, int32_t &rY)
bool Load(C4Group &hGroup, const char *szName, int iWdt, int iHgt, bool fNoErrIfNotFound, int iFlags)
bool CreateClrByOwner(C4Surface *pBySurface)
void Set(const C4Facet &cpy)
bool InitFont(CStdFont *Font, const char *szFontName, FontType eType, int32_t iSize, C4GroupSet *pGfxGroups, bool fDoShadow=true)
void SetInitProgress(float to_progress)
int32_t idRegisteredMainGroupSetFiles
C4FacetID fctButtonHighlight
CStdFont & GetFontByHeight(int32_t iHgt, float *pfZoom=nullptr)
C4AchievementGraphics Achievements
C4GUI::DynBarFacet barButton
C4FacetID fctConstruction
C4FacetID fctButtonHighlightRound
bool LoadFile(C4FacetID &fct, const char *szName, C4GroupSet &rGfxSet, int32_t iWdt, int32_t iHgt, bool fNoWarnIfNotFound, int iFlags)
bool RegisterGlobalGraphics()
C4FacetID fctTransformKnob
C4GUI::ScrollBarFacets sfctScroll
C4FacetID fctControllerIcons
C4GUI::DynBarFacet barButtonD
bool ReloadResolutionDependantFiles()
C4GUI::DynBarFacet barCaption
bool RegisterMainGroups()
bool RegisterGroup(C4Group &rGroup, bool fOwnGrp, int32_t Priority, int32_t Contents, bool fCheckContent=true)
int32_t PreCacheEntries(const char *szEntryMask)
C4Group * FindSuitableFile(const char *szName, const char *const extensions[], char *szFileName, int32_t *pID=nullptr)
bool RegisterGroups(const C4GroupSet &rCopy, int32_t Contents, const char *szFilename=nullptr, int32_t iMaxSkipID=0)
bool Open(C4Group &group, const char *filename) const
bool Load(C4Group &hGroup, const char *szFilename, bool fOwnPal, bool fNoErrIfNotFound, int iFlags)
int GetLineHeight() const
void SetCustomImages(CustomImages *pHandler)
bool InitShaders(C4GroupSet *pGroups)
const char * getData() const
void SetHorizontal(C4Surface &rBySfc, int iHeight=0, int iBorderWidth=0)