MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / GetShortDesc

Method GetShortDesc

plugins/base/macro-action-wait.cpp:214–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214std::string MacroActionWait::GetShortDesc() const
215{
216 if (_waitType == Type::VARIABLE_WAIT) {
217 return GetWeakVariableName(_variable);
218 }
219 if (_waitType == Type::FIXED) {
220 return _duration.ToString();
221 }
222 return _duration.ToString() + " - " + _duration2.ToString();
223}
224
225std::shared_ptr<MacroAction> MacroActionWait::Create(Macro *m)
226{

Callers 4

TypeChangedMethod · 0.45
DurationChangedMethod · 0.45
Duration2ChangedMethod · 0.45
VariableChangedMethod · 0.45

Calls 2

GetWeakVariableNameFunction · 0.85
ToStringMethod · 0.45

Tested by

no test coverage detected