Stand/Stand/CommandNotifyBorderColour.hpp
2024-10-16 11:20:42 +08:00

25 lines
594 B
C++

#pragma once
#include "CommandColour.hpp"
namespace Stand
{
class CommandNotifyBorderColour : public CommandColour
{
public:
explicit CommandNotifyBorderColour(CommandList* parent, CommandColourCustom* with_copy_from)
: CommandColour(parent, LOC("BRDCLR"), { CMDNAME("notifyborder") }, NOLABEL, {1.0f, 0.0f, 1.0f, 1.0f}, true, CMDFLAGS_COLOUR, with_copy_from)
{
}
void onChange(Click& click) final
{
g_renderer.notifyBorderColour = getRGBA();
if (!click.isAuto())
{
parent->as<CommandListNotifySettings>()->updateGameColour(click.thread_context);
}
}
};
}