Definition
-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:840
function M.BeginMenu(string_label, bool_enabled)
if bool_enabled == nil then bool_enabled = true end
if string_label == nil then log("E", "", "Parameter 'string_label' of function 'BeginMenu' cannot be nil, as the c type is 'const char *'") ; return end
return imgui.BeginMenu(string_label, bool_enabled)
end
Callers
@/lua/ge/extensions/editor/flowgraph/main.lua
if im.BeginMenuBar() then
if im.BeginMenu("File") then
if im.MenuItem1("New Project") then
end
if im.BeginMenu("Recent Files...") then
local recentFiles = editor.getPreference("flowgraph.general.recentFiles") or {}
if im.BeginMenu("Windows") then
self.fgEditor.windowsMenu()
if im.BeginMenu("Quick Connect") then
im.SetWindowFontScale(1/editor.getPreference("ui.general.scale"))
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veStaticRenderView.lua
if im.BeginPopup('viewcontrol' .. tostring(wndData.wndName)) then
if im.BeginMenu('Mode') then
if im.MenuItem1('3D') then
@/lua/ge/extensions/editor/vehicleEditor/veToolbar.lua
if item.group then
if im.BeginMenu(item.group) then
createMenu(item.items)
local function layoutsMenu()
if im.BeginMenu("Layouts", imgui_true) then
for _, layoutPath in ipairs(editor_layoutManager.getWindowLayouts(vEditor.getEditorName())) do
if im.BeginMenuBar() then
if im.BeginMenu("Apps") then
for _, item in ipairs(vEditor.staticMenuItems.items) do
if item.group then
if im.BeginMenu(item.group) then
createMenu(item.items)
end
if im.BeginMenu("View") then
layoutsMenu()
if im.BeginMenuBar() then
if im.BeginMenu("Apps") then
for _, item in ipairs(vEditor.liveMenuItems.items) do
if item.group then
if im.BeginMenu(item.group) then
createMenu(item.items)
end
if im.BeginMenu("View") then
layoutsMenu()
if im.BeginMenu("Vehicles") then
if im.BeginMenu("Spawn") then
if im.BeginMenu("Vehicles") then
if im.BeginMenu("Spawn") then
for k, vehData in ipairs(vehsList) do
end
if im.BeginMenu("Remove") then
local currVehs = getAllVehicles()
@/lua/ge/extensions/editor/rallyEditor.lua
if im.BeginMenu("File") then
if currentPath then
if im.BeginMenu("Tools") then
if im.MenuItem1("Dev Tools") then
-- if im.BeginMenu("Preferences") then
-- im.SetNextItemWidth(70)
@/lua/ge/extensions/editor/flowgraphEditor.lua
end
if im.BeginMenu("Recent Files...") then
local recentFiles = editor.getPreference("flowgraph.general.recentFiles") or {}
local function drawRestoreMenu()
if im.BeginMenu("Restore...") then
if restoreFiles == nil then
for i, name in ipairs(restoreFiles.names) do
if im.BeginMenu(name..'##restore'..i) then
for idx, elem in ipairs(restoreFiles.filesByName[name].list) do
@/lua/ge/extensions/util/groundModelDebug.lua
if im.BeginMenuBar() then
if im.BeginMenu("Menu") then
if im.MenuItem1("Save groundmodels") then saveGroundmodels() end
@/lua/ge/extensions/editor/driftDataEditor.lua
if im.BeginMenuBar() then
if im.BeginMenu("File") then
if im.BeginMenu("Add new stunt zone...") then
if im.MenuItem1("Add Donut") then
@/lua/ge/extensions/career/career.lua
imgui.BeginMenuBar()
if imgui.BeginMenu("File") then
local currentSaveSlot, currentSavePath = career_saveSystem.getCurrentSaveSlot()
end
if imgui.BeginMenu("Modules") then
for _, mod in ipairs(debugModules) do
if imgui.BeginMenu("Functions") then
for _, mod in ipairs(careerModules) do
@/lua/ge/extensions/editor/crawlEditor/presets.lua
self.waypoints = waypoints
if im.BeginMenu("Trail Components") then
local trailComponents = self:getAllTrailComponents()
if im.BeginMenu("Boundary Components") then
local boundaryComponents = self:getAllBoundaryComponents()
if im.BeginMenu("Pathnode Components") then
local pathnodeComponents = self:getAllPathnodeComponents()
@/lua/ge/extensions/editor/missionPlaybook.lua
if im.BeginMenuBar() then
if im.BeginMenu("File...") then
if im.MenuItem1("Clear") then
end
if im.BeginMenu("Util...") then
if im.MenuItem1("Clear Testing Slot") then
end
if im.BeginMenu("Run...") then
if im.MenuItem1("Play") then
end
if im.BeginMenu("Generate...") then
if im.MenuItem1("All Missions") then
end
if im.BeginMenu("All Missions, only...") then
for _, tier in ipairs({1, 2, 3}) do
@/lua/ge/extensions/editor/fileDialog.lua
if im.BeginMenuBar() then
if im.BeginMenu("Favourites") then
local favs = editor.getPreference("files.fileDialog.favourites")
@/lua/ge/extensions/ui/console.lua
if im.BeginMenuBar() then
if im.BeginMenu("View") then
local changedParam = false
if im.BeginMenu("Copy Lines") then
if #interestingLines <=1 then getInterestingLines() end
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veView.lua
local changedOrtho = false
if im.BeginMenu('Mode') then
if im.MenuItem1('3D') then
@/lua/ge/extensions/editor/raceEditor.lua
if im.BeginMenuBar() then
if im.BeginMenu("File") then
im.Text(previousFilepath .. previousFilename)
im.Separator()
if im.BeginMenu("All Races...") then
if im.SmallButton("Refresh (!)") then
end
if im.BeginMenu("Preferences") then
local ptr = im.BoolPtr(editor.getPreference("raceEditor.general.directionalNodes"))
if im.BeginMenu("Tools") then
local add = nil
im.BeginDisabled()
if im.BeginMenu("No Issues!") then im.EndMenu() end
if im.BeginMenu(raceDistanceString()) then im.EndMenu() end
if im.BeginMenu("No Issues!") then im.EndMenu() end
if im.BeginMenu(raceDistanceString()) then im.EndMenu() end
im.tooltip("Recalculates the distance of the race by measuring the length of the ai path.")
else
if im.BeginMenu(#issues..' Issues') then
for i, issue in ipairs(issues) do
@/lua/ge/extensions/core/ropeVisualTest.lua
-- Rope Operations Menu
if im.BeginMenu("Rope") then
if im.MenuItem1("Create Rope", nil, false, true) then
-- Management Menu
if im.BeginMenu("Management") then
if im.MenuItem1("Delete Selected", nil, false, selectedRope ~= nil) then
-- File Menu
if im.BeginMenu("File") then
if im.MenuItem1("Save Parameters", nil, false, true) then
@/lua/ge/extensions/editor/headlessEditorTest.lua
if imgui.BeginMainMenuBar() then
if imgui.BeginMenu("Operations", imgui_true) then
if imgui.MenuItem1("Exit Headless Mode...", nil, imgui_false, imgui_true) then
@/lua/ge/extensions/editor/barriersEditor.lua
if im.BeginMenuBar() then
if im.BeginMenu("Load...") then
im.InputText("File pattern", searchText, 1024)
end
if im.BeginMenu("Race Editor") then
if editor_raceEditor then
end
if im.BeginMenu("Prefabs") then
if im.MenuItem1("Load Selected Prefabs") then
@/lua/ge/extensions/flowgraph/basenode.lua
end
if im.BeginMenu('Create Subgraph...') then
im.SetWindowFontScale(1/editor.getPreference("ui.general.scale"))
end
if im.BeginMenu('Comment...') then
im.SetWindowFontScale(1/editor.getPreference("ui.general.scale"))
--im.Separator()
if im.BeginMenu('Dev tools') then
im.SetWindowFontScale(1/editor.getPreference("ui.general.scale"))
end
if im.BeginMenu('Dumpz Node') then
im.SetWindowFontScale(editor.getPreference("ui.general.scale"))
@/lua/ge/extensions/flowgraph/nodes/states/transition.lua
local target = nil
if im.BeginMenu("Go to target...") then
im.SetWindowFontScale(1/editor.getPreference("ui.general.scale"))
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
if im.BeginMenuBar() then
if im.BeginMenu(translateLanguage("ui.trackbuilder.menus.windows","Windows")) then
for k,v in pairs(menuItemsSorted) do
end
if im.BeginMenu(translateLanguage("ui.trackbuilder.menus.editorSettings", "Editor Settings")) then
if im.MenuItem1(translateLanguage("ui.trackbuilder.menus.removeTrack","Remove Track")) then
@/lua/ge/extensions/editor/crawlEditor.lua
if im.BeginMenuBar() then
if im.BeginMenu("File") then
if im.MenuItem1("Save All") then
if im.BeginMenu("View") then
if im.MenuItem1("Refresh Lists") then
if im.BeginMenu("Tools") then
if im.MenuItem1("Port Mission to New System") then
@/lua/ge/extensions/editor/trafficSignalsEditor.lua
im.BeginMenuBar()
if im.BeginMenu("File") then
if im.MenuItem1("Load") then
end
if im.BeginMenu("Preferences") then
local val = im.BoolPtr(options.smartName)
if im.BeginMenu("Tools") then
if im.MenuItem1("Check Signal Errors") then
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
local function renderPopup(view)
if im.BeginMenu('View##VDV_'..tostring(view.name)) then
if im.RadioButton1('Left##VDV_'..tostring(view.name), view.typeName == 'Left') then
im.Separator()
if im.BeginMenu('View details##VDV_'..tostring(view.name)) then -- there is only one at any point in time
im.TextUnformatted('Name: ' .. tostring(view.name))
if im.BeginMenu('View Controls##VDV_'..tostring(view.name)) then
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 1, 1, 0.8))
if im.BeginMenu('Layouts##VDV_'..tostring(view.name)) then
if im.SmallButton('reset current##resetLayouy') then
-- float_v_speed, int_v_min, int_v_max, string_format, ImGuiSliderFlags_flags
if im.BeginMenu('Options##VDV_'..tostring(view.name)) then
im.TextUnformatted('Image resolution multiplier: ')
@/lua/ge/extensions/career/modules/linearTutorial.lua
M.drawDebugFunctions = function()
if im.BeginMenu("> Intro Popups...") then
if im.Selectable1("View All In Order") then
@/lua/ge/extensions/editor/sceneTree.lua
imgui.Separator()
if imgui.BeginMenu("Prefab V2", imgui_true) then
if node.className == "Prefab" then
-- Generates the "More >" submenu
if imgui.BeginMenu("More", imgui_true) then
generateExtendedSceneTreeObjectMenuItems(validCustomMenuItems)
@/lua/ge/extensions/editor/mainMenu.lua
local function fileMenu()
if imgui.BeginMenu("File", imgui_true) then
if imgui.MenuItem1("New Level", "Ctrl+N", imgui_false, imgui_true) then
local function editMenu()
if imgui.BeginMenu("Edit", imgui_true) then
if imgui.MenuItem1("Undo", "Ctrl+Z", imgui_false, imgui_true) then
local function cameraMenu()
if imgui.BeginMenu("Camera", imgui_true) then
if imgui.MenuItem1("Game Camera", "Ctrl+1", imgui_false, imgui_true) then
local function objectMenu()
if imgui.BeginMenu("Object", imgui_true) then
if imgui.MenuItem1("Lock Selection", "Ctrl+Alt+L", imgui_false, imgui_true) then
if imgui.BeginMenu("Align Bounds", imgui_true) then
if imgui.MenuItem1("-X Axis") then
if imgui.BeginMenu("Align Center", nil, imgui_false, imgui_true) then
if imgui.MenuItem1("X Axis") then
local function windowMenu()
if imgui.BeginMenu("Window", imgui_true) then
local menuGenerator = function(menuGroups, menuItems)
if item.isGroup then
if imgui.BeginMenu(item.itemText, imgui_true) then
for _, subitem in ipairs(menuGroups[item.itemText]) do
local function helpMenu()
if imgui.BeginMenu("Help", imgui_true) then
if imgui.MenuItem1("Editor Documentation...", "F1", imgui_false, imgui_true) then
local function viewMenu()
if imgui.BeginMenu("View", imgui_true) then
drawGizmoPlane[0] = editor.getPreference("gizmos.general.drawGizmoPlane")
if imgui.BeginMenu("Layouts", imgui_true) then
for _, layoutPath in ipairs(editor_layoutManager.getWindowLayouts()) do
@/lua/ge/extensions/editor/flowgraph/properties.lua
if pin.node.mgr.savedDir then
if im.BeginMenu("Related Files...") then
if relativeFiles == nil then
@/lua/ge/extensions/editor/missionEditor.lua
if im.BeginMenuBar() then
if im.BeginMenu("File") then
if im.MenuItem1("New Mission...") then
im.Separator()
if im.BeginMenu("Delete") then
if not saveable then im.BeginDisabled() end
local variableClicked, translationClicked, timeUpdaterClicked = false, false, false
if im.BeginMenu("Tools") then
if im.MenuItem1("Calculate Mission Issues") then
if not clickedMission then im.BeginDisabled() end
if im.BeginMenu("Custom Editor Functions...") then
local helper = M.getCurrentEditorHelperWhenActive()
im.Separator()
if clickedMission and im.BeginMenu("Generate Attempts") then
if not clickedMission then im.BeginDisabled() end
@/lua/ge/extensions/editor/missionEditor/issues.lua
if im.BeginMenuBar() then
if im.BeginMenu("Issues") then
if im.MenuItem1("Attempt to fix all Missiontype issues for all missions") then
@/lua/ge/extensions/gameplay/missions/missionTypes/editorHelper.lua
local template = nil
if im.BeginMenu("Create New and Open Flowgraph Project...") then
if im.Selectable1("Empty Project") then template = "empty" end
@/lua/ge/extensions/editor/rendererComponents.lua
if im.BeginMenuBar() then
if im.BeginMenu("File", imgui_true) then
if im.MenuItem1("Load Preset...",nil,imgui_false,imgui_true) then
@/lua/ge/extensions/editor/util/editorElementHelper.lua
local template = nil
if im.BeginMenu("Create New and Open Flowgraph Project...") then
if im.Selectable1("Empty Project") then template = "empty" end
@/lua/ge/extensions/editor/multiSpawnManager.lua
im.BeginMenuBar()
if im.BeginMenu("File") then
if im.MenuItem1("New") then
if im.BeginMenu("Tools") then
if im.MenuItem1("Shuffle Group") then
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
if string_label == nil then log("E", "", "Parameter 'string_label' of function 'BeginMenu' cannot be nil, as the c type is 'const char *'") ; return end
return imgui.BeginMenu(string_label, bool_enabled)
end
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veJBeamPicker.lua
if im.BeginMenuBar() then
if im.BeginMenu("File") then
im.EndMenu()
end
if im.BeginMenu("View") then
if im.BeginMenu("Nodes") then
if im.BeginMenu("View") then
if im.BeginMenu("Nodes") then
im.PushItemWidth(175)
end
if im.BeginMenu("Beams") then
im.PushItemWidth(175)
@/lua/ge/extensions/editor/missionEditor/genericTypeData.lua
if self.missionTypeEditors[mType] and self.missionTypeEditors[mType].toolsFunctions then
if im.BeginMenu(mType..'##toolMenu') then
self.missionTypeEditors[mType]:toolsFunctions()
if self.missionTypeEditors[mType] and self.missionTypeEditors[mType].viewFunctions then
if im.BeginMenu(mType..'##viewMenu') then
self.missionTypeEditors[mType]:viewFunctions()
@/lua/ge/extensions/editor/sceneView.lua
local changedOrtho = false
if im.BeginMenu('Mode') then
if im.MenuItem1('3D') then
@/lua/ge/extensions/flowgraph/pin.lua
if editor.getPreference("flowgraph.debug.editorDebug") then
if im.BeginMenu('Dumpz Node') then
--im.SetWindowFontScale(editor.getPreference("ui.general.scale"))
@/lua/ge/extensions/editor/dragRaceEditor.lua
local function drawFileMenu()
if im.BeginMenu("File") then
if im.MenuItem1("New Drag Settings") then
local function drawEditMenu()
if im.BeginMenu("Edit") then
if im.MenuItem1("Add Lane") then
local function drawViewMenu()
if im.BeginMenu("View") then
if im.MenuItem1("Show Transforms") then
local function drawHelpMenu()
if im.BeginMenu("Help") then
if im.MenuItem1("Documentation") then
@/lua/ge/extensions/editor/sitesEditor.lua
if im.BeginMenuBar() then
if im.BeginMenu("File") then
if im.MenuItem1("New") then
if im.BeginMenu("Tools") then
local function managerSites()
if im.BeginMenu("Sites in Manager...") then
local levelSites = extensions.gameplay_sites_sitesManager.getSitesFilesByLevel()
end
if im.BeginMenu("Empty Levels") then
for _, name in ipairs(emptyLevelNamesSorted) do
for _, lvl in ipairs(lvlNamesSorted) do
if im.BeginMenu(lvl) then
for _, site in ipairs(levelSites[lvl]) do
@/lua/ge/extensions/editor/veMain.lua
local function fileMenu()
if im.BeginMenu("File", imgui_true) then
if im.MenuItem1("Exit Vehicle Editor...", nil, imgui_false, imgui_true) then