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
| Signature | Name | Description |
|---|---|---|
MGraphicsAchievementsScreen() | MGraphicsAchievementsScreen | |
~MGraphicsAchievementsScreen() override | ~MGraphicsAchievementsScreen |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | SetSourceFactory | |
bool | HasSourceFactory | |
void | Construct | |
void | SetSource | |
void | Tick | |
void | TickAll | |
int32_t | LiveCount | |
void | Rebuild | |
std::vector<::Mowo::FMiriAchievementRow> | Ordered | The row order the screen draws: unlocked first (newest unlock first), then locked by name. |
int32_t | GetBuiltRows | What the last rebuild drew, for a test that cannot look at pixels. |
int32_t | GetRebuildCount | |
void | PressClose | |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
const char* | GetTypeName |
Function details
MGraphicsAchievementsScreen
C++
MGraphicsAchievementsScreen()~MGraphicsAchievementsScreen
C++
~MGraphicsAchievementsScreen() overrideMIRI_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() constWhat the last rebuild drew, for a test that cannot look at pixels.
GetRebuildCount
C++
int32_t GetRebuildCount() constPressClose
C++
void PressClose()ComputeDesiredSize
C++
MiriVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from MiriGraphics/Widgets/MGraphicsAchievementsScreen.h via mirigraphics.json · Dec 5, 2026Version 1.1.0