mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user