| 728 | } |
| 729 | |
| 730 | void LabelFNTMultiLineAlignment::selectSentenceItem(ax::MenuItemFont* item) |
| 731 | { |
| 732 | if (this->_lastSentenceItem && this->_lastSentenceItem != item) |
| 733 | { |
| 734 | this->_lastSentenceItem->setColor(Color3B::WHITE); |
| 735 | } |
| 736 | |
| 737 | this->_lastSentenceItem = item; |
| 738 | item->setColor(Color3B::RED); |
| 739 | |
| 740 | auto str = this->getItemString(item); |
| 741 | this->_label->setString(str); |
| 742 | } |
| 743 | |
| 744 | std::string LabelFNTMultiLineAlignment::getItemString(ax::MenuItemFont* item) |
| 745 | { |
no test coverage detected