onEditorHeadlessMainMenuBar
Definition
-- @/lua/ge/extensions/editor/veMain.lua:389
-- this hook function is called by the editor when in headless mode to draw your own menubar
local function onEditorHeadlessMainMenuBar()
if not editor.isHeadlessToolActive(vEditor.getEditorName()) then return end
-- show our custom menu for the editor
if im.BeginMainMenuBar() then
fileMenu()
sceneMetric()
im.EndMainMenuBar()
end
end
Callers
@/lua/ge/extensions/editor/headlessEditorTest.lua
-- this hook function is called by the editor when in headless mode to draw your own menubar
local function onEditorHeadlessMainMenuBar()
if not editor.isHeadlessToolActive(toolName) then return end