Add: Formulas now allowed in the following settings:

LineWidth
LineLength
StartAngle
RotationAngle
Angle
ImageRotate
MinValue
MaxValue
IfAboveValue
IfEqualValue
IfBelowValue
This commit is contained in:
jsmorley
2012-02-19 15:45:43 +00:00
parent eca9250655
commit 3c98527338
5 changed files with 13 additions and 13 deletions

View File

@ -107,8 +107,8 @@ void CMeterRotator::ReadConfig(CConfigParser& parser, const WCHAR* section)
m_OffsetX = parser.ReadFloat(section, L"OffsetX", 0.0);
m_OffsetY = parser.ReadFloat(section, L"OffsetY", 0.0);
m_StartAngle = parser.ReadFloat(section, L"StartAngle", 0.0);
m_RotationAngle = parser.ReadFloat(section, L"RotationAngle", 6.2832);
m_StartAngle = parser.ReadFormula(section, L"StartAngle", 0.0);
m_RotationAngle = parser.ReadFormula(section, L"RotationAngle", 6.2832);
m_ValueRemainder = parser.ReadInt(section, L"ValueReminder", 0); // Typo
m_ValueRemainder = parser.ReadInt(section, L"ValueRemainder", m_ValueRemainder);