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

Function HideFillingPercent

src/misc_gui.cpp:586–592  ·  view source on GitHub ↗

* Hide vehicle loading indicators. * @param *te_id TextEffectID which is supposed to be hidden. */

Source from the content-addressed store, hash-verified

584 * @param *te_id TextEffectID which is supposed to be hidden.
585 */
586void HideFillingPercent(TextEffectID *te_id)
587{
588 if (*te_id == INVALID_TE_ID) return;
589
590 RemoveTextEffect(*te_id);
591 *te_id = INVALID_TE_ID;
592}
593
594static constexpr std::initializer_list<NWidgetPart> _nested_tooltips_widgets = {
595 NWidget(WWT_EMPTY, INVALID_COLOUR, WID_TT_BACKGROUND),

Callers 4

CmdReverseTrainDirectionFunction · 0.85
CrashMethod · 0.85
PreDestructorMethod · 0.85
LeaveStationMethod · 0.85

Calls 1

RemoveTextEffectFunction · 0.85

Tested by

no test coverage detected