| 12 | { |
| 13 | |
| 14 | void StrangeButton::onMouseSetFocus(MyGUI::Widget* _old) |
| 15 | { |
| 16 | Base::onMouseSetFocus(_old); |
| 17 | |
| 18 | if (getSubWidgetText() == nullptr) |
| 19 | return; |
| 20 | |
| 21 | std::string s; |
| 22 | std::string str = getSubWidgetText()->getCaption(); |
| 23 | for (int i = (int)str.length() - 1; i >= 0; i--) |
| 24 | s += str[i]; |
| 25 | |
| 26 | getSubWidgetText()->setCaption(s); |
| 27 | } |
| 28 | |
| 29 | void StrangeButton::onMouseLostFocus(MyGUI::Widget* _new) |
| 30 | { |
nothing calls this directly
no test coverage detected