diff options
Diffstat (limited to 'node/helpnode.cpp')
| -rw-r--r-- | node/helpnode.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/node/helpnode.cpp b/node/helpnode.cpp index d41464b..6108e4d 100644 --- a/node/helpnode.cpp +++ b/node/helpnode.cpp @@ -1,6 +1,7 @@ #include "helpnode.h" HelpNode::HelpNode() + : m_path("https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md") { m_result = new StringResult(); } @@ -30,10 +31,14 @@ void HelpNode::run(ExecutionNode* previous) } QString HelpNode::toString() const { - return QObject::tr("Rolisteam Dice Parser:\nFull documentation at: https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md \n"); + return QObject::tr("Rolisteam Dice Parser:\nFull documentation at: %1 \n").arg(m_path); } qint64 HelpNode::getPriority() const { return 0; } +void HelpNode::setHelpPath(QString path) +{ + m_path = path; +} |