RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager
Sites Editor - LocationsSites Editor - Parking SpotsSites Editor - Sorted List DisplaySites Editor - TagsSites Editor - Zones

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE ExtensionseditorsitesEditor

Sites Editor - Sorted List Display

Generic sorted list UI wrapper for the Sites Editor. Manages element selection (single/multi), search filtering, custom fields, tags, name/color editing, and delegates to element-specific editors.

Generic sorted list UI wrapper for the Sites Editor. Manages element selection (single/multi), search filtering, custom fields, tags, name/color editing, and delegates to element-specific editors.


Class Methods

MethodDescription
C:init(sitesEditor, key, elementEditor)Initializes with parent editor, data key, and element editor
C:setSites(sites)Binds to sites data, builds tag index from all elements
C:selected()Resets selection, sets all objects to normal draw mode
C:unselect()Clears selection, fades all objects
C:selectElement(id, mode)Selects/toggles element by id with optional multi-select mode
C:updateSharedSelectedTags()Computes tags shared across all selected elements
C:draw(mouseInfo)Draws the full panel with input handling
C:input()Handles mouse click (select) and shift-click (create)
C:setField(name, value)Sets a named field on all selected elements with undo
C:drawList()Renders search bar, scrollable element list, and property panel
C:drawCustomFields(fields)Renders editable custom fields (string, number, vec3)
C:drawTags()Renders tag display with add/remove/popup UI
C:addTag()Adds a tag to all selected elements and updates counts
C:getCurrentSelected()Returns the currently selected element object

Example: Using the Sorted List Display

-- Created internally by sitesEditor during onEditorInitialized:
local locations = require('editor/sitesEditor/locations')(M, 'locations')
local locationsList = require('editor/sitesEditor/sortedListDisplay')(M, 'locations', locations)
locationsList.windowDescription = "Locations"

-- Configuration flags:
locationsList.createByShift = true   -- Shift+click to create
locationsList.selectByClick = true   -- Click to select

-- The list supports multi-selection via Ctrl/Shift keys
-- Custom fields can be string, number, or vec3 type
-- Tags can be added, removed, and browsed via combo dropdown
-- Copy/Paste fields between objects is supported

See Also

  • Sites Editor - Locations - Related reference
  • Sites Editor - Parking Spots - Related reference
  • Sites Editor - Tags - Related reference
  • World Editor Guide - Guide

Sites Editor - Parking Spots

Sub-editor for managing parking spot elements within the Sites Editor. Supports position/rotation/scale editing via transformUtil, vehicle scale presets, and multi-spot configurations.

Sites Editor - Tags

Tag management sub-editor for the Sites Editor. Displays all tags in a two-column layout (has/doesn't-have), allowing bulk tag assignment and removal across elements.

On this page

Class MethodsExample: Using the Sorted List DisplaySee Also