setEditorMode
Definition
-- @/lua/ge/extensions/editor/veMain.lua:60
-- Play/stop button clicked
vEditor.setEditorMode = function(mode)
--table.clear(vEditor.selectedNodes)
--table.clear(vEditor.selectedBeams)
-- disable old editor
editor.enableHeadless(false, vEditor.getEditorName())
vEditor.editorMode = mode
-- enable new editor
editor.enableHeadless(true, vEditor.getEditorName())
end
Callers
@/lua/ge/extensions/editor/vehicleEditor/veToolbar.lua
if vEditor.editorMode ~= vEditor.EDITOR_MODE_STATIC then
vEditor.setEditorMode(vEditor.EDITOR_MODE_STATIC)
end
if vEditor.editorMode ~= vEditor.EDITOR_MODE_LIVE then
vEditor.setEditorMode(vEditor.EDITOR_MODE_LIVE)
end