File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
tests/cpp-tests/Classes/SpritePolygonTest Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -297,15 +297,16 @@ void SpritePolygonTestSlider::initSliders()
297297 slider->loadSlidBallTextures (" cocosui/sliderThumb.png" , " cocosui/sliderThumb.png" , " " );
298298 slider->loadProgressBarTexture (" cocosui/sliderProgress.png" );
299299 slider->setPosition (Vec2 (vsize.width /2 , vsize.height /4 ));
300-
301- slider->addEventListener (CC_CALLBACK_2 (SpritePolygonTestSlider::changeEpsilon, this ));
302- slider->setPercent ((int )(sqrtf (1 .0f /19 .0f )*100 ));
303-
300+
304301 auto ttfConfig = TTFConfig (" fonts/arial.ttf" , 8 );
305302 _epsilonLabel = Label::createWithTTF (ttfConfig, " Epsilon: 2.0" );
306303 addChild (_epsilonLabel);
307304 _epsilonLabel->setPosition (Vec2 (vsize.width /2 , vsize.height /4 + 15 ));
308305 addChild (slider);
306+
307+ slider->addEventListener (CC_CALLBACK_2 (SpritePolygonTestSlider::changeEpsilon, this ));
308+ slider->setPercent ((int )(sqrtf (1 .0f /19 .0f )*100 ));
309+
309310}
310311
311312void SpritePolygonTestSlider::makeSprites (const std::string* list, const int count, const float y)
You can’t perform that action at this time.
0 commit comments