| 27 | } |
| 28 | |
| 29 | void StrangeButton::onMouseLostFocus(MyGUI::Widget* _new) |
| 30 | { |
| 31 | Base::onMouseLostFocus(_new); |
| 32 | |
| 33 | if (getSubWidgetText() == nullptr) |
| 34 | return; |
| 35 | |
| 36 | std::string s; |
| 37 | std::string str = getSubWidgetText()->getCaption(); |
| 38 | for (int i = (int)str.length() - 1; i >= 0; i--) |
| 39 | s += str[i]; |
| 40 | |
| 41 | getSubWidgetText()->setCaption(s); |
| 42 | } |
| 43 | |
| 44 | } // namespace plugin |
nothing calls this directly
no test coverage detected