mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 00:56:55 +02:00
36 lines
803 B
C++
36 lines
803 B
C++
#pragma once
|
|
#include "gui/views/ViewContainer.h"
|
|
#include "gui/views/Label2DView.h"
|
|
|
|
class MaterialColorScheme;
|
|
class IFontRepository;
|
|
|
|
class CheatListItemView : public ViewContainer
|
|
{
|
|
public:
|
|
CheatListItemView(const MaterialColorScheme* materialColorScheme, const IFontRepository* fontRepository);
|
|
|
|
void Update() override;
|
|
void Draw(GraphicsContext& graphicsContext) override;
|
|
|
|
Rectangle GetBounds() const override
|
|
{
|
|
return Rectangle(_position.x, _position.y, 256, 24);
|
|
}
|
|
|
|
void SetName(const char* name)
|
|
{
|
|
_nameLabel.SetText(name);
|
|
}
|
|
|
|
void SetIcon(u32 iconVramOffset)
|
|
{
|
|
_iconVramOffset = iconVramOffset;
|
|
}
|
|
|
|
private:
|
|
Label2DView _nameLabel;
|
|
u32 _iconVramOffset = 0;
|
|
const MaterialColorScheme* _materialColorScheme;
|
|
};
|