mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 17:16:57 +02:00
Initial work on implementing support for cheats
This commit is contained in:
35
arm9/source/romBrowser/views/cheats/CheatListItemView.h
Normal file
35
arm9/source/romBrowser/views/cheats/CheatListItemView.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#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;
|
||||
};
|
||||
Reference in New Issue
Block a user