wavelength 1.0.0
Loading...
Searching...
No Matches
unlockavatarpanel.h
Go to the documentation of this file.
1#pragma once
2
4#include "met/avatarpanel.h"
5#include "script/dataarray.h"
6
16public:
23 ~UnlockAvatarPanel() override = default;
24
33 UnlockAvatarPanel(DataArray *pData, const char *pszDir);
34
46 static UIPanel *New(DataArray *pData, const char *pszDir) {
47 return new UnlockAvatarPanel(pData, pszDir);
48 }
49
57 void SetParts(const AvatarPartSet &parts);
58
67
68private:
69 AvatarPartSet mParts;
70};
AvatarPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description, showing no Freq.
Parts and colours of a player's avatar, the Freq the Freq maker edits.
Definition avatarpartset.h:23
Reference-counted array of script data nodes.
Definition dataarray.h:20
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.
UnlockAvatarPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description, showing no Freq.
void SetParts(const AvatarPartSet &parts)
Copy a set of parts and show the copy.
~UnlockAvatarPanel() override=default
Destroy the object.
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition unlockavatarpanel.h:46
bool UpdateAvatar()
Apply the parts that have loaded to the Freq that shows.