GE Lua Documentation

Press F to search!

removeRibbon

Definition


-- @/lua/ge/extensions/core/audioRibbon.lua:427

-- Removes the ribbon with the given index.
local function removeRibbon(idx)
  clearAllSFXEmitters()
  local ribbon = ribbons[idx]
  ribbonNames[ribbon.persistantId] = nil
  table.remove(ribbons, idx)
  table.clear(nearList)
  table.clear(farList)
end

Callers

@/lua/ge/extensions/editor/audioRibbonEditor.lua
        for j = #ribbons, 1, -1 do
          audioRibbon.removeRibbon(j)
        end
            local statePre = copyRibbonsState()
            audioRibbon.removeRibbon(i)
            selectedRibbonIdx = max(1, min(selectedRibbonIdx, #ribbons))
@/lua/ge/extensions/core/audioRibbon.lua
  for j = #ribbons, 1, -1 do                                                                        -- First delete all the emitters.
    removeRibbon(j)
  end