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

28 lines
463 B
C++

#pragma once
#include "CommandToggle.hpp"
#include "tbScreenshotMode.hpp"
namespace Stand
{
class CommandScreenshotMode : public CommandToggle
{
public:
explicit CommandScreenshotMode(CommandList* const parent)
: CommandToggle(parent, LOC("SCRNSHT"), { CMDNAME("screenshot") })
{
}
void onEnable(Click& click) final
{
g_tb_screenshot_mode.enable();
}
void onDisable(Click& click) final
{
g_tb_screenshot_mode.disable();
}
};
}