| 216 | } |
| 217 | |
| 218 | void GameEditorModeBase::receiveEventShortNotice(EventMessage* event) |
| 219 | { |
| 220 | mEventMessages.emplace_back(event); |
| 221 | |
| 222 | // Adds the message right away |
| 223 | CEGUI::Window* shortNoticeText = mRootWindow->getChild("GameEventText"); |
| 224 | shortNoticeText->appendText(reinterpret_cast<const CEGUI::utf8*>(event->getMessageAsString().c_str())); |
| 225 | |
| 226 | // Ensure the latest text is shown |
| 227 | CEGUI::Scrollbar* scrollBar = reinterpret_cast<CEGUI::Scrollbar*>(shortNoticeText->getChild("__auto_vscrollbar__")); |
| 228 | scrollBar->setScrollPosition(scrollBar->getDocumentSize()); |
| 229 | } |
| 230 | |
| 231 | void GameEditorModeBase::updateMessages(Ogre::Real update_time) |
| 232 | { |
no test coverage detected