blob: 8fc7e93363aae5b2c0d0a40df63e468a3f79eea1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "helpnode.h"
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("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
{
return 0;
}
|