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:
@@ -562,6 +562,8 @@ class SmartAction
|
||||
$tal = new SmartAI(SmartAI::SRC_TYPE_ACTIONLIST, $this->param[0], ['baseEntry' => $this->smartAI->getEntry()]);
|
||||
$tal->prepare();
|
||||
|
||||
$this->smartAI->css .= $tal->css;
|
||||
|
||||
Util::mergeJsGlobals($this->jsGlobals, $tal->getJSGlobals());
|
||||
|
||||
foreach ($tal->getTabs() as $guid => $tt)
|
||||
@@ -587,6 +589,8 @@ class SmartAction
|
||||
$tal = new SmartAI(SmartAI::SRC_TYPE_ACTIONLIST, $this->param[$i], ['baseEntry' => $this->smartAI->getEntry()]);
|
||||
$tal->prepare();
|
||||
|
||||
$this->smartAI->css .= $tal->css;
|
||||
|
||||
Util::mergeJsGlobals($this->jsGlobals, $tal->getJSGlobals());
|
||||
|
||||
foreach ($tal->getTabs() as $guid => $tt)
|
||||
@@ -603,6 +607,8 @@ class SmartAction
|
||||
$tal = new SmartAI(SmartAI::SRC_TYPE_ACTIONLIST, $i, ['baseEntry' => $this->smartAI->getEntry()]);
|
||||
$tal->prepare();
|
||||
|
||||
$this->smartAI->css .= $tal->css;
|
||||
|
||||
Util::mergeJsGlobals($this->jsGlobals, $tal->getJSGlobals());
|
||||
|
||||
foreach ($tal->getTabs() as $guid => $tt)
|
||||
|
||||
Reference in New Issue
Block a user