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

Method SetDisplayedHelpText

src/settings_gui.cpp:761–766  ·  view source on GitHub ↗

* Set the entry that should have its help text displayed, and mark the window dirty so it gets repainted. * @param pe Setting to display help text of, use \c nullptr to stop displaying help of the currently displayed setting. */

Source from the content-addressed store, hash-verified

759 * @param pe Setting to display help text of, use \c nullptr to stop displaying help of the currently displayed setting.
760 */
761 void SetDisplayedHelpText(SettingEntry *pe)
762 {
763 if (this->last_clicked != pe) this->SetDirty();
764 this->last_clicked = pe;
765 UpdateHelpTextSize();
766 }
767
768 void UpdateHelpTextSize()
769 {

Callers 2

OptionsPanelClickMethod · 0.95
OnInvalidateDataMethod · 0.95

Calls 1

SetDirtyMethod · 0.45

Tested by

no test coverage detected