AArcUILobbyScreen
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 IArcLobbySource — 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
- ArcUI
- Header
#include "ArcUI/Widgets/AArcUILobbyScreen.h"- Namespace
Arcf
The tree is rebuilt only when FArcLobbyModel::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 |
|---|---|---|
AArcUILobbyScreen() | AArcUILobbyScreen | |
~AArcUILobbyScreen() override | ~AArcUILobbyScreen |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_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::FArcLobbyModel& | Model | |
void | SetSource | |
void | Tick | |
void | TickAll | |
int32_t | LiveCount | |
void | Rebuild | |
::Mowo::EArcLobbyView | 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 | |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
const char* | GetTypeName |
Function details
AArcUILobbyScreen
AArcUILobbyScreen()~AArcUILobbyScreen
~AArcUILobbyScreen() overrideARC_WIDGET_ARGS
ARC_WIDGET_ARGS(AArcUILobbyScreen) ARC_EVENT(CSimpleDelegate, OnClosed) ARC_EVENT(CSimpleDelegate, OnRunStarted) ARC_WIDGET_ARGS_END() using FSourceFactory = std::function<std::shared_ptr<::Mowo::IArcLobbySource>()>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::FArcLobbyModel& Model()SetSource
void SetSource(std::shared_ptr<::Mowo::IArcLobbySource> source)Tick
void Tick(float deltaSeconds)TickAll
static void TickAll(float deltaSeconds)LiveCount
static int32_t LiveCount()Rebuild
void Rebuild()GetBuiltView
::Mowo::EArcLobbyView 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
ArcVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideGetTypeName
const char* GetTypeName() const override