| 129 | void TextButton::setFont(sp<BitmapFont> NewFont) { label->setFont(NewFont); } |
| 130 | |
| 131 | sp<Control> TextButton::copyTo(sp<Control> CopyParent) |
| 132 | { |
| 133 | sp<TextButton> copy; |
| 134 | if (CopyParent) |
| 135 | { |
| 136 | copy = CopyParent->createChild<TextButton>(label->getText(), label->getFont()); |
| 137 | } |
| 138 | else |
| 139 | { |
| 140 | copy = mksp<TextButton>(label->getText(), label->getFont()); |
| 141 | } |
| 142 | copy->TextHAlign = this->TextHAlign; |
| 143 | copy->TextVAlign = this->TextVAlign; |
| 144 | copy->RenderStyle = this->RenderStyle; |
| 145 | copyControlData(copy); |
| 146 | return copy; |
| 147 | } |
| 148 | |
| 149 | void TextButton::configureSelfFromXml(pugi::xml_node *node) |
| 150 | { |