GE Lua Documentation

Press F to search!

BeginPopup

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:873
function M.BeginPopup(string_str_id, ImGuiWindowFlags_flags)
  if ImGuiWindowFlags_flags == nil then ImGuiWindowFlags_flags = 0 end
  if string_str_id == nil then log("E", "", "Parameter 'string_str_id' of function 'BeginPopup' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.BeginPopup(string_str_id, ImGuiWindowFlags_flags)
end

Callers

@/lua/ge/extensions/editor/missionEditor/additionalAttributes.lua
function C:timeUpdaterPopup()
  if im.BeginPopup("timeUpdaterForMissions") then
    if not self._timeUpdaterData then
@/lua/ge/extensions/editor/sitesEditor/sortedListDisplay.lua
    end
    if self.popupTag and im.BeginPopup("TagPopup") then
      im.Text("Tag: " .. self.popupTag)
@/lua/ge/extensions/editor/resourceChecker.lua
local function duplicateContextMenu(res, count)
  if im.BeginPopup("Popup_" .. res[2]..count) then
    if im.Selectable1("Copy material data##"..res[2]) then
local function resourceContextMenu(res, count, type, filepath)
  if im.BeginPopup("Popup_" .. res..count) then
    local dir, basefilename, ext = path.splitWithoutExt(res)
@/lua/ge/extensions/editor/trafficManager.lua
      end
      if im.BeginPopup("AI Parameters##trafficManager") then
        local aiData = sessionData.aiData
  end
  if im.BeginPopup("Advanced Functions##trafficManagerAllVehicles") then
    if im.Selectable1("Include All Vehicles From Scene##trafficManagerAllVehicles") then -- adds the player vehicle and all other vehicles to the session data
local function windowOptions()
  if im.BeginPopup(windows.options.key) then
    im.PushItemWidth(300 * im.uiscale[0])
@/lua/ge/extensions/editor/flowgraphEditor.lua
  im.SetNextWindowSize(im.ImVec2(0,350 * im.uiscale[0]), im.Cond_Always)
  if im.BeginPopup("CreateNodeContentMenu") then
    M.nodelib:drawContent(mgr.newNodePos)
@/lua/ge/extensions/editor/dynamicDecals/textures.lua
local function onEditorGuiFn()
  if im.BeginPopup("TextureContextMenuPopup") then
    if im.Button("Set as decal color texture") then
@/lua/ge/extensions/editor/api/valueInspector.lua
    end
    if imgui.BeginPopup(fieldNameId .. "DataBlockPopup") then
      imgui.PushID1(fieldNameId .. "DataBlockNameFilter")
@/lua/ge/extensions/editor/createObjectTool.lua
    imgui.SameLine()
    if imgui.BeginPopup("CreateSimObjectPopup") then
      popupOpen = true
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua

  if im.BeginPopup("DynDecal_Browser_BrushesTab_BrushPopup") then
    if im.Button("Select Brush##BrushContextModal") then
@/lua/ge/extensions/editor/dynamicDecals/vehicleColorPalette.lua

  if im.BeginPopup("SaveVehicleColorPalette_" .. guiId) then
    if im.InputText(string.format("##saveVehicleColorPalette_InputWidget_%s", guiId), editor.getTempCharPtr(colorPaletteName), nil, im.InputTextFlags_AutoSelectAll) then

  if im.BeginPopup("LoadVehicleColorPalette_" .. guiId) then
    local palettes = editor.getPreference("dynamicDecalsTool.vehicleColorPalette.palettes")
@/lua/ge/extensions/editor/perfProfiler.lua
local function newRecordingPopup()
  if im.BeginPopup("NewRecording") then
    im.BeginChild1("rchild",im.ImVec2(500,500))
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veView.lua
  im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(6, 6))
  if im.BeginPopup('viewcontrol' .. tostring(sceneViewName)) then
    local changedOrtho = false
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/decal.lua
  -- SAVE BRUSH
  if im.BeginPopup("SaveBrushPopup") then
    im.TextUnformatted("Brush name")
@/lua/ge/extensions/editor/missionEditor.lua
local function newMissionPopup()
  if im.BeginPopup("NewMission") then
    --print("ok?")
local function missionTranslationHelperPopup()
  if im.BeginPopup("missionTranslationHelper") then
    if translationData == nil then

    if im.BeginPopup("MissionEditorGroupFilter") then
      im.BeginChild1("MissionEditorGroupFilterChild", im.ImVec2(300,200))
@/lua/ge/extensions/editor/audioEventsList.lua
local function renderSoundEventGui(event)
  if im.BeginPopup("rightClickPopupMenu" .. event.id) then
    if im.Selectable1("Copy to clipboard") then
@/lua/ge/extensions/editor/fileDialog.lua

      if im.BeginPopup("FileDialog_NewFolderPopup") then
        im.BeginDisabled()

      if im.BeginPopup("ColumnContextMenu", nil, im.WindowFlags_AlwaysAutoResize) then
        for _, column in ipairs(columns) do
@/lua/common/extensions/ui/imguiUtils.lua
  imgui.SetNextWindowSize(imgui.ImVec2(0, 0), imgui.Cond_Always)
  if imgui.BeginPopup(label) then
    for k, item in pairs(items) do
  imgui.SetNextWindowSize(imgui.ImVec2(0, 0), imgui.Cond_Always)
  if imgui.BeginPopup(label) then
    for k, item in pairs(items) do
  imgui.SetNextWindowSize(imgui.ImVec2(0, 0), imgui.Cond_Always)
  if imgui.BeginPopup(label.."rmb") then
    for k, item in pairs(itemsRMB) do
  imgui.SetNextWindowSize(imgui.ImVec2(0, 0), imgui.Cond_Always)
  if imgui.BeginPopup(label) then
    for k, item in pairs(items) do
@/lua/ge/extensions/editor/api/gui.lua

  if imgui.BeginPopup(label..'##colorEdit8') then
    editor.uiColorPicker4(label, col.clr, flags, nil, editEnded)
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartList.lua

      if im.BeginPopup('part_context_menu') then
        if im.MenuItem1("Open location in file explorer") then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veStaticRenderView.lua
  im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(6, 6))
  if im.BeginPopup('viewcontrol' .. tostring(wndData.wndName)) then
    if im.BeginMenu('Mode') then
@/lua/ge/extensions/editor/flowgraph/main.lua
            im.PopStyleVar()
            if im.BeginPopup("FG_SiblingGraphs") then
              for _, sib in ipairs(self._siblings or {}) do
  --im.SetNextWindowPos(im.GetCursorScreenPos())
  if im.BeginPopup("Node Context Menu") then
    --im.Begin('asd##contextMenuWrapper')

  if im.BeginPopup("Pin Context Menu") then
    local pin = self.mgr.graph:findPin(ui_flowgraph_editor.PtrToId(self.contextPinId))

  if im.BeginPopup("Link Context Menu") then
    local link = self.mgr.graph.links[ui_flowgraph_editor.PtrToId(self.contextLinkId)]
  im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(9, 9))
  if im.BeginPopup("BackgroundContextMenu") then
    openedContextMenu = true
@/lua/common/extensions/ui/flowgraph/editor.lua
  im.PopItemWidth()
  if im.BeginPopup(source.id .. "-" .. name) then
    im.PushItemWidth(100)
      -- rename variable popup
      if im.BeginPopup(source.id .. "-rename-" .. name) then
        im.PushItemWidth(150)
  if self.openPopup then im.OpenPopup("vehicleSearchUtil"..self._imguiId) end
  if im.BeginPopup("vehicleSearchUtil"..self._imguiId) then
    im.BeginChild1("vehicleSearchUtilChild"..self._imguiId, im.ImVec2(350,250))
@/lua/ge/extensions/editor/missionEditor/genericTypeData.lua
function C:variablesHelperPopup()
  if im.BeginPopup("missionFGVariables") then
    local scale = editor.getPreference("ui.general.scale")
@/lua/ge/extensions/editor/flowgraph/overview.lua
function C:drawPopups()
  if im.BeginPopup("nodeOverviewPopup") then
    if self.contextMenuNode and im.MenuItem1('Focus##' .. tostring("self_id")) then
@/lua/ge/extensions/gameplay/missions/missionTypes/editorHelper.lua
  end
  if im.BeginPopup("Editor Helper File Context Menu " .. e._id) then
    if im.Selectable1("Show in Explorer...") then
@/lua/ge/extensions/editor/rallyEditor/notebookInfo.lua
  if im.BeginPopupModal("Delete Codriver", nil, im.WindowFlags_AlwaysAutoResize) then
  -- if im.BeginPopup("Delete Codriver") then
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if string_str_id == nil then log("E", "", "Parameter 'string_str_id' of function 'BeginPopup' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.BeginPopup(string_str_id, ImGuiWindowFlags_flags)
end
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
        end
        if im.BeginPopup('VDV_VIEW_POPUP') then
          renderPopup(view)
@/lua/ge/extensions/editor/assetDeduplicator.lua

    if im.BeginPopup(comparePopupId) then
      drawCompareContent(state.previewLeft, state.previewRight)
            im.Text("Successfully linked files")
            if im.BeginPopup('linkingFinished') then
            im.Text("Successfully all linked files: ")
            im.Text("Failed to remove files before linking.\nMake sure your mod is unpacked.")
            if im.BeginPopup('linkingFinished') then
            im.Text("Failed to link files: ")
@/lua/ge/extensions/editor/flowgraph/variables.lua
    --self:drawSortedGraphs(self.mgr.macros)
    if im.BeginPopup("addVariablePopup") then
      self.addVariableSettings.name = self.addVariableSettings.name or im.ArrayChar(128)
@/lua/ge/extensions/editor/forestEditor.lua
  local popupId = string.format("%d##textureSet_Preview_Popup", id)
  if im.BeginPopup(popupId) then
    if not pM_textureSets.data[selectedTextureSetIdStr] or not pM_textureSets.data[selectedTextureSetIdStr][id] or pM_textureSets.data[selectedTextureSetIdStr][id] == "" then
  end
  if im.BeginPopup("##" .. fieldName .. "DataBlockPopup") then
    im.PushID1("##" .. fieldName .. "DataBlockNameFilter")
@/lua/ge/extensions/editor/util/editorElementHelper.lua
  end
  if im.BeginPopup("Editor Helper File Context Menu " .. e._id) then
    for _, layer in ipairs(container.layers or {{dir = container.missionFolder}}) do
@/lua/ge/extensions/editor/dynamicDecals/widgets.lua

  if im.BeginPopup(string.format("%s_Point4FColorPopup", widgetId)) then
    im.SetNextItemWidth(256)
  if api.widgetTypes[propType] then
    if im.BeginPopup(string.format("WidgetTypePopup_%s", widgetId)) then
      for name, id in pairs(api.widgetTypes[propType]) do
@/lua/ge/extensions/editor/util/transformUtil.lua
  end
  if im.BeginPopup("Tranform Util Context Menu " .. self.objectName) then
    changed = self:contextMenu() or changed
    end
    if im.BeginPopup("Tranform Util Context Menu " .. self.objectName) then
      contextChanged = self:contextMenu()
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
  local layerMaskContextMenuPopupName = string.format("CopyLayerMask_%s_%d_%d", layer.uid, layerLevel, k)
  if im.BeginPopup(layerMaskContextMenuPopupName) then
    if not layer.mask then im.BeginDisabled() end

  if im.BeginPopup("ClearLayerStackPopup") then
    im.TextColored(editor.color.warning.Value , "Do you really want to clear the baked textures? This will also wipe the layer stack!")
@/lua/ge/extensions/editor/materialEditor.lua

    if im.BeginPopup(popupId(suf)) then
      im.TextUnformatted(titleText[suf])
  local popupId = "MU_Popup_" .. tostring(res) .. tostring(count)
  if im.BeginPopup(popupId) then
    local _, base = path.splitWithoutExt(res or '')
local function materialInfo()
  if im.BeginPopup("EDITMATERIALNAME") then
    im.TextUnformatted("Edit material name")
local function menuGui()
  if im.BeginPopup("DeleteCurrentMaterial") then
    im.TextUnformatted("Are you sure you want to delete the current material?")
  if pickMapToFromObjectPopupHeight then im.SetNextWindowSize(im.ImVec2(0, pickMapToFromObjectPopupHeight)) end
  if im.BeginPopup("PickMapToFromObjectPopup") then
    local maxWidth = im.GetContentRegionAvailWidth()
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTree.lua

  if im.BeginPopup('part_tree_ctx_menu') then
    if im.MenuItem1("Open location in file explorer") then
@/lua/ge/extensions/editor/assetBrowser.lua
  if dir then
    if im.BeginPopup("Popup_" .. dir.path) then
      for _, entry in ipairs(var.directoryContextMenuEntries) do
local function assetContextMenu(asset)
  if im.BeginPopup("Popup_" .. asset.path .. "_" .. asset.fullFileName) then
    for _, entry in ipairs(var.assetContextMenuEntries) do
local function materialContextMenu(material)
  if im.BeginPopup("ContextMenu_Material_" .. tostring(material.id)) then
    for _, entry in ipairs(var.assetContextMenuEntries) do
local function textureSetContextMenu(set)
  if im.BeginPopup("Popup_" .. set.dir.path .. "_" .. set.name) then
    for _, entry in ipairs(var.textureSetContextMenuEntries) do
local function savedFilterItem(index, item, contextMenu, defaultFilter)
  if im.BeginPopup("Popup_Filter_" .. item.label) then
    -- TODO: add button to rename item
local function newFolderPopup()
  if im.BeginPopup("new_folder_popup") then
    local clearVars = function()
      im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(2,2))
      if im.BeginPopup("childrenDirectoryPopup_" .. dir.path) then
        for _, dir in ipairs(dir.dirs) do
  im.SetNextWindowSize(im.ImVec2(0, 0), im.Cond_Always)
  if im.BeginPopup("SaveFilterDropdown") then
    im.PushItemWidth(var.saveFilterNameInputWidth)
  im.SetNextWindowSize(im.ImVec2(100, im.GetContentRegionAvail().y - var.menuBarHeight - var.style.WindowPadding.y - var.inputFieldSize))
  if im.BeginPopup("FilterByTypeDropdown") then
    local curX = im.GetCursorPosX()
  im.SetNextWindowSize(im.ImVec2(0, 0), im.Cond_Always)
  if im.BeginPopup("FilterByTypeDropdown_rmb") then
    if im.Selectable1("Enable all##FileTypeDropdownItemRMB", nil, im.SelectableFlags_DontClosePopups) then
@/lua/ge/extensions/editor/flowgraph/properties.lua

    if im.BeginPopup("FGIconSelector") then
      im.BeginChild1("fgSelIcon", im.ImVec2(250*im.uiscale[0],400*im.uiscale[0]))
          end
          if im.BeginPopup("fgmultiline") then
            if im.Button("Save") then
@/lua/ge/extensions/editor/mainToolbar.lua

  if im.BeginPopup("TODCamSlidersPopup") then
      if im.BeginTable('TODCamSlidersTable', 2, nil) then

  if im.BeginPopup("EditorIconsAndCameraPopup") then
      if im.BeginTable('EditorIconsAndCameraTable', 2, nil) then
    im.SetNextWindowSize(im.ImVec2(0, 0), im.Cond_Always)
    if im.BeginPopup("EditModeSetsPopup", im.WindowFlags_NoCollapse) then
      im.Spacing()
    im.SetNextWindowSize(im.ImVec2(900, 500), im.Cond_FirstUseEver)
    if im.BeginPopup("CustomizeToolbarLayout", 0) then
      -- Left panel (Edit Mode Sets)

      if im.BeginPopup("EditModePopup") then
        local index = 0
@/lua/ge/extensions/editor/sceneTree.lua

  if imgui.BeginPopup("##sceneItemPopupMenu"..node.id) then
    if not nodeIsInTheSelection(instance, node) then

  if imgui.BeginPopup("##sceneItemPopupMenu"..node.id) then
    if not nodeIsInTheSelection(instance, node) then
  -- context menu for this node
  if imgui.BeginPopup("##sceneItemPopupMenu"..node.id) then
    if not nodeIsInTheSelection(instance, node) then
@/lua/ge/extensions/editor/sceneView.lua
      im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(6, 6))
      if im.BeginPopup('viewcontrol' .. tostring(sceneViewName)) then
        local changedOrtho = false
@/lua/ge/extensions/editor/scriptAIManager.lua

      if im.BeginPopup('controlsPopup##'..vehId) then
        im.MenuItem1(vehIdtxt, nil, false, false)
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/linkedSet.lua
local function inspectLayerGui(layer, guiId)
  if im.BeginPopup(string.format("%s_%s_AddPropertyPopup", layer.uid, guiId)) then
    for cat, properties in pairs(api.properties) do