UNPKG

owl-bt

Version:

owl-bt is editor for Behavior trees. It has been inspired by Unreal engine behavior trees in a way, that it supports special node items like decorators and services. This makes trees smaller and much more readable.

24 lines (19 loc) 459 B
'use strict'; (function() { function alertPanel() { return { template: require('./msgPanel.html'), restrict: 'EA', replace: true, controller : function(AlertList){ this.alerts = AlertList.alerts; this.closeAlert = function(index){ AlertList.remove(index); }; }, controllerAs: 'alertPanel', }; } angular.module('editorApp') .directive('alertPanel', alertPanel); })();