MGraphicsLobbyScreen
The co-op front door: a server browser with Host and Direct Connect while the player is in no session, the crew's ready-up lobby between runs, and a call-back card while the crew is out. It reads and drives an IMiriGraphicsLobbySource — the game player installs one over FNetSession and the platform's lobby list — so the same screen runs in a test against a fake.
- Module
- MiriGraphics
- Header
#include "MiriGraphics/Widgets/MGraphicsLobbyScreen.h"- Namespace
Miri
The tree is rebuilt only when FMiriGraphicsLobbyModel::Poll reports a change, from the stack's per-frame TickAll, so a roster update or a server list landing shows up without the game wiring a refresh.
Constructors
| Signature | Name | Description |
|---|---|---|
MGraphicsLobbyScreen() | MGraphicsLobbyScreen | |
~MGraphicsLobbyScreen() override | ~MGraphicsLobbyScreen |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | SetSourceFactory | The host that can reach the session layer installs this before any screen is built; a screen built without one shows the Unavailable view. |
bool | HasSourceFactory | |
void | Construct | |
::Mowo::FMiriGraphicsLobbyModel& | Model | |
void | SetSource | |
void | Tick | |
void | TickAll | |
int32_t | LiveCount | |
void | Rebuild | |
::Mowo::EMiriGraphicsLobbyView | GetBuiltView | What the last rebuild drew, for a test that cannot look at pixels. |
int32_t | GetBuiltPlayerCards | |
int32_t | GetBuiltOpenSlots | |
int32_t | GetBuiltServerRows | |
int32_t | GetRebuildCount | |
const std::string& | GetAddressError | |
void | PressReady | The footer's actions, callable as the buttons call them. |
void | PressStart | |
void | PressLeave | |
void | PressHost | |
void | PressRefresh | |
void | PressConnect | |
void | PressJoin | |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
const char* | GetTypeName |
Function details
MGraphicsLobbyScreen
MGraphicsLobbyScreen()~MGraphicsLobbyScreen
~MGraphicsLobbyScreen() overrideMIRI_WIDGET_ARGS
MIRI_WIDGET_ARGS(MGraphicsLobbyScreen) MIRI_EVENT(CSimpleDelegate, OnClosed) MIRI_EVENT(CSimpleDelegate, OnRunStarted) MIRI_WIDGET_ARGS_END() using FSourceFactory = std::function<std::shared_ptr<::Mowo::IMiriGraphicsLobbySource>()>SetSourceFactory
static void SetSourceFactory(FSourceFactory factory)The host that can reach the session layer installs this before any screen is built; a screen built without one shows the Unavailable view.
HasSourceFactory
static bool HasSourceFactory()Construct
void Construct(const CArguments& args)Model
::Mowo::FMiriGraphicsLobbyModel& Model()SetSource
void SetSource(std::shared_ptr<::Mowo::IMiriGraphicsLobbySource> source)Tick
void Tick(float deltaSeconds)TickAll
static void TickAll(float deltaSeconds)LiveCount
static int32_t LiveCount()Rebuild
void Rebuild()GetBuiltView
::Mowo::EMiriGraphicsLobbyView GetBuiltView() constWhat the last rebuild drew, for a test that cannot look at pixels.
GetBuiltPlayerCards
int32_t GetBuiltPlayerCards() constGetBuiltOpenSlots
int32_t GetBuiltOpenSlots() constGetBuiltServerRows
int32_t GetBuiltServerRows() constGetRebuildCount
int32_t GetRebuildCount() constGetAddressError
const std::string& GetAddressError() constPressReady
void PressReady()The footer's actions, callable as the buttons call them.
PressStart
void PressStart(bool force)PressLeave
void PressLeave()PressHost
void PressHost()PressRefresh
void PressRefresh()PressConnect
void PressConnect(const std::string& address)PressJoin
void PressJoin(size_t serverIndex)ComputeDesiredSize
MiriVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideGetTypeName
const char* GetTypeName() const override