SmartAI/Conditions

* embed Conditions into SmartAI table so we can evaluate CONDITION_SOURCE_TYPE_SMART_EVENT (22)
 * make SmartAI table display flexible
This commit is contained in:
Sarjuuk
2025-11-20 23:22:17 +01:00
parent c0454917ac
commit b764200c2a
13 changed files with 119 additions and 77 deletions

View File

@@ -465,6 +465,18 @@ var Markup = {
return [str, '</span>'];
}
},
condition:
{
ltrim: true,
rtrim: true,
empty: false,
allowedClass: MARKUP_CLASS_STAFF,
allowedChildren: { '<text>': 1 },
toHtml: function(attr)
{
return ['<span>' + Markup.toHtml(ConditionList.createCell(JSON.parse(attr._nodes[0].attr._rawText)), { skipReset: true }) + '</span>'];
}
},
copy:
{
empty: false,