Begin
Definition
-- @/lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua:123
M.Begin = function(id, size, readOnly)
if size == nil then size = im.ImVec2(0, 0) end
if readOnly == nil then readOnly = false end
local result = fge.Begin(id, size, readOnly)
if im then
local io = im.GetIO(io)
im.SetWindowFontScale(1/io.FontGlobalScale)
M.oldImguiScale = im.uiscale[0]
im.uiscale[0] = 1
end
return result
end
Callers
@/lua/ge/extensions/core/metrics.lua
-- draw panel window
if im.Begin("##metricsWindow", nil, im.WindowFlags_AlwaysAutoResize+im.WindowFlags_NoResize+im.WindowFlags_NoMove+im.WindowFlags_NoCollapse+im.WindowFlags_NoDocking+im.WindowFlags_NoTitleBar) then
local lineTexts = imguiVisible or {}
@/lua/ge/extensions/editor/flowgraph/properties.lua
if self:Begin('Properties') then
if not self.mgr.allowEditing then im.BeginDisabled() end
if not self.mgr.allowEditing then im.BeginDisabled() end
-- if im.Begin('Properties', self.windowOpen) then
for n,_ in pairs(self.mgr.selectedNodes) do
@/lua/ge/extensions/editor/driftDataEditor.lua
if rawData[0] then
if im.Begin("Raw drift spot's data") then
im.Text(dumps(currDriftSpots[selectedDriftSpotId]))
@/lua/ge/extensions/editor/flowgraph/variables.lua
if not editor.isWindowVisible(self.windowName) then return end
if self:Begin("Variables") then
local totalWidth = im.GetContentRegionAvailWidth()
@/lua/ge/extensions/render/viewDemo.lua
-- display the texture in imgui
im.Begin("Render view test", windowOpen)
local texObj = imUtils.texObj('#' .. renderViewName)
@/lua/ge/extensions/core/ropeVisualTest.lua
im.SetNextWindowSize(im.ImVec2(400, 600), im.Cond_FirstUseEver)
if im.Begin("Rope Visual Sandbox", nil, im.WindowFlags_MenuBar) then
@/lua/ge/extensions/util/screenshotCreator.lua
if im.Begin("Vehicle Screenshot Creator (WIP)", windowOpen) then
local partConfig = getPlayerVehicle(0).partConfig
@/lua/ge/extensions/gameplay/missions/missionManager.lua
local im = ui_imgui
im.Begin("Mission Manager Debug")
im.Text("Steps")
@/lua/ge/extensions/gameplay/drift/display.lua
if gameplay_drift_general.getExtensionDebug("gameplay_drift_display") then
if im.Begin("Drift display") then
if im.Button("Toggle drift ui layout") then
--[[
im.Begin("Drift display")
im.Text("Drift display")
@/lua/ge/extensions/gameplay/drift/scoreboard.lua
if gameplay_drift_general.getExtensionDebug("gameplay_drift_scoreboard") then
if im.Begin("Drift scoreboard") then
if im.Button("Reset scoreboard") then
@/lua/ge/extensions/core/groundMarkerArrows.lua
-- Draw ImGui debug window
if im.Begin("Arrow Debug") then
im.Text("Arrow Pool Status")
@/lua/ge/extensions/editor/rallyEditor.lua
end
im.Begin("Rally Dev Tools", devToolsWindowOpen)
devTools:draw()
end
im.Begin("Rally Toolbox", rallyToolboxWindowOpen)
-- rallyToolbox:refresh()
@/lua/ge/extensions/gameplay/crawl/debug.lua
local shouldKeepOpen = im.Begin("Crawl Debug Window", im.BoolPtr(debugWindowOpen))
if not shouldKeepOpen then
@/lua/ge/extensions/ui/console.lua
end
if( im.Begin(winTitle, windowOpen, im.WindowFlags_MenuBar + (fullscreen and (im.WindowFlags_NoResize+im.WindowFlags_NoMove+im.WindowFlags_NoCollapse+im.WindowFlags_NoDocking+im.WindowFlags_NoTitleBar) or 0) ) ) then
menuToolbar(uiScale)
-- im.SetNextWindowSize(initialWindowSize, im.Cond_FirstUseEver)
-- if( im.Begin("test", windowOpen, im.WindowFlags_MenuBar ) ) then
-- menuToolbar(uiScale)
@/lua/ge/extensions/render/openxr.lua
im.SetNextWindowSize(debugWindowSize --[[, im.Cond_FirstUseEver--]] )
im.Begin("OpenXR debug tools##openXRwindow", debugWindowOpen)
if debugWindowOpen[0] == false then
@/lua/ge/extensions/gameplay/drift/stuntZones.lua
if gameplay_drift_general.getExtensionDebug("gameplay_drift_stuntZones") then
if im.Begin("Drift stunt zones") then
im.Separator()
@/lua/ge/extensions/editor/flowgraph/welcome.lua
self:Begin('Welcome')
self:drawContent()
@/lua/ge/extensions/editor/particleEditor.lua
--TODO: convert to modal popup
if im.Begin("DataBlock Deleted", nil , 0) then
im.Text("The DataBlock has been removed from its file and upon restart will cease to exist" )
--TODO: convert to modal popup
if im.Begin("Save existing emitter?", nil , 0) then
im.Text("Do you want to save changes to " .. currentEmitter:getName() .. "?")
--TODO: convert to modal popup
if im.Begin("Save existing particle?", nil , 0) then
im.Text("Do you want to save changes to " .. currentParticle:getName() .. "?")
@/lua/ge/extensions/editor/flowgraph/nodePreview.lua
im.BeginChild1("##nodepreview", self.previewSize, false)
ui_flowgraph_editor.Begin('preview', im.ImVec2(0, 0), true)
@/lua/ge/extensions/editor/flowgraph/execution.lua
if self.alone then
self:Begin('Task Manager'..'##'..'alone')
else
else
self:Begin('Task Manager')
end
@/lua/ge/extensions/editor/vehicleEditor/veToolbar.lua
--TODO: replace with begin/endWindow
im.Begin("Toolbar2", nil, toolbarFlags)
drawAlwaysVisibleToolbars()
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/elemental/imBegin.lua
end
im.Begin((self.pinIn.title.value or "Title") ..'##'.. tostring(self.id), bPtr, flags)
self.pinOut.wasClosed.value = not bPtr[0]
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamVariablesChecker.lua
if im.Begin(wndName, windowOpen) then
if im.Button("Start Analysis") then
@/lua/ge/extensions/editor/dataBlockEditor.lua
im.SetNextWindowPos(im.ImVec2(windowPos.x + 50, windowPos.y + 50), im.Cond_Appearing)
if im.Begin("DataBlock Deleted", nil , 0) then
im.Text("The DataBlock has been removed from its file and upon restart will cease to exist" )
@/lua/ge/extensions/career/modules/fuel.lua
imgui.SetNextWindowSize(imgui.ImVec2(200, 200), imgui.Cond_FirstUseEver)
imgui.Begin("Fueling")
@/lua/ge/extensions/career/modules/delivery/vehicleTasks.lua
local function drawDebugMenu()
if im.Begin("Trailer Tasks Debug") then
im.Text(dumps(vehicleTasks))
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veLightsDebug.lua
if not vEditor or not vEditor.vehicle then return end
if im.Begin(wndName, windowOpen) then
im.Checkbox("Spotlight Debug (SL)", spotLightDebugEnabled)
@/lua/ge/extensions/editor/raceEditor.lua
if not raceTestWindowOpen[0] then return end
im.Begin("Race Test", raceTestWindowOpen)
testingWindow:draw(dtSim)
@/lua/ge/extensions/freeroam/bigMapMode.lua
if debugWindow then
if imgui.Begin("Big Map") then
local maxFovPtr = imgui.FloatPtr(camMode.fovMax)
@/lua/ge/extensions/editor/trafficSignalsEditor.lua
im.SetNextWindowSize(im.ImVec2(500, 600), im.Cond_FirstUseEver)
if im.Begin("Controller Definitions##ctrlDefinitions", windowFlags.instanceGroups) then
if not signalCtrlDefinitions then
@/lua/ge/extensions/editor/crawlEditor/presets.lua
local showBoundaryDialogPtr = im.BoolPtr(self:getShowSaveBoundaryDialog())
if im.Begin("Save Boundary Component", showBoundaryDialogPtr, nil) then
im.Text("Enter a name for the boundary component:")
local showPathnodeDialogPtr = im.BoolPtr(self:getShowSavePathnodeDialog())
if im.Begin("Save Pathnode Component", showPathnodeDialogPtr, nil) then
im.Text("Enter a name for the pathnode component:")
local showTrailDialogPtr = im.BoolPtr(self:getShowSaveTrailDialog())
if im.Begin("Save Trail Component", showTrailDialogPtr, nil) then
im.Text("Enter a name for the trail component:")
if self:getShowPresetManager() then
if im.Begin("Component Manager", self:getShowPresetManagerPtr(), nil, im.ImVec2(600, 400)) then
im.Text("Trail Components")
@/lua/common/extensions/ui/imguiUtils.lua
function M.CreateKeyValApp( window, section, tbl, callback )
if imgui.Begin(window, imgui.BoolPtr(true), 0) then
if imgui.TreeNode1(section) then
@/lua/ge/extensions/core/input/vibrationDebug.lua
local function onUpdate()
imgui.Begin("Vibration Debug")
local veh = getPlayerVehicle(0)
@/lua/ge/extensions/editor/crawlEditor/missionPortTool.lua
if showDialog[0] then
if im.Begin("Mission Port Tool", showDialog) then
im.Text("Convert Old Crawl Mission to New Crawl System")
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/imSimpleBox.lua
function C:work()
im.Begin((self.pinIn.title.value or "Title") ..'##'.. tostring(self.id), im.BoolPtr(true))
im.Text((self.pinIn.text.value or "Text"))
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamBeautifier.lua
if im.Begin(wndName, windowOpen) then
im.PushFont3("cairo_semibold_large")
@/lua/ge/extensions/editor/flowgraph/examples.lua
if not editor.isWindowVisible(self.windowName) then return end
self:Begin("Examples")
@/lua/ge/extensions/gameplay/drift/quickMessages.lua
if isBeingDebugged then
if im.Begin("Quick messages") then
im.Text("Available quick messages : ")
@/lua/ge/extensions/editor/missionPlaybook/missionTreeViewer.lua
end
ui_flowgraph_editor.Begin('asdfsdd', im.ImVec2(0, 0), false)
--ui_flowgraph_editor.NavigateToContent(0.01)
@/lua/ge/extensions/gameplay/drift/bounds.lua
if isBeingDebugged then
if im.Begin("Drift bounds") then
im.Text("Is out of bounds : " ..tostring(isOutOfBounds))
@/lua/ge/extensions/editor/api/gui.lua
local window_flags = bit.bor(imgui.WindowFlags_MenuBar, imgui.WindowFlags_NoDocking, imgui.WindowFlags_NoTitleBar, imgui.WindowFlags_NoCollapse, imgui.WindowFlags_NoResize, imgui.WindowFlags_NoMove, imgui.WindowFlags_NoBringToFrontOnFocus, imgui.WindowFlags_NoNavFocus, imgui.WindowFlags_NoBackground, imgui.WindowFlags_NoFocusOnAppearing)
imgui.Begin("MainDockSpace", dockOpen, window_flags);
imgui.PopStyleVar(3)
if not windowsState[windowName].modal then
ret = imgui.Begin(title, visPtr, flags)
windowShouldCallEndStack[#windowShouldCallEndStack] = true
@/lua/ge/extensions/gameplay/drift/stallingSystem.lua
if gameplay_drift_general.getExtensionDebug("gameplay_drift_stallingSystem") then
if im.Begin("Drift stalling system") then
im.Text(string.format("Current stalling value : %0.2f", stallingValue))
@/lua/common/extensions/ui/imgui_custom_luaintf.lua
function M.Begin(string_name, bool_p_open, ImGuiWindowFlags_flags)
-- bool_p_open is optional and can be nil
if string_name == nil then log("E", "", "Parameter 'string_name' of function 'Begin' cannot be nil, as the c type is 'const char *'") ; return end
return imgui.Begin(string_name, bool_p_open, ImGuiWindowFlags_flags)
end
@/lua/ge/extensions/editor/prefabInstanceEditor.lua
-- imgui.Begin("PrefabInstanceHeaderMenu", nil, imgui.WindowFlags_NoCollapse + imgui.WindowFlags_AlwaysAutoResize + imgui.WindowFlags_NoResize + imgui.WindowFlags_NoTitleBar)
-- imgui.End()
@/lua/ge/extensions/gameplay/rally/loop/speedingDetector.lua
function C:drawDebug()
im.Begin("Speeding Detector Debug")
@/lua/ge/extensions/ui/apps/genericMissionData.lua
im.Begin("Generic Mission Data Debug")
@/lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua
if readOnly == nil then readOnly = false end
local result = fge.Begin(id, size, readOnly)
if im then
@/lua/ge/suspensionFrequencyTester.lua
imgui.SetNextWindowSize(imgui.ImVec2(500, 600), imgui.Cond_FirstUseEver)
if imgui.Begin("Suspension Frequency Tester", windowOpen) then
local availWidth = imgui.GetContentRegionAvailWidth()
@/lua/ge/extensions/core/vehicles.lua
-- if im.Begin("Vehicle Collections Debug") then
-- for mainVehId, collection in pairs(M.vehCollections) do
@/lua/ge/extensions/editor/fileDialog.lua
im.SetNextWindowSize(smartSearchWindowSize)
im.Begin(smartSearchItemsWindowName, editor.getWindowVisibleBoolPtr(smartSearchItemsWindowName), im.WindowFlags_NoTitleBar + im.WindowFlags_NoResize + im.WindowFlags_NoMove + im.WindowFlags_NoFocusOnAppearing)
for _, file in ipairs(fileCache) do
--TODO: convert to modal popup
if im.Begin(fileDialogTitle, nil, im.WindowFlags_MenuBar) then
-- Menu Bar
--TODO: convert to modal popup
if im.Begin(fileDialogTitle, editor.getWindowVisibleBoolPtr(toolWindowName), im.WindowFlags_NoDocking + im.WindowFlags_NoCollapse + im.WindowFlags_UnsavedDocument) then
im.TextUnformatted(overwriteDialogText or "Are you sure you want to overwrite this file")
--TODO: convert to modal popup
im.Begin("recentDirs", editor.getWindowVisibleBoolPtr(recentDirsWindowName), im.WindowFlags_NoTitleBar + im.WindowFlags_NoResize + im.WindowFlags_NoMove + im.WindowFlags_NoScrollbar)
for _, dir in ipairs(recentDirs) do
@/lua/ge/extensions/gameplay/rallyLoop.lua
end
im.Begin("Loop Toolbox", showLoopToolbox)
loopToolbox:draw(rallyLoopManager)
@/lua/ge/extensions/editor/flowgraph/projectSettings.lua
if not editor.isWindowVisible(self.windowName) then return end
self:Begin(self.windowDescription)
im.Columns(2)
@/lua/ge/extensions/editor/flowgraph/basewindow.lua
function C:Begin(name, flags)
return editor.beginWindow(self.windowName, name, flags)
@/lua/ge/extensions/editor/flowgraphEditor.lua
local opn = im.BoolPtr(true)
if im.Begin("Flowgraph Editor##NoProject", opn, im.flags(im.WindowFlags_MenuBar)) then
if im.BeginMenuBar() then
main:Begin('Flowgraph Editor', im.flags(im.WindowFlags_MenuBar, im.WindowFlags_NoScrollbar, im.WindowFlags_NoCollapse))
main:draw()
im.SetNextWindowPos(im.ImVec2(100,100))
im.Begin("FG Monitor")
if editor.uiIconImageButton(editor.icons.fullscreen, im.ImVec2(20, 20)) then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamTableVis.lua
if im.Begin(wndName, windowOpen) then
if im.Button("Open JBeam File...") then
@/lua/ge/extensions/flowgraph/builder.lua
function C:Begin(nodeID)
--print('------------------- ' .. tostring(nodeID))
@/lua/ge/extensions/c2/panelPlugins/tileManager.lua
if debugState.showWindow then
if im.Begin("Tile Manager Debug", p_showWindow) then
if im.Button("Rebuild Index") then buildTileIndex(debugState.tileSize) end
@/lua/ge/extensions/util/maptiles.lua
if im.Begin("Map Tile Utility", windowOpen) then
if im.Checkbox("Show Debug Panel", showDebugPanel) then
if showDebugPanel[0] then
if im.Begin("Debug Panel", showDebugPanel) then
if im.Checkbox("Show 3D world", show3DWorld) then
@/lua/ge/extensions/gameplay/drift/drift.lua
if isBeingDebugged then
if im.Begin("Drift detection") then
im.Text("Is drifting : " .. ((isDrifting and "Yes") or "No"))
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veAeroDebug.lua
local wind = vec3(0,0,0)
if im.Begin(wndName, windowOpen) then
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
end
function M.Begin(string_name, bool_p_open, ImGuiWindowFlags_flags)
-- bool_p_open is optional and can be nil
if string_name == nil then log("E", "", "Parameter 'string_name' of function 'Begin' cannot be nil, as the c type is 'const char *'") ; return end
return imgui.Begin(string_name, bool_p_open, ImGuiWindowFlags_flags)
end
if float_items_height == nil then float_items_height = -1 end
ImGuiListClipper_ctx:Begin(int_items_count, float_items_height)
end
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veRawData.lua
if im.Begin(wndName, windowOpen) then
imguiUtils.addRecursiveTreeTable(vEditor.vehData, '', false)
@/lua/ge/extensions/core/vehicleMirrors.lua
if im.Begin("Mirror control", windowOpen) then
if im.Button("<") then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veGeneralData.lua
if not vEditor or not vEditor.vehicle then return end
if im.Begin(wndName, windowOpen) then
vEditor.vehicle:queueLuaCommand([[
@/lua/ge/extensions/editor/flowgraph/history.lua
if not editor.isWindowVisible(self.windowName) then return end
self:Begin('History')
if im.Button("Undo") then
@/lua/ge/extensions/gameplay/util/crashDetection.lua
local function drawImGuiWindow()
if im.Begin("Crash Detection Debug") then
-- Graph setup
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veJBeamPicker.lua
im.SetNextWindowSize(nodeInputTextPopupSize)
if im.Begin(inputSuggestWndName, nil, inputSuggestWndFlags) then
for i = 0, tableSizeC(vEditor.vdata.nodes) - 1 do
im.SetNextWindowSize(beamInputTextPopupSize)
if im.Begin(inputSuggestWndName, nil, inputSuggestWndFlags) then
for i = 0, tableSizeC(vEditor.vdata.beams) - 1 do
if im.Begin(wndName, windowOpen, mainWndFlags) then
renderMenuBar()
@/lua/ge/extensions/ui/gameplayAppContainers.lua
if debug and im then
im.Begin("Gameplay App Containers Debug")
@/lua/ge/extensions/editor/roadTemplateEditor.lua
--TODO: convert to editor.beginWindow/endWindow
im.Begin("Templates", templateDialogOpen, 0)
for i=1, #editor_roadUtils.getMaterials() do
if saveDialog[0] then
im.Begin("Save as...", saveDialog, 0)
im.InputText("Template Name", saveName)
@/lua/ge/extensions/editor/visualization.lua
if im.Begin("Material Debug Legend##overlay", nil, flags) then
_drawLegendForMaterialName(activeType.name)
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
--im.SetNextWindowDockID(self.fgEditor.dockspaces["NE_RightTopPanel_Dockspace"])
-- if im.Begin('Node Library', self.windowOpen) then
if self:Begin('Node Library') then
-- if im.Begin('Node Library', self.windowOpen) then
if self:Begin('Node Library') then
self:drawContent()
@/lua/ge/extensions/editor/flowgraph/events.lua
if not editor.isWindowVisible(self.windowName) then return end
self:Begin('Event Log')
self:drawContent()
@/lua/ge/extensions/ui/bindingsLegend.lua
if not debugMode or not im then return end
if im.Begin("BindingsLegend Debug") then
local var = im.FloatPtr(fadeDelaySeconds)
@/lua/common/extensions/ui/improfiler.lua
function M.onUpdate(dtReal, dtSim, dtRaw)
if im.Begin("LuaJIT Profiler", windowOpen) then
im.TextUnformatted(outStringCache)
@/lua/ge/extensions/editor/inspector.lua
imgui.SetNextWindowPos(menu.pos)
imgui.Begin(groupName.."HeaderMenu", nil, imgui.WindowFlags_NoCollapse + imgui.WindowFlags_AlwaysAutoResize + imgui.WindowFlags_NoResize + imgui.WindowFlags_NoTitleBar)
if groupName == "Transform" then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veCrashTester.lua
if im.Begin(wndName, windowOpen) then
im.PushItemWidth(100)
@/lua/ge/extensions/gameplay/rally.lua
if shouldShowRallyToolbox() then
im.Begin("Rally Toolbox", showRallyToolbox)
rallyToolbox:draw()
@/lua/ge/extensions/util/groundModelDebug.lua
im.Begin("GroundModel Debug Window", windowOpen, im.WindowFlags_MenuBar)
if im.BeginMenuBar() then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veTCSDebug.lua
if not vEditor or not vEditor.vehicle then return end
if im.Begin(wndName, windowOpen) then
vEditor.vehicle:queueLuaCommand([[
@/lua/ge/extensions/editor/api/valueInspector.lua
imgui.SetNextWindowPos(filenameContextMenu.pos)
imgui.Begin("ValueInspectorfilenameContextMenu", nil, imgui.WindowFlags_NoCollapse + imgui.WindowFlags_AlwaysAutoResize + imgui.WindowFlags_NoResize + imgui.WindowFlags_NoTitleBar)
imgui.SetNextWindowPos(copyPasteMenu.pos)
imgui.Begin("ValueInspectorCopyPasteMenu", nil, imgui.WindowFlags_NoCollapse + imgui.WindowFlags_AlwaysAutoResize + imgui.WindowFlags_NoResize + imgui.WindowFlags_NoTitleBar)
if imgui.Button("Copy Value") then
if imgui.Begin(fieldNameId .. "SimSetPopup", nil, imgui.WindowFlags_NoTitleBar + imgui.WindowFlags_NoCollapse + imgui.WindowFlags_NoDocking) then
imgui.PushID1(fieldNameId .. "SimSetNameFilter")
local windowOpenPtr = imgui.BoolPtr(true)
if imgui.Begin(fieldNameId .. "MaterialSetPopup", windowOpenPtr, imgui.flags(imgui.WindowFlags_NoCollapse, imgui.WindowFlags_NoDocking, imgui.WindowFlags_NoTitleBar)) then
loadedTextures = 0
@/lua/ge/extensions/ui/apps/pointsBar.lua
im.Begin("Points Bar Debug")
@/lua/ge/extensions/gameplay/drift/destination.lua
if isBeingDebugged then
if im.Begin("Destination") then
if not pathData then
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
im.SetNextWindowSize(im.ImVec2(216, 76))
im.Begin("StopDrivingWindow", stopDrivingWindowOpen, im.flags(im.WindowFlags_NoResize, im.WindowFlags_NoScrollbar))
if im.Button("Stop Driving", im.ImVec2(200,60)) then
-- im.SetNextWindowPos(im.ImVec2(style.displaySize.x/2 - style.fullToolbarsWidth/2,0))
im.Begin( translateLanguage("ui.trackBuilder.toolbar.title", "Toolbar"), nil, im.flags(im.WindowFlags_NoScrollbar, im.WindowFlags_NoResize, im.WindowFlags_NoCollapse, im.WindowFlags_NoDocking))
if driving then
if v.size then im.SetNextWindowSize(v.size) end
if im.Begin(v.name,v.isOpen) then
if v.wasOpen == false then
if v.size then im.SetNextWindowSize(v.size) end
if im.Begin(v.name,v.isOpen) then
if v.wasOpen == false then
if im.Begin(translateLanguage("ui.trackbuilder.menus.trackBuilder", "Track Builder"), open, flags) then
style.toolbarWidth = (#menuItemsSorted + #additionalMenuItemsSorted) * 44 + 16 + (#menuItemsSorted + #additionalMenuItemsSorted - 1) * 8 + (#paintModesSorted) * 44 + 16 + (#paintModesSorted - 1) * 8 - 4
@/lua/ge/extensions/gameplay/drift/scoring.lua
if isBeingDebugged then
if im.Begin("Drift score") then
im.Text(string.format("Score : %i", driftScore.score))
@/lua/ge/extensions/ui/messagesTasksAppContainers.lua
im.Begin("Messages/Tasks App Containers Debug")
@/lua/ge/extensions/editor/mainMenu.lua
imgui.SetNextWindowPos(imgui.ImVec2(winbounds.Pos.x + 15, winbounds.Pos.y + winbounds.Size.y - imgui.GetTextLineHeight()*3), imgui.Cond_Always)
imgui.Begin("StatusBar", opened,
bor(imgui.WindowFlags_NoTitleBar, imgui.WindowFlags_NoResize, imgui.WindowFlags_NoMove,
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/imVehicleSelect.lua
im.SetNextWindowSize(im.ImVec2(480, 300))
im.Begin("Vehicle Select##"..self.id, im.BoolPtr(true))
@/lua/ge/extensions/editor/flowgraph/search.lua
if not editor.isWindowVisible(self.windowName) then return end
self:Begin("Search")
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(0, 0))
local windowOpen = im.Begin('Vehicle Detail View - ' .. view.name .. ' - ' .. loadedLayoutBaseFilename, view.windowOpen)
im.PopStyleVar()
@/lua/ge/extensions/gameplay/missions/missionScreen.lua
end
im.Begin("Mission Start Screen History")
local layouts = {}
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veVehicleSpawner.lua
if not vehSelectorWndOpen[0] then return end
if im.Begin("Select Vehicle", vehSelectorWndOpen) then
for i = 1, #vehsList do
if im.Begin(wndName, windowOpen) then
--im.PushItemWidth(100)
@/lua/ge/extensions/editor/vizHelper.lua
if not mouseHit or not mouseHit.pos then
im.Begin("Viz Helper", windowOpen)
im.Text("Mouse not over anything")
--TODO: convert to editor.beginWindow/endWindow api
im.Begin("Viz Helper", windowOpen)
@/lua/ge/extensions/editor/mainToolbar.lua
local wndOpen = im.BoolPtr(terrainSnapSettingsOpen)
im.Begin("Terrain Snap Settings", wndOpen, im.WindowFlags_NoCollapse)
local relRotation = im.BoolPtr(editor.getPreference("snapping.terrain.relRotation"))
local wndOpen = im.BoolPtr(gridSnapSettingsOpen)
im.Begin("Grid Snap Settings", wndOpen, im.WindowFlags_NoCollapse)
local useLastObject = im.BoolPtr(editor.getPreference("snapping.grid.useLastObjectSelected"))
--TODO: replace with begin/endWindow
im.Begin("Toolbar2", nil, toolbarFlags)
drawAlwaysVisibleToolbars()
@/lua/ge/extensions/editor/flowgraph/references.lua
end
self:Begin('References')
if not self.nodeTable or self.nodeTable == {} then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamModifierLeakVis.lua
if im.Begin(wndName, windowOpen) then
if not vEditor.vehicle then goto continue end
@/lua/ge/extensions/editor/forestEditor.lua
local wndOpen = im.BoolPtr(transformToolSettingsOpen)
im.Begin("Item Selection Style", wndOpen, im.WindowFlags_NoCollapse)
local wndOpen = im.BoolPtr(snapOptionsOpen)
im.Begin("Snap To Terrain Options", wndOpen, im.WindowFlags_NoCollapse)
local boolPtr = im.BoolPtr(enableSnapSinkOption)
@/lua/ge/extensions/editor/roadEditor.lua
if templateDialogOpen[0] then
im.Begin("Templates", templateDialogOpen, 0)
for i=1, #editor_roadUtils.getMaterials() do
@/lua/ge/extensions/util/stepHandler.lua
local im = ui_imgui
im.Begin("Step Handler Debug")
im.Text("Steps")
@/lua/ge/extensions/gameplay/drift/freeroam/driftSpots.lua
if im.Begin("Drift freeroam") then
if activeLine then
@/lua/ge/extensions/core/quickAccess.lua
local function renderImGuiTreeWindow()
if im.Begin("Favorite Selection") then
renderTree(menuTreeCopyForUI, nil)
@/lua/ge/extensions/ui/messagesDebugger.lua
im.SetNextWindowSize(im.ImVec2(520, 320), im.Cond_FirstUseEver)
if im.Begin("Messages Debugger", windowOpen) then
im.TextUnformatted("Compose and control UI 'Message' events")
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veFlexbodyDebug.lua
im.SetNextWindowSize(flexbodyInputTextPopupSize)
if im.Begin(inputSuggestWndName, nil, inputSuggestWndFlags) then
for i = 0, #state.sortedFlexbodiesData do
im.SetNextWindowSize(nodeInputTextPopupSize)
if im.Begin(inputSuggestWndName, nil, inputSuggestWndFlags) then
im.SetNextWindowSize(vertexInputTextPopupSize)
if im.Begin(inputSuggestWndName, nil, inputSuggestWndFlags) then
local vertCount = flexbodyObj:getVertexCount()
if showVerticesOBBCoordsWindow[0] then
if im.Begin(verticesOOBCoordsWindowName, showVerticesOBBCoordsWindow) then
if state.verticesOOBCoordsData then
if showVerticesLackingNodesWindow[0] then
if im.Begin(verticesLackingNodesWindowName, showVerticesLackingNodesWindow) then
if state.verticesLackingNodesData then
if im.Begin(wndName, windowOpen, mainWndFlags) then
if im.BeginTabBar("##tabs") then
@/lua/ge/extensions/ui/vehiclePaint.lua
imgui.Begin('Metallic paint', showUI, imgui.WindowFlags_AlwaysAutoResize)
if imgui.CollapsingHeader1("Paint 0", imgui.TreeNodeFlags_DefaultOpen) then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/vePowerTrain.lua
if im.Begin(wndName, windowOpen) and vEditor and vEditor.vehicle then
vEditor.vehicle:queueLuaCommand([[
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/imDialogue.lua
if self.open then
im.Begin((self.pinIn.title.value or "Title") .. '##' .. tostring(self.id), im.BoolPtr(true))
im.PushTextWrapPos(im.GetCursorPosX() + (self.data.wrapSize or 500))
@/lua/ge/extensions/career/modules/marketplace.lua
if debugEnabled and negotiationActive then
im.Begin("Negotiation Buying")
if negotiationStatus == "thinking" then
@/lua/ge/extensions/editor/flowgraph/garbageDebug.lua
if not editor.isWindowVisible(self.windowName) then return end
self:Begin(self.windowDescription)
im.SameLine()
@/lua/ge/extensions/core/vehicle/mirror.lua
im.SetNextWindowPos(initialWindowSize, im.Cond_FirstUseEver)
if( im.Begin("core_vehicle_mirror Debugger", windowOpen) ) then
if im.Button("get") then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/vePropTransformer.lua
if im.Begin(wndName, windowOpen, mainWndFlags) then
if state then
@/lua/ge/extensions/career/modules/partInventory.lua
local partInventoryOpenPtr = imgui.BoolPtr(true)
imgui.Begin("Part Inventory", partInventoryOpenPtr)
if not partInventoryOpenPtr[0] then
@/lua/ge/extensions/gameplay/drag/debug.lua
if im.Begin("Drag Race General Debug") then
im.SameLine()
@/lua/ge/extensions/gameplay/drift/general.lua
if im.Begin("Drift general") then
im.PushStyleColor2(im.Col_Text, imVec4Red)
@/lua/ge/extensions/ui/apps/minimap/minimap.lua
if p then p:add("Canvas and window setup") end
if im.Begin("SDF Minimap",nil, bit.bor(im.WindowFlags_NoScrollbar, im.WindowFlags_NoScrollWithMouse, im.WindowFlags_NoTitleBar, im.WindowFlags_NoResize, im.WindowFlags_NoMove, im.WindowFlags_NoInputs, im.WindowFlags_Modal)) then
if p then p:add("debugSettings window") end
if im.Begin("SDF Minimap debugSettings") then
if im.Button("Close") then
@/lua/ge/extensions/flowgraph/basenode.lua
ui_flowgraph_editor.PushStyleColor(ui_flowgraph_editor.StyleColor_NodeBg, bgClr)
builder:Begin(self.id)
@/lua/ge/extensions/util/vehicleRopeDebug.lua
im.SetNextWindowSize(im.ImVec2(800, 750), im.Cond_FirstUseEver)
if im.Begin("Rope Visual Sandbox", windowOpen) then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamSpellchecker.lua
if im.Begin(wndName, windowOpen) then
if im.Button("Start Analysis") then
@/lua/ge/extensions/editor/flowgraph/legend.lua
if not editor.isWindowVisible(self.windowName) then return end
self:Begin(self.windowName)
im.BeginTabBar("LegendTest", im.TabBarFlags_Reorderable)
@/lua/ge/extensions/editor/flowgraph/overview.lua
function C:TreeView()
if self:Begin('Overview') then
-- sort graphs, macro originals and macro instances
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veAdjustableTechCarTuner.lua
if im.Begin(wndName, windowOpen) then
if not initFlag then
@/lua/ge/extensions/gameplay/drift/sounds.lua
if im.Begin("Drift audio") then
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 0.1, 0.1, 1))
@/lua/ge/extensions/career/career.lua
imgui.SetNextWindowSize(imgui.ImVec2(300, 300), imgui.Cond_FirstUseEver)
imgui.Begin("Career Debug (Save File: " .. career_saveSystem.getCurrentSaveSlot() .. ")###Career Debug", nil, imgui.WindowFlags_MenuBar)
imgui.BeginMenuBar()
@/lua/ge/extensions/gameplay/statistic.lua
im.SetNextWindowPos(initialWindowSize, im.Cond_FirstUseEver)
if( im.Begin("gameplay_statistic Debugger", windowOpen) ) then
if im.BeginTabBar("shapeeditor##") then
@/lua/ge/extensions/core/vehicleTriggers.lua
im.SetNextWindowSize(im.ImVec2(500, 500), im.Cond_FirstUseEver)
if im.Begin(toolWindowName, openPtr) then
local tableFlags = bit.bor(im.TableFlags_BordersV,
@/lua/ge/extensions/editor/flowgraph/stateView.lua
if not editor.isWindowVisible(self.windowName) then return end
if self:Begin('States View') then
@/lua/ge/extensions/editor/flowgraph/main.lua
end
if im.Begin(name..'##'..gr.id, gr.showTab, windowFlags) then
--dump(im.GetWindowDrawList())
ui_flowgraph_editor.Begin(self.editorid, im.ImVec2(0, -5), graphReadOnly)
if im.IsWindowFocused() then
if im.BeginPopup("Node Context Menu") then
--im.Begin('asd##contextMenuWrapper')
local node = self.mgr.graph.nodes[ui_flowgraph_editor.PtrToId(self.contextNodeId)]
@/lua/ge/extensions/editor/main.lua
imgui.SetNextWindowSize(imgui.ImVec2(imgui.uiscale[0] * (imageSize.x + 50), imgui.uiscale[0] * (imageSize.y + 30)), imgui.Cond_Always)
imgui.Begin("loadingEditorWnd", nil, imgui.WindowFlags_NoScrollbar + imgui.WindowFlags_NoTitleBar + imgui.WindowFlags_NoResize + imgui.WindowFlags_NoMove)
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veNodeTriSelfCollisionDetector.lua
if not vEditor or not vEditor.vehicle then return end
if im.Begin(wndName, windowOpen) then
im.SliderFloat('Node Collision Radius', nodeCollisionRadiusPtr, 0.025, 0.1, '%.3f m')