您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
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