Projects > cpp > Issues > Bug #4398

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

lost all touchable features when: widget->setScale(0.0f); widget->runAction(ScaleTo::create(0.4f, 1.0f));

Bug #4398 [Closed]
liangXiao 2014-03-16 21:01 . Updated about 2 years ago

// 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?

walzer@cocos2d-x.org 2014-10-08 02:52

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

Atom PDF

Status:Closed
Start date:2014-03-16
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:-
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.