showTrackBuilderWindow
Definition
-- @/lua/ge/extensions/trackbuilder/trackBuilder.lua:3487
local function showTrackBuilderWindow(show)
if not initialized then
initialize()
end
if tb == nil then
tb = extensions['util_trackBuilder_splineTrack']
tb.setHighQuality(true)
tb.camDistance = menuSettings.camDistance.value[0]
tb.camActivated = menuSettings.camActivated.value[0]
end
open[0] = show
if show then
setupUIStyle()
guihooks.trigger('ShowApps', false)
if isOnGlowCity then
setupTrack()
end
end
if not show then
tb.unselectAll()
tb.refreshAllMaterials()
tb.showMarkers(false)
guihooks.trigger('ShowApps', true)
trackSpawned = false
if not isOnGlowCity and #tb.getPieceInfo().pieces <= 2 then
tb.removeTrack()
open[0] = false
end
end
end
Callers
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
end
M.showTrackBuilderWindow(true)
end
M.showTrackBuilderWindow(false)
local active = open[0]
showTrackBuilderWindow(not active)
if active then