| 572 | } |
| 573 | |
| 574 | void EditorMode::updateCursorText() |
| 575 | { |
| 576 | // Gets the current action from the drag type |
| 577 | std::stringstream textSS; |
| 578 | |
| 579 | // Update the fullness info |
| 580 | CEGUI::Window *posWin = mRootWindow->getChild(Gui::EDITOR_FULLNESS); |
| 581 | textSS.str(""); |
| 582 | textSS << "Tile Fullness (T): " << mCurrentFullness << "%"; |
| 583 | posWin->setText(textSS.str()); |
| 584 | |
| 585 | // Update the cursor position |
| 586 | posWin = mRootWindow->getChild(Gui::EDITOR_CURSOR_POS); |
| 587 | textSS.str(""); |
| 588 | textSS << "Cursor: x: " << mMouseX << ", y: " << mMouseY; |
| 589 | posWin->setText(textSS.str()); |
| 590 | |
| 591 | // Update the seat id |
| 592 | posWin = mRootWindow->getChild(Gui::EDITOR_SEAT_ID); |
| 593 | textSS.str(""); |
| 594 | textSS << "Seat id (Y): " << getModeManager().getInputManager().mSeatIdSelected; |
| 595 | posWin->setText(textSS.str()); |
| 596 | |
| 597 | // Update the seat id |
| 598 | posWin = mRootWindow->getChild(Gui::EDITOR_CREATURE_SPAWN); |
| 599 | textSS.str(""); |
| 600 | const CreatureDefinition* def = mGameMap->getClassDescription(mCurrentCreatureIndex); |
| 601 | if(def == nullptr) |
| 602 | textSS << "Creature (C): ?"; |
| 603 | else |
| 604 | textSS << "Creature (C): " << def->getClassName(); |
| 605 | |
| 606 | posWin->setText(textSS.str()); |
| 607 | } |
| 608 | |
| 609 | bool EditorMode::keyPressed(const OIS::KeyEvent &arg) |
| 610 | { |
nothing calls this directly
no test coverage detected