wavelength 1.0.0
Loading...
Searching...
No Matches
netchooseiconfigscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
5#include "met/freqscreen.h"
7#include "script/dataarray.h"
10#include "ui/uiscreen.h"
11
20public:
29
41 static UIScreen *New(DataArray *pData) {
42 return new NetChooseIConfigScreen(pData);
43 }
44
52 }
53
61 void SetConfigs(const std::list<InetConfig> &configs);
62
74 void Enter(UIScreen *pPrevScreen, float fTime) override;
75
84 bool DispatchPriv(Message *pMsg) override;
85
86private:
94 void ShowDescription(bool bShow);
95
107 bool HandleSelect(UIComponentSelectMsg *pMsg);
108
119 bool HandleFocusChange(UIComponentFocusChangeMsg *pMsg);
120
121 std::list<InetConfig> mConfigs; // The configurations of the memory card.
122 int mSelected; // The index of the chosen configuration.
123};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
NetChooseIConfigScreen(DataArray *pData)
Construct a screen with no configurations.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition netchooseiconfigscreen.h:41
void Enter(UIScreen *pPrevScreen, float fTime) override
Label a button for each of the first seven configurations, hide the other buttons,...
bool DispatchPriv(Message *pMsg) override
Route a choice and a change of focus to their handlers.
void SetConfigs(const std::list< InetConfig > &configs)
Replace the configurations and choose the first.
~NetChooseIConfigScreen() override
Release the screen.
Definition netchooseiconfigscreen.h:51
Message a panel sends before it moves its focus to another component.
Definition uicomponentfocuschangemsg.h:26
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.