wavelength 1.0.0
Loading...
Searching...
No Matches
remixloadlist.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "game/remixinfo.h"
6#include "met/freqlist.h"
7#include "script/dataarray.h"
8
17class RemixLoadList : public FreqList {
18public:
25 ~RemixLoadList() override = default;
26
35 RemixLoadList(DataArray *pData, const char *pszPanel);
36
48 static UIComponent *New(DataArray *pData, const char *pszPanel) {
49 return new RemixLoadList(pData, pszPanel);
50 }
51
60 void UpdateRow(int nRow, int nItem) override;
61
68 void UpdateCursor() override;
69
79 void SetRemixes(const std::vector<RemixInfo> &remixes, int nGreyReadOnly, int nGreyUnplayable);
80
81private:
82 std::vector<RemixInfo> mRemixes;
83 const char *mPicPanel;
84 int mGreyReadOnly;
85 int mGreyUnplayable;
86};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqList(DataArray *pData, const char *pszPanel)
Construct the list from its script description.
void UpdateRow(int nRow, int nItem) override
Fill a row with the name of a remix, in grey when it cannot be chosen.
void UpdateCursor() override
Move the cursor and show the selected remix in mPicPanel.
~RemixLoadList() override=default
Destroy the object.
static UIComponent * New(DataArray *pData, const char *pszPanel)
Create a list from its script description.
Definition remixloadlist.h:48
void SetRemixes(const std::vector< RemixInfo > &remixes, int nGreyReadOnly, int nGreyUnplayable)
Replace the listed remixes and show them.
RemixLoadList(DataArray *pData, const char *pszPanel)
Construct the list from its script description, listing no remix.
UIComponent(DataArray *pData)
Construct a showing component in the normal state.
Definition uicomponent.h:37