diff options
Diffstat (limited to 'node')
| -rw-r--r-- | node/helpnode.cpp | 7 | ||||
| -rw-r--r-- | node/helpnode.h | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/node/helpnode.cpp b/node/helpnode.cpp index a11c2b3..8fc7e93 100644 --- a/node/helpnode.cpp +++ b/node/helpnode.cpp @@ -2,21 +2,24 @@ HelpNode::HelpNode() { + m_result = new StringResult(); } void HelpNode::run(ExecutionNode* previous) { + StringResult* txtResult = dynamic_cast<StringResult*>(m_result); if(NULL != previous) { + txtResult->setText(toString()); } else { - + txtResult->setText(previous->getHelp()); } } QString HelpNode::toString()const { - return QObject::tr("see full documentation at: <a href=\"https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md\">https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md</a>"); + return QObject::tr("Rolisteam Dice Parser: Full documentation at: <a href=\"https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md\">https://github.com/obiwankennedy/DiceParser/blob/master/HelpMe.md</a>"); } qint64 HelpNode::getPriority() const diff --git a/node/helpnode.h b/node/helpnode.h index f8b3f78..27f38b3 100644 --- a/node/helpnode.h +++ b/node/helpnode.h @@ -32,6 +32,7 @@ public: * @return */ virtual qint64 getPriority() const; + }; #endif // HELPNODE_H |