80 void Enter(
bool bForce,
float fTime)
override;
92 void SetProfiles(
const std::vector<Campaign> &profiles,
int nSelected);
149 std::vector<Campaign> mProfiles;
AvatarPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description, showing no Freq.
Reference-counted array of script data nodes.
Definition dataarray.h:20
void SetProfiles(const std::vector< Campaign > &profiles, int nSelected)
Replace the profiles to choose from.
bool DispatchPriv(Message *pMsg) override
Route the choices of the player.
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition freqselpanel.h:47
~FreqSelPanel() override
Destroy the panel.
Definition freqselpanel.h:35
void Enter(bool bForce, float fTime) override
Enter and show the chosen Freq.
void Unload() override
Unload the panel and drop the profiles.
void SetChosen(bool bChosen)
Mark the choice as made or not, lighting the tab and the Freq and hiding the arrows.
bool HandleSelect(UIComponentSelectMsg *pMsg)
Mark the choice as made when the cross button chooses.
bool HandleSelectStart(UIComponentSelectStartMsg *pMsg)
Move through the profiles with the left and right buttons, or give the chosen profile to the player w...
FreqSelPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description, with its avatar_index.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
Message a component sends when the player presses the button that chooses it.
Definition uicomponentselectstartmsg.h:27
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.