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

Method GetTitle

src/settings.cpp:427–430  ·  view source on GitHub ↗

* Get the title of the setting. * The string should include a {STRING2} to show the current value. * @return The title string. */

Source from the content-addressed store, hash-verified

425 * @return The title string.
426 */
427StringID IntSettingDesc::GetTitle() const
428{
429 return this->get_title_cb != nullptr ? this->get_title_cb(*this) : this->str;
430}
431
432/**
433 * Get the help text of the setting.

Callers 4

UpdateFilterStateMethod · 0.80
DrawSettingMethod · 0.80
DrawSettingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected