Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全局变量,spc #393

Closed
lhfcode opened this issue Jan 7, 2015 · 4 comments
Closed

全局变量,spc #393

lhfcode opened this issue Jan 7, 2015 · 4 comments

Comments

@lhfcode
Copy link

lhfcode commented Jan 7, 2015

debug.lua中的dump函数 有个全局变量,spc

@lhfcode
Copy link
Author

lhfcode commented Jan 7, 2015

按钮加到层上无法回调,但把bPlugin_ 设置为false就可以, 测试发现创建层display.newLayer()是通过display.newNode()

@lhfcode
Copy link
Author

lhfcode commented Jan 7, 2015

NodeEx.lua 中有个意外的全局变量 listenerRet

@hugohuang1111
Copy link
Collaborator

  1. 看commit c1123f6

  2. 看commit b74d3bf

  3. 这个我们没重现
    主要测试代码
    bPlugin_未作修改,在3.3上

    local layer = display.newLayer():addTo(self)

    cc.ui.UIPushButton.new("GreenButton.png", {scale9 = true})
    :setButtonSize(200, 60)
    :setButtonLabel(cc.ui.UILabel.new({text = "Use CCSLoader"}))
    :onButtonPressed(function(event)
    event.target:setScale(1.2)
    end)
    :onButtonRelease(function(event)
    event.target:setScale(1.0)
    end)
    :onButtonClicked(function(event)
    app:enterNextScene()
    end)
    :align(display.CENTER, display.cx, display.cy + 40)
    :addTo(layer)

@hugohuang1111
Copy link
Collaborator

按钮加到层上无法回调
我们验证后,未重现,关闭

@lhfcode 有可重现的具体步骤或代码,
请联系我们,reopen
我们一直保持关注

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants