class

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

SignatureNameDescription
~MGraphicsSettingsScreen() override~MGraphicsSettingsScreen

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidConstruct
voidSetCategory
::Mowo::EMiriGraphicsSettingCategoryGetCategory
voidSetPageA page the game registered (FMiriGraphicsGameSettingDef::Page), shown instead of a built-in category until SetCategory is called again.
const std::string&GetPage
voidTickDrives the resolution confirmation countdown.
voidTickAll
int32_tLiveCount
voidRebuildRebuilds the row list from the model.
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
const char*GetTypeName

Function details

~MGraphicsSettingsScreen

C++
~MGraphicsSettingsScreen() override

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MGraphicsSettingsScreen) MIRI_EVENT(CSimpleDelegate, OnClosed) MIRI_EVENT(CSimpleDelegate, OnRebindRequested) MIRI_WIDGET_ARGS_END() MGraphicsSettingsScreen()

Construct

C++
void Construct(const CArguments& args)

SetCategory

C++
void SetCategory(::Mowo::EMiriGraphicsSettingCategory category)

GetCategory

C++
::Mowo::EMiriGraphicsSettingCategory GetCategory() const

SetPage

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

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

Tick

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

C++
static void TickAll(float deltaSeconds)

LiveCount

C++
static int32_t LiveCount()

Rebuild

C++
void Rebuild()

Rebuilds the row list from the model. Called on construction, on a category switch, and after Apply / Revert / Reset.

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/MGraphicsSettingsScreen.h via mirigraphics.json · Dec 5, 2026Version 1.1.0