mirror of https://github.com/axmolengine/axmol.git
getSlidBallRenderer methods to allow more customization of UISlider (#16532)
* getSlidBallRenderer methods to allow more customization of UISlider look and feel. * Added const to declaration of getSlidBallRenderer methods for UISlider.
This commit is contained in:
parent
9449e687af
commit
84f6863214
|
@ -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 Slider::getBackFile()
|
||||||
{
|
{
|
||||||
ResourceData rData;
|
ResourceData rData;
|
||||||
|
|
|
@ -265,6 +265,11 @@ public:
|
||||||
*/
|
*/
|
||||||
float getZoomScale()const;
|
float getZoomScale()const;
|
||||||
|
|
||||||
|
Sprite* getSlidBallNormalRenderer() const;
|
||||||
|
Sprite* getSlidBallPressedRenderer() const;
|
||||||
|
Sprite* getSlidBallDisabledRenderer() const;
|
||||||
|
Node* getSlidBallRenderer() const;
|
||||||
|
|
||||||
ResourceData getBackFile();
|
ResourceData getBackFile();
|
||||||
ResourceData getProgressBarFile();
|
ResourceData getProgressBarFile();
|
||||||
ResourceData getBallNormalFile();
|
ResourceData getBallNormalFile();
|
||||||
|
|
Loading…
Reference in New Issue