slider
local slider_Boos = {} slider_Boos.Slider = cc.ControlSlider:create( cc.Sprite:create("majia/images/battle/boosSlider_bg.png"), cc.Sprite:create("majia/images/battle/boosSlider.png"), cc.Sprite:create("majia/images/battle/transparent.png") ) slider_Boos.Slider:setPosition(cc.p(display.width * (280 / 1136), display.height * (566 / 640))) slider_Boos.Slider:setValue(1) slider_Boos.Slider:setEnabled(false) slider_Boos.Slider:addTo(layerColor)
local slider = ccui.Slider:create() :setEnabled(false) :setPosition(cc.p(27, 60)) :loadBarTexture("majia/images/task/slider_bg.png") :loadProgressBarTexture("majia/images/task/slider_speed.png") :setPercent(100) :setVisible(false) :addTo(item)