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

Function UpdateFillingPercent

src/misc_gui.cpp:575–580  ·  view source on GitHub ↗

* Update vehicle loading indicators. * @param te_id TextEffectID to be updated. * @param string String which is printed. */

Source from the content-addressed store, hash-verified

573 * @param string String which is printed.
574 */
575void UpdateFillingPercent(TextEffectID te_id, uint8_t percent, StringID string)
576{
577 assert(string != STR_NULL);
578
579 UpdateTextEffect(te_id, GetEncodedString(string, percent));
580}
581
582/**
583 * Hide vehicle loading indicators.

Callers 1

LoadUnloadVehicleFunction · 0.85

Calls 2

UpdateTextEffectFunction · 0.85
GetEncodedStringFunction · 0.70

Tested by

no test coverage detected