mirror of https://github.com/axmolengine/axmol.git
fix vigrate resource error, and hide the vibrateTest in web
This commit is contained in:
parent
940b53e271
commit
32223348cb
|
@ -58,9 +58,9 @@ var VibrateTest = BaseTestLayer.extend({
|
||||||
var durationSlider = new ccui.Slider();
|
var durationSlider = new ccui.Slider();
|
||||||
durationSlider.setPercent(0);
|
durationSlider.setPercent(0);
|
||||||
durationSlider.setTouchEnabled(true);
|
durationSlider.setTouchEnabled(true);
|
||||||
durationSlider.loadBarTexture("res/ccs-res/cocosui/sliderTrack.png");
|
durationSlider.loadBarTexture("ccs-res/cocosui/sliderTrack.png");
|
||||||
durationSlider.loadSlidBallTextures("res/ccs-res/cocosui/sliderThumb.png", "res/ccs-res/cocosui/sliderThumb.png", "");
|
durationSlider.loadSlidBallTextures("ccs-res/cocosui/sliderThumb.png", "ccs-res/cocosui/sliderThumb.png", "");
|
||||||
durationSlider.loadProgressBarTexture("res/ccs-res/cocosui/sliderProgress.png");
|
durationSlider.loadProgressBarTexture("ccs-res/cocosui/sliderProgress.png");
|
||||||
durationSlider.x = s.width * 0.5;
|
durationSlider.x = s.width * 0.5;
|
||||||
durationSlider.y = s.height * 0.35;
|
durationSlider.y = s.height * 0.35;
|
||||||
durationSlider.addEventListener(this.durationSliderEvent, this);
|
durationSlider.addEventListener(this.durationSliderEvent, this);
|
||||||
|
|
|
@ -721,7 +721,7 @@ var testNames = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title:"Vibrate Test",
|
title:"Vibrate Test",
|
||||||
platforms: PLATFORM_ALL,
|
platforms: PLATFORM_JSB,
|
||||||
linksrc:"src/VibrateTest/VibrateTest.js",
|
linksrc:"src/VibrateTest/VibrateTest.js",
|
||||||
testScene:function () {
|
testScene:function () {
|
||||||
return new VibrateTestScene();
|
return new VibrateTestScene();
|
||||||
|
|
Loading…
Reference in New Issue