mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Add "Paused=0/1" to measures. This is an addition to a883e9d.
				
					
				
			This commit is contained in:
		@@ -129,6 +129,7 @@ void Measure::ReadOptions(ConfigParser& parser, const WCHAR* section)
 | 
			
		||||
	m_Invert = 0!=parser.ReadInt(section, L"InvertMeasure", 0);
 | 
			
		||||
 | 
			
		||||
	m_Disabled = 0!=parser.ReadInt(section, L"Disabled", 0);
 | 
			
		||||
	m_Paused = 0!=parser.ReadInt(section, L"Paused", 0);
 | 
			
		||||
 | 
			
		||||
	m_MinValue = parser.ReadFloat(section, L"MinValue", m_MinValue);
 | 
			
		||||
	m_MaxValue = parser.ReadFloat(section, L"MaxValue", m_MaxValue);
 | 
			
		||||
@@ -188,6 +189,22 @@ void Measure::Enable()
 | 
			
		||||
	m_MeterWindow->GetParser().SetValue(m_Name, L"Disabled", L"0");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Measure::Pause()
 | 
			
		||||
{
 | 
			
		||||
	m_Paused = true;
 | 
			
		||||
 | 
			
		||||
	// Change the option as well to avoid reset in ReadOptions().
 | 
			
		||||
	m_MeterWindow->GetParser().SetValue(m_Name, L"Paused", L"1");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Measure::Unpause()
 | 
			
		||||
{
 | 
			
		||||
	m_Paused = false;
 | 
			
		||||
 | 
			
		||||
	// Change the option as well to avoid reset in ReadOptions().
 | 
			
		||||
	m_MeterWindow->GetParser().SetValue(m_Name, L"Paused", L"0");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
** Substitues text using a straight find and replace method
 | 
			
		||||
*/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user