GE Lua Documentation

Press F to search!

getEditorName

Definition


-- @/lua/ge/extensions/editor/veMain.lua:55

vEditor.getEditorName = function()
  return vEditor.EDITOR_NAMES[vEditor.editorMode]
end

Callers

@/lua/ge/extensions/editor/vehicleEditor/veToolbar.lua
  if im.BeginMenu("Layouts", imgui_true) then
    for _, layoutPath in ipairs(editor_layoutManager.getWindowLayouts(vEditor.getEditorName())) do
      if im.MenuItem1(string.match(layoutPath, ".+/(.+)"), nil, imgui_false, imgui_true) then
        editor.hideWindow(saveLayoutWindowName)
        editor_layoutManager.saveWindowLayout(ffi.string(layoutName), vEditor.getEditorName())
      end
        editor.hideWindow(saveLayoutWindowName)
        editor_layoutManager.saveWindowLayout(ffi.string(layoutName), vEditor.getEditorName())
      end
  if editor.beginWindow(deleteLayoutWindowName, deleteLayoutWindowTitle) then
    for _, layoutPath in ipairs(editor_layoutManager.getWindowLayouts(vEditor.getEditorName())) do
      if im.MenuItem1(string.match(layoutPath, ".+/(.+)"), nil, imgui_false, imgui_true) then
      editor.hideWindow(resetLayoutsWindowName)
      editor_layoutManager.resetLayouts(vEditor.getEditorName())
    end
@/lua/ge/extensions/editor/veMain.lua
  -- disable old editor
  editor.enableHeadless(false, vEditor.getEditorName())
  vEditor.editorMode = mode
  -- enable new editor
  editor.enableHeadless(true, vEditor.getEditorName())
end

  editor.enableHeadless(true, vEditor.getEditorName())
  setupEditor()
  -- disable headless mode
  editor.enableHeadless(false, vEditor.getEditorName())
  editor.hideObjectIcons = false
  -- Setup editor in case it wasn't setup before using, e.g. reloading Lua
  if toolName == vEditor.getEditorName() then
    if enabled then
local function onEditorHeadlessMainMenuBar()
  if not editor.isHeadlessToolActive(vEditor.getEditorName()) then return end
local function saveCurrentWindowLayout()
  editor_layoutManager.saveCurrentWindowLayout(vEditor.getEditorName())
end