Quantcast
Channel: cocos2d-x - Cocos Forums
Viewing all articles
Browse latest Browse all 2748

Color selector dont work

$
0
0

when i use the position of color selector stop working

	auto colorSelector = ColorSelector::create();
	colorSelector->setPosition(Vec2(visibleSize.width * 0.1, visibleSize.height * 0.2)); // Defina a posição desejada
	//colorSelector->setPosition(Vec2(layout->getPositionX() + layout->getContentSize().width / 2, layout->getPositionY() + layout->getContentSize().height / 2)); // Ajuste a posição desejada
	colorSelector->setLocalZOrder(1); // Defina a ordem de desenho para garantir que o ColorSelector esteja por cima do layout
	this->addChild(colorSelector);

what i doing wrong

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 2748