MGraphicsSettingsScreen
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
- MiriGraphics
- Header
#include "MiriGraphics/Widgets/MGraphicsSettingsScreen.h"- Namespace
Miri
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 |
|---|---|---|
~MGraphicsSettingsScreen() override | ~MGraphicsSettingsScreen |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | Construct | |
void | SetCategory | |
::Mowo::EMiriGraphicsSettingCategory | GetCategory | |
void | SetPage | A page the game registered (FMiriGraphicsGameSettingDef::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. |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
const char* | GetTypeName |
Function details
~MGraphicsSettingsScreen
~MGraphicsSettingsScreen() overrideMIRI_WIDGET_ARGS
MIRI_WIDGET_ARGS(MGraphicsSettingsScreen) MIRI_EVENT(CSimpleDelegate, OnClosed) MIRI_EVENT(CSimpleDelegate, OnRebindRequested) MIRI_WIDGET_ARGS_END() MGraphicsSettingsScreen()Construct
void Construct(const CArguments& args)SetCategory
void SetCategory(::Mowo::EMiriGraphicsSettingCategory category)GetCategory
::Mowo::EMiriGraphicsSettingCategory GetCategory() constSetPage
void SetPage(const std::string& page)A page the game registered (FMiriGraphicsGameSettingDef::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. Miri 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
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