diff --git a/cocos/ui/UISlider.cpp b/cocos/ui/UISlider.cpp index b49ef2f6c9..95fc46ccf1 100644 --- a/cocos/ui/UISlider.cpp +++ b/cocos/ui/UISlider.cpp @@ -753,6 +753,22 @@ void Slider::copySpecialProperties(Widget *widget) } } +Sprite* Slider::getSlidBallNormalRenderer() const { + return _slidBallNormalRenderer; +} + +Sprite* Slider::getSlidBallPressedRenderer() const { + return _slidBallPressedRenderer; +} + +Sprite* Slider::getSlidBallDisabledRenderer() const { + return _slidBallDisabledRenderer; +} + +Node* Slider::getSlidBallRenderer() const { + return _slidBallRenderer; +} + ResourceData Slider::getBackFile() { ResourceData rData; diff --git a/cocos/ui/UISlider.h b/cocos/ui/UISlider.h index 5de9021c39..3e48970e1b 100644 --- a/cocos/ui/UISlider.h +++ b/cocos/ui/UISlider.h @@ -265,6 +265,11 @@ public: */ float getZoomScale()const; + Sprite* getSlidBallNormalRenderer() const; + Sprite* getSlidBallPressedRenderer() const; + Sprite* getSlidBallDisabledRenderer() const; + Node* getSlidBallRenderer() const; + ResourceData getBackFile(); ResourceData getProgressBarFile(); ResourceData getBallNormalFile();