Fission FSN
Loading...
Searching...
No Matches
gfCBonusCollectionDetailScreen.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCBonusCollectionDetailScreen.h
4*
5* Purpose: gfCBonusCollectionScreen with an optional detail-card
6* panel: prev/next paging through unlocked items, and an
7* optional colour-tint-locked style for locked icons. Was
8* CCollectionScreen. detailPanel/detailImageFolder/
9* lockedStyle plus the panel/button names are all pVars,
10* defaulted to barrierReef's original names. Inert unless
11* a .gui file sets detailPanel.
12*
13*********************************************************************/
14
15#ifndef gfCBonusCollectionDetailScreenhdr
16#define gfCBonusCollectionDetailScreenhdr
17
18#include <vector>
19
21
23{
24 friend class fsCComponentFactory;
25
26public:
27
28 static const fsCUniqueId mTypeId;
29 fsBool onButtonClicked(fsCButtonComponent* pButtonComp) override;
30
31protected:
32
33 void initialiseFromVariableTableDo(const fsCVariableTable& pVars) override;
34 void achievementsVisibilitySetDo() override;
35 void achievementCreate(const fsPoint& pPos, fsS32 pIndex) override;
36
37 static fsIComponent* create(fsCEntity* pParent);
38
41
42private:
43
44 void collectedItemsRefresh();
45 void detailPanelPopulate(fsCEntity* pDetailPanel, const fsStr& pItem) const;
46 void detailPanelShowForCollectedIndex(fsS32 pCollectedIndex);
47 fsCEntity* detailPanelGet() const;
48
49 fsStr mDetailPanel;
50 fsStr mDetailImageFolder;
51 fsBool mColourTintLocked = false;
52 fsStr mDetailPanelName;
53 fsStr mDetailPrevButtonName;
54 fsStr mDetailNextButtonName;
55 std::vector<fsStr> mCollectedItems;
56 fsS32 mCurrentDetailIndex = -1;
57};
58
59#endif
Definition fsCButtonComponent.h:26
Definition fsCEntity.h:39
Definition fsCUniqueId.h:21
Definition fsCVariableTable.h:27
Definition fsIComponent.h:26
Definition fsStr.h:23
virtual ~gfCBonusCollectionDetailScreen()
Definition gfCBonusCollectionDetailScreen.cpp:233
friend class fsCComponentFactory
Definition gfCBonusCollectionDetailScreen.h:24
void achievementsVisibilitySetDo() override
Definition gfCBonusCollectionDetailScreen.cpp:177
static fsIComponent * create(fsCEntity *pParent)
Definition gfCBonusCollectionDetailScreen.cpp:223
fsBool onButtonClicked(fsCButtonComponent *pButtonComp) override
Definition gfCBonusCollectionDetailScreen.cpp:40
static const fsCUniqueId mTypeId
Definition gfCBonusCollectionDetailScreen.h:28
void achievementCreate(const fsPoint &pPos, fsS32 pIndex) override
Definition gfCBonusCollectionDetailScreen.cpp:209
void initialiseFromVariableTableDo(const fsCVariableTable &pVars) override
Definition gfCBonusCollectionDetailScreen.cpp:26
gfCBonusCollectionDetailScreen(fsCEntity *pParent)
Definition gfCBonusCollectionDetailScreen.cpp:228
gfCBonusCollectionScreen(fsCEntity *pParent)
Definition gfCBonusCollectionScreen.cpp:251
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
Definition fsPoint.h:17