MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnPlaceObject

Method OnPlaceObject

src/signs_gui.cpp:523–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

RenameSignFunction · 0.85
MoveSignFunction · 0.85
NOT_REACHEDFunction · 0.85
GetTextMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected