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

Method OnQueryTextFinished

src/newgrf_debug_gui.cpp:593–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591 }
592
593 void OnQueryTextFinished(std::optional<std::string> str) override
594 {
595 if (!str.has_value()) return;
596
597 auto val = ParseInteger<uint32_t>(*str, 16, true);
598 if (!val.has_value()) return;
599 NewGRFInspectWindow::var60params[GetFeatureNum(this->window_number)][this->current_edit_param - 0x60] = *val;
600 this->SetDirty();
601 }
602
603 void OnResize() override
604 {

Callers

nothing calls this directly

Calls 2

GetFeatureNumFunction · 0.85
SetDirtyMethod · 0.45

Tested by

no test coverage detected