patterns: Added hidden attribute

This commit is contained in:
WerWolv
2021-06-17 23:42:43 +02:00
parent 21f8fb4090
commit b4b2c41b34
4 changed files with 24 additions and 5 deletions

View File

@@ -432,6 +432,8 @@ namespace hex::lang {
currPattern->setVariableName(value->data());
else if (attribute == "comment" && value.has_value())
currPattern->setComment(value->data());
else if (attribute == "hidden" && value.has_value())
currPattern->setHidden(true);
else
this->getConsole().abortEvaluation("unknown or invalid attribute");