We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
lost all touchable features when: widget->setScale(0.0f); widget->runAction(ScaleTo::create(0.4f, 1.0f));
lost all touchable features when: widget->setScale(0.0f); widget->runAction(ScaleTo::create(0.4f, 1.0f));
Bug #4398 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8369
Status: | Closed | |
---|---|---|
Start date: | 2014-03-16 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | - | |
Target version: | - |
// SomeUI.json is a UI scene has some relative layouts and some touchable buttons
Widget* widget = cocostudio::GUIReader::getInstance()->widgetFromJsonFile("SomeUI.json");
addChild(widget);
widget->setScale(0.0f); // this line will make all buttons become NO touchable¶
// widget->setScale(0.1f); // this line is OK, nothing turn bad
widget->runAction(ScaleTo::create(0.4f, 1.0f));
// is something wrong because: (_someValue *= scaleX_0.0f) = 0.0f, and _someValue * _scaleX1.0f = 0.0f later?