Definition
-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:878
function M.BeginPopupModal(string_name, bool_p_open, ImGuiWindowFlags_flags)
-- bool_p_open is optional and can be nil
if ImGuiWindowFlags_flags == nil then ImGuiWindowFlags_flags = 0 end
if string_name == nil then log("E", "", "Parameter 'string_name' of function 'BeginPopupModal' cannot be nil, as the c type is 'const char *'") ; return end
return imgui.BeginPopupModal(string_name, bool_p_open, ImGuiWindowFlags_flags)
end
Callers
@/lua/ge/extensions/core/ropeVisualTest.lua
-- Fallback file dialogs for when editor is not active
if im.BeginPopupModal("Save Parameters") then
im.Text("Enter file path to save parameters:")
if im.BeginPopupModal("Load Parameters") then
im.Text("Enter file path to load parameters:")
@/lua/ge/extensions/editor/preferences.lua
if imgui.BeginPopupModal("Reset Category Preferences To Defaults", nil, imgui.WindowFlags_AlwaysAutoResize) then
imgui.Text("Do you really want to reset this category preferences to default values ?\n"..
-- Reset-all confirmation
if imgui.BeginPopupModal("Reset All To Defaults", nil, imgui.WindowFlags_AlwaysAutoResize) then
imgui.Text("Do you really want to reset all preferences to default values ?\n"..
@/lua/ge/extensions/editor/visualization.lua
-- Reset confirmation
if im.BeginPopupModal("Reset To Defaults", nil, im.WindowFlags_AlwaysAutoResize) then
im.Text("Do you really want to reset all preferences in this tab to default values ?\n"..
@/lua/ge/extensions/editor/resourceChecker.lua
if im.BeginPopupModal(name, nil, im.WindowFlags_AlwaysAutoResize+im.WindowFlags_NoResize+im.WindowFlags_NoMove+im.WindowFlags_NoCollapse+im.WindowFlags_NoDocking+im.WindowFlags_NoTitleBar) then
isDoubleClicked = {}
if im.BeginPopupModal(name, nil, im.WindowFlags_AlwaysAutoResize+im.WindowFlags_NoResize+im.WindowFlags_NoMove+im.WindowFlags_NoCollapse+im.WindowFlags_NoDocking) then
im.Text("This action will remove all files that were listed ("..count..").\nThis cannot be undone.\nMake sure to backup your work.\nThis feature only works for unpacked content.")
@/lua/ge/extensions/editor/mapSensorEditor.lua
if im.BeginPopupModal("Python Code", nil, im.WindowFlags_AlwaysAutoResize) then
im.Text("You can use this code to recreate the configuration in BeamNGpy:")
@/lua/ge/extensions/editor/trafficManager.lua
if im.BeginPopupModal("Confirm##trafficManager", nil, im.WindowFlags_AlwaysAutoResize) then
im.TextUnformatted(confirmData.txt)
@/lua/ge/extensions/editor/inspector.lua
if typeIndex ~= groundCoverUVTypeIndex then return end
if imgui.BeginPopupModal(groundCoverUVWindowName, nil) then
local availableSize = imgui.GetContentRegionAvail()
@/lua/ge/extensions/editor/camPathEditor.lua
-- Speed settings popup
if im.BeginPopupModal('Speed Settings', nil, im.WindowFlags_AlwaysAutoResize) then
im.Text('Target Speed (units per second):')
end
if im.BeginPopupModal('Load new replay') then
local window_width = im.GetWindowWidth()
@/lua/ge/extensions/editor/rallyEditor.lua
-- if im.BeginPopupModal("Generate All Freeform##genAllFreeform") then
if im.BeginPopupModal("Generate All Freeform##genAllFreeform", nil, im.WindowFlags_AlwaysAutoResize) then
-- if im.BeginPopupModal("Generate All Freeform##genAllFreeform") then
if im.BeginPopupModal("Generate All Freeform##genAllFreeform", nil, im.WindowFlags_AlwaysAutoResize) then
im.Text("Generate all freeform notes from structured notes?")
@/lua/ge/extensions/editor/autoSave.lua
if imgui.BeginPopupModal("AutoSave Restore", nil, imgui.WindowFlags_AlwaysAutoResize) then
editor.setPreference("general.internal.cleanExit", true)
local closeWindow = false
if imgui.BeginPopupModal("AutoSave Restore Confirm", nil, imgui.WindowFlags_AlwaysAutoResize) then
imgui.Text("This operation will overwrite the level's scene tree: " .. editor.getLevelPath() .. "main/" ..
@/lua/ge/extensions/editor/biomeTool.lua
imgui.SetNextWindowSize(imgui.ImVec2(300, 100), imgui.Cond_FirstUseEver)
if imgui.BeginPopupModal("No Forest Item Selected") then
imgui.TextUnformatted("No Central Forest Item Selected!")
imgui.SetNextWindowSize(imgui.ImVec2(300, 100), imgui.Cond_FirstUseEver)
if imgui.BeginPopupModal("Biome Work Progress") then
if errCode == 0 then
imgui.SetNextWindowSize(imgui.ImVec2(300, 100), imgui.Cond_FirstUseEver)
if imgui.BeginPopupModal("Biome Edge Placement Progress") then
if errCode == 0 then
imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowPos().x + imgui.GetWindowSize().x * 0.5, imgui.GetWindowPos().y + imgui.GetWindowSize().y * 0.5))
if imgui.BeginPopupModal("No Brush Selected!") then
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowPos().x + imgui.GetWindowSize().x * 0.5, imgui.GetWindowPos().y + imgui.GetWindowSize().y * 0.5))
if imgui.BeginPopupModal("No Lasso Areas!") then
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
imgui.SetNextWindowSize(imgui.ImVec2(300, 500), imgui.Cond_FirstUseEver)
if imgui.BeginPopupModal("Select Forest Brush (Central)") then
imgui.BeginChild1("CentralBrushesCentralPopup"..layerType..layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 50), imgui.WindowFlags_ChildWindow)
imgui.SetNextWindowSize(imgui.ImVec2(300, 500), imgui.Cond_FirstUseEver)
if imgui.BeginPopupModal("Select Forest Brush (Falloff)") then
imgui.BeginChild1("FalloffBrushesCentralPopup"..layerType..layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 50), imgui.WindowFlags_ChildWindow)
if var.edgePlacementBoolPtr[0] then
if imgui.BeginPopupModal("No Brush Selected!##Edge") then
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
imgui.SetNextWindowSize(imgui.ImVec2(300, 500), imgui.Cond_FirstUseEver)
if imgui.BeginPopupModal("Select Forest Brush (Edge)") then
imgui.BeginChild1("EdgeBrushesPopup"..layerType..layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 50), imgui.WindowFlags_ChildWindow)
imgui.SetNextWindowSize(imgui.ImVec2(300, 100), imgui.Cond_FirstUseEver)
if imgui.BeginPopupModal("Delete Lasso Area##"..area.lassoAreaID) then
imgui.TextUnformatted("Are you sure you want to delete \"".."Area "..area.lassoAreaID.."\"?")
imgui.SetNextWindowSize(imgui.ImVec2(200, 100), imgui.Cond_FirstUseEver)
if imgui.BeginPopupModal("Delete Layer") then
imgui.TextUnformatted("Are you sure you want to delete \""..layer.layerName.."\"?")
imgui.SetNextWindowSize(imgui.ImVec2(300, 100), imgui.Cond_FirstUseEver)
if imgui.BeginPopupModal("Biome Lasso Work Progress") then
if errCode == 0 then
@/lua/ge/extensions/editor/rallyEditor/pacenotes/structuredForm.lua
im.tooltip(tooltipText)
if im.BeginPopupModal("Delete Audio Files", nil, im.WindowFlags_AlwaysAutoResize) then
im.Text("Delete this pacenote's audio files?")
@/lua/ge/extensions/gameplay/rally/tools/devTools.lua
-- Generate Pacenotes confirmation dialog
if im.BeginPopupModal("Generate Pacenotes##devToolsGenPacenotes", nil, im.WindowFlags_AlwaysAutoResize) then
im.Text("Generate pacenotes from detected corners? (experimental)")
@/lua/ge/extensions/editor/sensorConfigurationEditor.lua
if im.BeginPopupModal("Python Code", nil, im.WindowFlags_AlwaysAutoResize) then
im.Text("You can use this code to recreate the configuration in BeamNGpy:")
@/lua/ge/extensions/editor/rallyEditor/pacenotes/pacenoteForm.lua
if im.BeginPopupModal("Delete Pacenote?", nil, im.WindowFlags_AlwaysAutoResize) then
im.Text("Are you sure you want to delete this pacenote?")
@/lua/ge/extensions/editor/trafficSignalsEditor.lua
if im.BeginPopupModal("Confirm##trafficSignals", nil, im.WindowFlags_AlwaysAutoResize) then
im.TextUnformatted("Are you sure you want to clear signals data?")
@/lua/ge/extensions/editor/rallyEditor/notebookInfo.lua
function C:deleteCodriverPopup(codriver)
if im.BeginPopupModal("Delete Codriver", nil, im.WindowFlags_AlwaysAutoResize) then
-- if im.BeginPopup("Delete Codriver") then
@/lua/ge/extensions/editor/scriptAIManager.lua
if im.BeginPopupModal('Save Recording##'..vehId, nil, im.WindowFlags_AlwaysAutoResize) then
im.InputText("Filename", tmpSaveFilename)
if im.BeginPopupModal('Load Recording##'..vehId, nil, im.WindowFlags_AlwaysAutoResize) then
local files = FS:findFiles(trackFilePath, '*' .. trackFileExt, -1, true, false)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
if string_name == nil then log("E", "", "Parameter 'string_name' of function 'BeginPopupModal' cannot be nil, as the c type is 'const char *'") ; return end
return imgui.BeginPopupModal(string_name, bool_p_open, ImGuiWindowFlags_flags)
end
@/lua/ge/extensions/editor/api/gui.lua
else
ret = imgui.BeginPopupModal(title, visPtr, flags)
table.insert(modalWindowVisibleStack, ret)
@/lua/ge/extensions/editor/rallyEditor/pacenotes.lua
im.tooltip("Delete all pacenotes from this notebook.")
if im.BeginPopupModal("Delete All", nil, im.WindowFlags_AlwaysAutoResize) then
im.Text("Delete all pacenotes?")
@/lua/ge/extensions/editor/assetDeduplicator.lua
if im.BeginPopupModal(name, nil,im.WindowFlags_NoCollapse+im.WindowFlags_NoDocking) then
@/lua/ge/extensions/editor/flowgraphEditor.lua
if im.BeginPopupModal("Unsaved macros") then
im.Text('There are unsaved macros inside this macro. Please save those first before saving this one.')
@/lua/ge/extensions/editor/fileDialog.lua
im.SetNextWindowPos(im.ImVec2(buttonPos.x, buttonPos.y + buttonSize.y), im.Cond_FirstUseEver)
if im.BeginPopupModal("Error##FileDialog_ErrorPopup", nil, im.WindowFlags_AlwaysAutoResize) then
im.Text("Please provide a valid name for the new folder!")
-- TODO For now, put the overwrite dialog into the file dialog window, because we cant always force the popup window to be on top
--if im.BeginPopupModal("overwriting_popup", nil, im.WindowFlags_AlwaysAutoResize) then
if overwriteDialog then