mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
It's now possible to use the measures as if they were variables (use [MeasureName] instead #VariableName#). Set DynamicVariables=1 for all meters and measures which refer to other measures.
New bang !RainmeterSetVariable can be used to change the value of a variable (DynamicVariables must be 1 in places where the variable is used).
This commit is contained in:
@ -43,6 +43,8 @@ public:
|
||||
void Enable() { m_Disabled = false; };
|
||||
bool IsDisabled() { return m_Disabled; };
|
||||
|
||||
bool HasDynamicVariables() { return m_DynamicVariables; }
|
||||
|
||||
virtual void ExecuteBang(const WCHAR* args);
|
||||
|
||||
double GetValue();
|
||||
@ -64,6 +66,7 @@ protected:
|
||||
std::wstring ExtractWord(std::wstring& buffer);
|
||||
const WCHAR* CheckSubstitute(const WCHAR* buffer);
|
||||
|
||||
bool m_DynamicVariables; // If true, the measure contains dynamic variables
|
||||
bool m_Invert; // If true, the value should be inverted
|
||||
bool m_LogMaxValue; // If true, The maximum & minimum values are logged
|
||||
double m_MinValue; // The minimum value (so far)
|
||||
|
Reference in New Issue
Block a user