MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / tooltip

Function tooltip

src/OpenLoco/src/Ui/Windows/Vehicle.cpp:879–891  ·  view source on GitHub ↗

0x004B31F2

Source from the content-addressed store, hash-verified

877
878 // 0x004B31F2
879 static std::optional<FormatArguments> tooltip(Ui::Window& self, WidgetIndex_t, [[maybe_unused]] const WidgetId id)
880 {
881 FormatArguments args{};
882
883 auto head = Common::getVehicle(self);
884 if (head == nullptr)
885 {
886 return {};
887 }
888 args.skip(2);
889 args.push(StringIds::getVehicleType(head->vehicleType));
890 return args;
891 }
892
893 // 0x004B1EB5
894 static void prepareDraw(Window& self)

Callers

nothing calls this directly

Calls 4

getVehicleFunction · 0.85
getVehicleTypeFunction · 0.85
skipMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected