Skip to content

Commit 9b5fa39

Browse files
committed
Merge pull request cocos2d#2264 from VisualSJ/5938-UIButton
Issue #5938: Add getTitleRenderer to UIButton
2 parents d227bc7 + f65e2ed commit 9b5fa39

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

extensions/ccui/uiwidgets/UIButton.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,15 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
735735
this.pressedActionEnabled = enabled;
736736
},
737737

738+
/**
739+
* Get the title renderer.
740+
* title ttf object.
741+
* @returns {cc.LabelTTF}
742+
*/
743+
getTitleRenderer: function(){
744+
return this._titleRenderer;
745+
},
746+
738747
/**
739748
* Sets title text to ccui.Button
740749
* @param {String} text

0 commit comments

Comments
 (0)