AArcUISettingsScreen
The player-facing settings screen: a category rail on the left, the rows of the selected category on the right, and Apply / Revert / Reset along the bottom. It reads FGameUserSettings, which reads the same cvars the editor's Project Settings pages write, so the two never drift apart.
- Module
- ArcUI
- Header
#include "ArcUI/Widgets/AArcUISettingsScreen.h"- Namespace
Arcf
A row the device cannot drive is drawn greyed with the reason beside it rather than hidden — a control that vanishes tells a player nothing about why their machine will not do the thing the box promised.
Constructors
| Signature | Name | Description |
|---|---|---|
~AArcUISettingsScreen() override | ~AArcUISettingsScreen |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | Construct | |
void | SetCategory | |
::Mowo::EArcSettingCategory | GetCategory | |
void | SetPage | A page the game registered (FArcGameSettingDef::Page), shown instead of a built-in category until SetCategory is called again. |
const std::string& | GetPage | |
void | Tick | Drives the resolution confirmation countdown. |
void | TickAll | |
int32_t | LiveCount | |
void | Rebuild | Rebuilds the row list from the model. |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
const char* | GetTypeName |
Function details
~AArcUISettingsScreen
~AArcUISettingsScreen() overrideARC_WIDGET_ARGS
ARC_WIDGET_ARGS(AArcUISettingsScreen) ARC_EVENT(CSimpleDelegate, OnClosed) ARC_EVENT(CSimpleDelegate, OnRebindRequested) ARC_WIDGET_ARGS_END() AArcUISettingsScreen()Construct
void Construct(const CArguments& args)SetCategory
void SetCategory(::Mowo::EArcSettingCategory category)GetCategory
::Mowo::EArcSettingCategory GetCategory() constSetPage
void SetPage(const std::string& page)A page the game registered (FArcGameSettingDef::Page), shown instead of a built-in category until SetCategory is called again. Empty clears it.
GetPage
const std::string& GetPage() constTick
void Tick(float deltaSeconds)Drives the resolution confirmation countdown. Arc has no per-frame widget tick, so the screen stack advances every live screen through TickAll — without it the awaiting-confirmation state latched forever and a player who could not see the new resolution had no way back.
TickAll
static void TickAll(float deltaSeconds)LiveCount
static int32_t LiveCount()Rebuild
void Rebuild()Rebuilds the row list from the model. Called on construction, on a category switch, and after Apply / Revert / Reset.
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