You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
523 B

  1. require("luaScript.Tools.Effect.CCEffectNode")
  2. -- 链接到其他Effect文件的EffectNode
  3. cc.UIEffectNode.ClassName = "UIEffectNode"
  4. function cc.UIEffectNode:loadFromXmlNode(xmlNode)
  5. cc.EffectNode.loadFromXmlNode(self , xmlNode);
  6. self:setEffectFile(xmlNode.EffectFile);
  7. end
  8. function cc.UIEffectNode:createNode()
  9. local layer = cc.UIEffectNode:create();
  10. return layer;
  11. end
  12. function cc.UIEffectNode:getSelectBox()
  13. local box = cc.BoundingBox:new(0,0,0,100,100,1);
  14. box:transform(self:getWorldMatrix());
  15. return box;
  16. end