class

MGraphicsAchievementsScreen

The in-game achievements list: each achievement with its name, description, unlocked state and date, and how rare it is, unlocked first. Hidden locked ones show as "Hidden achievement". It reads an IMiriAchievementSource the game player installs over the platform's achievement data and rebuilds only when the source's change serial moves, from the screen stack's per-frame TickAll. Icons are not drawn here: a .ui that wants them places Image nodes on the IconPath each row carries.

Module
MiriGraphics
Header
#include "MiriGraphics/Widgets/MGraphicsAchievementsScreen.h"
Namespace
Miri

Constructors

SignatureNameDescription
MGraphicsAchievementsScreen()MGraphicsAchievementsScreen
~MGraphicsAchievementsScreen() override~MGraphicsAchievementsScreen

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidSetSourceFactory
boolHasSourceFactory
voidConstruct
voidSetSource
voidTick
voidTickAll
int32_tLiveCount
voidRebuild
std::vector<::Mowo::FMiriAchievementRow>OrderedThe row order the screen draws: unlocked first (newest unlock first), then locked by name.
int32_tGetBuiltRowsWhat the last rebuild drew, for a test that cannot look at pixels.
int32_tGetRebuildCount
voidPressClose
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
const char*GetTypeName

Function details

MGraphicsAchievementsScreen

C++
MGraphicsAchievementsScreen()

~MGraphicsAchievementsScreen

C++
~MGraphicsAchievementsScreen() override

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MGraphicsAchievementsScreen) MIRI_EVENT(CSimpleDelegate, OnClosed) MIRI_WIDGET_ARGS_END() using FSourceFactory = std::function<std::shared_ptr<::Mowo::IMiriAchievementSource>()>

SetSourceFactory

C++
static void SetSourceFactory(FSourceFactory factory)

HasSourceFactory

C++
static bool HasSourceFactory()

Construct

C++
void Construct(const CArguments& args)

SetSource

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

Tick

C++
void Tick(float deltaSeconds)

TickAll

C++
static void TickAll(float deltaSeconds)

LiveCount

C++
static int32_t LiveCount()

Rebuild

C++
void Rebuild()

Ordered

C++
static std::vector<::Mowo::FMiriAchievementRow> Ordered(std::vector<::Mowo::FMiriAchievementRow> rows)

The row order the screen draws: unlocked first (newest unlock first), then locked by name.

GetBuiltRows

C++
int32_t GetBuiltRows() const

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

GetRebuildCount

C++
int32_t GetRebuildCount() const

PressClose

C++
void PressClose()

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