mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
26 lines
431 B
C++
26 lines
431 B
C++
#include <Config/Settings/ColorKeyMethod.h>
|
|
|
|
namespace Config
|
|
{
|
|
namespace Settings
|
|
{
|
|
ColorKeyMethod::ColorKeyMethod()
|
|
: MappedSetting("ColorKeyMethod", "native", {
|
|
{"none", NONE},
|
|
{"native", NATIVE},
|
|
{"alphatest", ALPHATEST}
|
|
})
|
|
{
|
|
}
|
|
|
|
Setting::ParamInfo ColorKeyMethod::getParamInfo() const
|
|
{
|
|
if (ALPHATEST == m_value)
|
|
{
|
|
return { "AlphaRef", 1, 255, 1, m_param };
|
|
}
|
|
return {};
|
|
}
|
|
}
|
|
}
|