2024-07-08 20:17:21 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2025-04-08 18:46:57 +02:00
|
|
|
#include "util/Config.h"
|
2024-07-08 20:17:21 +02:00
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
|
|
|
|
|
|
struct cfg_ps_move final : cfg::node
|
|
|
|
|
{
|
|
|
|
|
cfg_ps_move() : cfg::node() {}
|
2025-03-04 19:43:44 +01:00
|
|
|
cfg_ps_move(cfg::node* owner, std::string name) : cfg::node(owner, std::move(name)) {}
|
2024-07-08 20:17:21 +02:00
|
|
|
|
2025-04-05 21:50:45 +02:00
|
|
|
cfg::uint<0, 255> r{this, "Color R", 0, true};
|
|
|
|
|
cfg::uint<0, 255> g{this, "Color G", 0, true};
|
|
|
|
|
cfg::uint<0, 255> b{this, "Color B", 0, true};
|
|
|
|
|
cfg::uint<0, 359> hue{this, "Hue", 0, true};
|
|
|
|
|
cfg::uint<0, 180> hue_threshold{this, "Hue Threshold", 10, true};
|
|
|
|
|
cfg::uint<0, 255> saturation_threshold{this, "Saturation Threshold", 10, true};
|
2024-07-08 20:17:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct cfg_ps_moves final : cfg::node
|
|
|
|
|
{
|
|
|
|
|
cfg_ps_moves();
|
|
|
|
|
|
2025-04-05 21:50:45 +02:00
|
|
|
cfg_ps_move move1{this, "PS Move 1"};
|
|
|
|
|
cfg_ps_move move2{this, "PS Move 2"};
|
|
|
|
|
cfg_ps_move move3{this, "PS Move 3"};
|
|
|
|
|
cfg_ps_move move4{this, "PS Move 4"};
|
2024-07-08 20:17:21 +02:00
|
|
|
|
2025-04-05 21:50:45 +02:00
|
|
|
cfg::_float<0, 50> min_radius{this, "Minimum Radius", 1.0f, true}; // Percentage of image width
|
|
|
|
|
cfg::_float<0, 50> max_radius{this, "Maximum Radius", 10.0f, true}; // Percentage of image width
|
2024-07-08 20:17:21 +02:00
|
|
|
|
2025-04-05 21:50:45 +02:00
|
|
|
std::array<cfg_ps_move*, 4> move{&move1, &move2, &move3, &move4};
|
2024-07-08 20:17:21 +02:00
|
|
|
|
|
|
|
|
const std::string path;
|
|
|
|
|
|
|
|
|
|
bool load();
|
|
|
|
|
void save() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern cfg_ps_moves g_cfg_move;
|