28 lines
463 B
C++
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();
|
|
}
|
|
};
|
|
}
|