mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Broken backwards compatibility was fixed.
([Measure] contained in Action in Measure and Meter are not replaced when reading skins. They are replaced only when executing action.)
This commit is contained in:
parent
1ebff32421
commit
3afe01569c
@ -100,13 +100,13 @@ void CMeasure::ReadConfig(CConfigParser& parser, const WCHAR* section)
|
||||
// The ifabove/ifbelow define actions that are ran when the value goes above/below the given number.
|
||||
|
||||
m_IfAboveValue = parser.ReadFloat(section, L"IfAboveValue", 0.0);
|
||||
m_IfAboveAction = parser.ReadString(section, L"IfAboveAction", L"");
|
||||
m_IfAboveAction = parser.ReadString(section, L"IfAboveAction", L"", false);
|
||||
|
||||
m_IfBelowValue = parser.ReadFloat(section, L"IfBelowValue", 0.0);
|
||||
m_IfBelowAction = parser.ReadString(section, L"IfBelowAction", L"");
|
||||
m_IfBelowAction = parser.ReadString(section, L"IfBelowAction", L"", false);
|
||||
|
||||
m_IfEqualValue = parser.ReadFloat(section, L"IfEqualValue", 0.0);
|
||||
m_IfEqualAction = parser.ReadString(section, L"IfEqualAction", L"");
|
||||
m_IfEqualAction = parser.ReadString(section, L"IfEqualAction", L"", false);
|
||||
|
||||
m_AverageSize = parser.ReadInt(section, L"AverageSize", 0);
|
||||
|
||||
|
@ -286,7 +286,7 @@ void CMeasureNet::ReadConfig(CConfigParser& parser, const WCHAR* section, NET ne
|
||||
m_Cumulative = 0!=parser.ReadInt(section, L"Cumulative", 0);
|
||||
|
||||
m_TrafficValue = parser.ReadFloat(section, L"TrafficValue", 0.0);
|
||||
m_TrafficAction = parser.ReadString(section, L"TrafficAction", L"");
|
||||
m_TrafficAction = parser.ReadString(section, L"TrafficAction", L"", false);
|
||||
|
||||
if (maxValue == 0)
|
||||
{
|
||||
|
@ -264,14 +264,14 @@ void CMeter::ReadConfig(const WCHAR* section)
|
||||
m_SolidColor2 = parser.ReadColor(section, L"SolidColor2", m_SolidColor);
|
||||
m_SolidAngle = (Gdiplus::REAL)parser.ReadFloat(section, L"GradientAngle", 0.0);
|
||||
|
||||
m_RightMouseDownAction = parser.ReadString(section, L"RightMouseDownAction", L"");
|
||||
m_LeftMouseDownAction = parser.ReadString(section, L"LeftMouseDownAction", L"");
|
||||
m_MiddleMouseDownAction = parser.ReadString(section, L"MiddleMouseDownAction", L"");
|
||||
m_RightMouseUpAction = parser.ReadString(section, L"RightMouseUpAction", L"");
|
||||
m_LeftMouseUpAction = parser.ReadString(section, L"LeftMouseUpAction", L"");
|
||||
m_MiddleMouseUpAction = parser.ReadString(section, L"MiddleMouseUpAction", L"");
|
||||
m_MouseOverAction = parser.ReadString(section, L"MouseOverAction", L"");
|
||||
m_MouseLeaveAction = parser.ReadString(section, L"MouseLeaveAction", L"");
|
||||
m_RightMouseDownAction = parser.ReadString(section, L"RightMouseDownAction", L"", false);
|
||||
m_LeftMouseDownAction = parser.ReadString(section, L"LeftMouseDownAction", L"", false);
|
||||
m_MiddleMouseDownAction = parser.ReadString(section, L"MiddleMouseDownAction", L"", false);
|
||||
m_RightMouseUpAction = parser.ReadString(section, L"RightMouseUpAction", L"", false);
|
||||
m_LeftMouseUpAction = parser.ReadString(section, L"LeftMouseUpAction", L"", false);
|
||||
m_MiddleMouseUpAction = parser.ReadString(section, L"MiddleMouseUpAction", L"", false);
|
||||
m_MouseOverAction = parser.ReadString(section, L"MouseOverAction", L"", false);
|
||||
m_MouseLeaveAction = parser.ReadString(section, L"MouseLeaveAction", L"", false);
|
||||
|
||||
m_MouseActionCursor = 0!= parser.ReadInt(section, L"MouseActionCursor", 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user