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

Function UpdateTextEffect

src/texteff.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void UpdateTextEffect(TextEffectID te_id, EncodedString &&msg)
68{
69 /* Update details */
70 TextEffect &te = _text_effects[te_id];
71 if (msg == te.msg) return;
72 te.msg = std::move(msg);
73
74 te.UpdatePosition(te.center, te.top, te.msg.GetDecodedString());
75}
76
77void UpdateAllTextEffectVirtCoords()
78{

Callers 1

UpdateFillingPercentFunction · 0.85

Calls 2

GetDecodedStringMethod · 0.80
UpdatePositionMethod · 0.45

Tested by

no test coverage detected