uiEventStartHotlapping
Definition
-- @/lua/ge/extensions/scenario/quickRaceLoader.lua:591
-- These two functions manage the loading and unloading of the hotlapping module when used in freeroam,
-- so that it doesnt have to be a core module but only loaded on demand.
local function uiEventStartHotlapping()
--log("I",logTag,"uiEventStartHotlapping called.....")
if not scenario_scenarios or not (scenario_scenarios and scenario_scenarios.getScenario()) then
if not core_hotlapping then
extensions.load({'core_hotlapping'});
end
end
if core_hotlapping then
core_hotlapping.startHotlapping()
end
end
Callers
@/ui/modules/apps/Hotlapping/app.js
scope.startHotlapping = function () {
bngApi.engineLua('scenario_quickRaceLoader.uiEventStartHotlapping()')
scope.resetTimes()