mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
27 lines
434 B
C++
27 lines
434 B
C++
|
#include <Config/Settings/SpriteDetection.h>
|
||
|
|
||
|
namespace Config
|
||
|
{
|
||
|
namespace Settings
|
||
|
{
|
||
|
SpriteDetection::SpriteDetection()
|
||
|
: MappedSetting("SpriteDetection", "off", {
|
||
|
{"off", OFF},
|
||
|
{"zconst", ZCONST},
|
||
|
{"zmax", ZMAX},
|
||
|
{"point", POINT}
|
||
|
})
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Setting::ParamInfo SpriteDetection::getParamInfo() const
|
||
|
{
|
||
|
if (ZMAX == m_value)
|
||
|
{
|
||
|
return { "ZMax", 0, 100, 0, m_param };
|
||
|
}
|
||
|
return {};
|
||
|
}
|
||
|
}
|
||
|
}
|