| 521 | } |
| 522 | |
| 523 | void OnPlaceObject([[maybe_unused]] Point pt, TileIndex tile) override |
| 524 | { |
| 525 | switch (this->last_user_action) { |
| 526 | case WID_QES_MOVE: // Place sign button |
| 527 | RenameSign(this->cur_sign, this->name_editbox.text.GetText()); |
| 528 | MoveSign(this->cur_sign, tile); |
| 529 | this->Close(); |
| 530 | break; |
| 531 | |
| 532 | default: NOT_REACHED(); |
| 533 | } |
| 534 | } |
| 535 | |
| 536 | void OnPlaceObjectAbort() override |
| 537 | { |
nothing calls this directly
no test coverage detected