class

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

SignatureNameDescription
MGraphicsLobbyScreen()MGraphicsLobbyScreen
~MGraphicsLobbyScreen() override~MGraphicsLobbyScreen

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidSetSourceFactoryThe host that can reach the session layer installs this before any screen is built; a screen built without one shows the Unavailable view.
boolHasSourceFactory
voidConstruct
::Mowo::FMiriGraphicsLobbyModel&Model
voidSetSource
voidTick
voidTickAll
int32_tLiveCount
voidRebuild
::Mowo::EMiriGraphicsLobbyViewGetBuiltViewWhat the last rebuild drew, for a test that cannot look at pixels.
int32_tGetBuiltPlayerCards
int32_tGetBuiltOpenSlots
int32_tGetBuiltServerRows
int32_tGetRebuildCount
const std::string&GetAddressError
voidPressReadyThe footer's actions, callable as the buttons call them.
voidPressStart
voidPressLeave
voidPressHost
voidPressRefresh
voidPressConnect
voidPressJoin
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
const char*GetTypeName

Function details

MGraphicsLobbyScreen

C++
MGraphicsLobbyScreen()

~MGraphicsLobbyScreen

C++
~MGraphicsLobbyScreen() override

MIRI_WIDGET_ARGS

C++
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

C++
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

C++
static bool HasSourceFactory()

Construct

C++
void Construct(const CArguments& args)

Model

C++
::Mowo::FMiriGraphicsLobbyModel& Model()

SetSource

C++
void SetSource(std::shared_ptr<::Mowo::IMiriGraphicsLobbySource> source)

Tick

C++
void Tick(float deltaSeconds)

TickAll

C++
static void TickAll(float deltaSeconds)

LiveCount

C++
static int32_t LiveCount()

Rebuild

C++
void Rebuild()

GetBuiltView

C++
::Mowo::EMiriGraphicsLobbyView GetBuiltView() const

What the last rebuild drew, for a test that cannot look at pixels.

GetBuiltPlayerCards

C++
int32_t GetBuiltPlayerCards() const

GetBuiltOpenSlots

C++
int32_t GetBuiltOpenSlots() const

GetBuiltServerRows

C++
int32_t GetBuiltServerRows() const

GetRebuildCount

C++
int32_t GetRebuildCount() const

GetAddressError

C++
const std::string& GetAddressError() const

PressReady

C++
void PressReady()

The footer's actions, callable as the buttons call them.

PressStart

C++
void PressStart(bool force)

PressLeave

C++
void PressLeave()

PressHost

C++
void PressHost()

PressRefresh

C++
void PressRefresh()

PressConnect

C++
void PressConnect(const std::string& address)

PressJoin

C++
void PressJoin(size_t serverIndex)

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) override

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from MiriGraphics/Widgets/MGraphicsLobbyScreen.h via mirigraphics.json · Dec 5, 2026Version 1.1.0