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

Method GetText

src/game/game_gui.cpp:168–172  ·  view source on GitHub ↗

* Get text to display for game script name. * @returns Text to display for game script name. */

Source from the content-addressed store, hash-verified

166 * @returns Text to display for game script name.
167 */
168 std::string GetText() const
169 {
170 if (const GameInfo *info = GameConfig::GetConfig()->GetInfo(); info != nullptr) return info->GetName();
171 return GetString(STR_AI_CONFIG_NONE);
172 }
173
174 void DrawWidget(const Rect &r, WidgetID widget) const override
175 {

Callers 8

DrawWidgetMethod · 0.95
OnEditboxChangedMethod · 0.45
OnClickMethod · 0.45
OpenExternalSearchMethod · 0.45
OnEditboxChangedMethod · 0.45
OnEditboxChangedMethod · 0.45
CheckServerNameMethod · 0.45

Calls 4

GetConfigFunction · 0.85
GetStringFunction · 0.50
GetInfoMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected