27 lines
590 B
C++
27 lines
590 B
C++
#pragma once
|
|
|
|
#include "CommandColour.hpp"
|
|
|
|
#include "Gui.hpp"
|
|
#include "Renderer.hpp"
|
|
|
|
namespace Stand
|
|
{
|
|
class CommandFocusSpriteColour : public CommandColour
|
|
{
|
|
public:
|
|
explicit CommandFocusSpriteColour(CommandList* const parent, CommandColour* with_copy_from)
|
|
: CommandColour(parent, LOC("CLRFS"), { CMDNAME("focustexture") }, NOLABEL, DirectX::SimpleMath::Color(1.0f, 1.0f, 1.0f, 1.0f), true, CMDFLAGS_COLOUR, with_copy_from)
|
|
{
|
|
}
|
|
|
|
void onChange(Click& click) final
|
|
{
|
|
if (g_gui.canUpdateThemeSetting())
|
|
{
|
|
g_renderer.focusSpriteColour = getRGBA();
|
|
}
|
|
}
|
|
};
|
|
}
|