/********************************************************************
*
* File: gfCMiniGameGui.h
*
* Purpose: Gui to play tunes from a catalog
*
*********************************************************************/
#ifndef gfCMiniGameGuihdr
#define gfCMiniGameGuihdr
#include "../gfICatalogueGui.h"
class gfICatalogueEntry;
class gfCCatalogueItem;
class gfCMiniGameGui : public gfICatalogueGui
{
friend class fsCComponentFactory;
public:
static const fsCUniqueId mTypeId;
protected:
void listenersDeregisterDo() override;
void listenersRegisterDo() override;
fsBool messageProcessDo(const fsCUniqueId& pMessageType,
const fsIMessageDispatcher::sMessageParameters& pParam) override;
void catalogueLoadDo() override;
void itemInfoSetDo(fsS32 pEntIndex, fsS32 pChildIndex) const override;
void initialiseFromVariableTableDo(const fsCVariableTable& pVars) override;
static fsIComponent* create(fsCEntity* pParent);
gfCMiniGameGui(fsCEntity* pParent);
virtual ~gfCMiniGameGui();<--- Destructor in derived class
private:
void currentMinigamePageSelect();
void starsEnable(gfCCatalogueItem const* pCatalogueItem, fsCEntity* pCatalogueEntity) const;
};
#endif