{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/17116","repository_url":"https://api.github.com/repos/cocos2d/cocos2d-x","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/17116/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/17116/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/17116/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/17116","id":198902604,"number":17116,"title":"Setting opacity on an ui::Button doesn't work anymore ?","user":{"login":"danut007ro","id":1083134,"avatar_url":"https://avatars.githubusercontent.com/u/1083134?v=3","gravatar_id":"","url":"https://api.github.com/users/danut007ro","html_url":"https://github.com/danut007ro","followers_url":"https://api.github.com/users/danut007ro/followers","following_url":"https://api.github.com/users/danut007ro/following{/other_user}","gists_url":"https://api.github.com/users/danut007ro/gists{/gist_id}","starred_url":"https://api.github.com/users/danut007ro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danut007ro/subscriptions","organizations_url":"https://api.github.com/users/danut007ro/orgs","repos_url":"https://api.github.com/users/danut007ro/repos","events_url":"https://api.github.com/users/danut007ro/events{/privacy}","received_events_url":"https://api.github.com/users/danut007ro/received_events","type":"User","site_admin":false},"labels":[{"id":203599624,"url":"https://api.github.com/repos/cocos2d/cocos2d-x/labels/module:ui","name":"module:ui","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-01-05T08:41:19Z","updated_at":"2017-01-09T03:11:02Z","closed_at":null,"body":"- cocos2d-x version: 3.14\r\n- devices test on: linux, android\r\n- developing environments\r\n   - NDK version: r10e\r\n   - Xcode version:\r\n   - VS version:\r\n   - browser type and version:\r\n\r\nA new project on 3.13.1 is ok, but a new project on 3.14 doesn't set opacity. The code I used in HelloWorldScene.cpp on both projects is this :\r\n\r\n```\r\nSpriteFrameCache::getInstance()->addSpriteFramesWithFile(\"buttons.plist\");\r\nauto button = ui::Button::create();\r\nbutton->loadTextureNormal(\"buttons/play-big\", ui::Widget::TextureResType::PLIST);\r\nbutton->setPosition(Vec2(visibleSize.width/2 + origin.x, visibleSize.height/2 + origin.y));\r\nbutton->setOpacity(100);\r\naddChild(button);\r\n```\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create a new project\r\n2. Add a spritesheet\r\n3. Create button and set opacity\r\n\r\nScreenshot for 3.13.1:\r\n![mygame3131](https://cloud.githubusercontent.com/assets/1083134/21673798/5bd69f62-d333-11e6-93b2-10d895ee5909.png)\r\n\r\nScreenshot for 3.14:\r\n![mygame314](https://cloud.githubusercontent.com/assets/1083134/21673809/65b7f29c-d333-11e6-965e-8215098da3ba.png)\r\n"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/271204340","html_url":"https://github.com/cocos2d/cocos2d-x/issues/17116#issuecomment-271204340","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/17116","id":271204340,"user":{"login":"minggo","id":488203,"avatar_url":"https://avatars.githubusercontent.com/u/488203?v=3","gravatar_id":"","url":"https://api.github.com/users/minggo","html_url":"https://github.com/minggo","followers_url":"https://api.github.com/users/minggo/followers","following_url":"https://api.github.com/users/minggo/following{/other_user}","gists_url":"https://api.github.com/users/minggo/gists{/gist_id}","starred_url":"https://api.github.com/users/minggo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minggo/subscriptions","organizations_url":"https://api.github.com/users/minggo/orgs","repos_url":"https://api.github.com/users/minggo/repos","events_url":"https://api.github.com/users/minggo/events{/privacy}","received_events_url":"https://api.github.com/users/minggo/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T03:11:02Z","updated_at":"2017-01-09T03:11:02Z","body":"@ricardoquesada Sprite::updateColor() will modify _polyInfo's color, but it will be replaced by _quad's color in `Sprite::updatePoly()`. "}}
{"actor":{"display_login":"minggo"}}