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()
297
297
slider->loadSlidBallTextures (" cocosui/sliderThumb.png" , " cocosui/sliderThumb.png" , " " );
298
298
slider->loadProgressBarTexture (" cocosui/sliderProgress.png" );
299
299
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
+
304
301
auto ttfConfig = TTFConfig (" fonts/arial.ttf" , 8 );
305
302
_epsilonLabel = Label::createWithTTF (ttfConfig, " Epsilon: 2.0" );
306
303
addChild (_epsilonLabel);
307
304
_epsilonLabel->setPosition (Vec2 (vsize.width /2 , vsize.height /4 + 15 ));
308
305
addChild (slider);
306
+
307
+ slider->addEventListener (CC_CALLBACK_2 (SpritePolygonTestSlider::changeEpsilon, this ));
308
+ slider->setPercent ((int )(sqrtf (1 .0f /19 .0f )*100 ));
309
+
309
310
}
310
311
311
312
void SpritePolygonTestSlider::makeSprites (const std::string* list, const int count, const float y)
You can’t perform that action at this time.
0 commit comments