BeginChild1
Definition
-- @/=[C]:-1
function BeginChild1(...)
Callers
@/lua/ge/extensions/editor/api/gui.lua
local imgsize = (imgui.CalcTextSize("yes").y + style.FramePadding.y * 2)
imgui.BeginChild1("##InputSearch", imgui.ImVec2(width, imgsize + 2), false)
local frame = imgui.GetStyleColorVec4(imgui.Col_FrameBg)
@/lua/ge/extensions/editor/visualization.lua
im.BeginChild1("visTypes")
local nItems = 0 -- Items count
@/lua/ge/extensions/util/groundModelDebug.lua
end
im.BeginChild1("GroundModelScroll")
im.Columns(3, "GroundModelColumnsBegin") -- im.ColumnsFlags_NoResize)
if im.TreeNode1("visible Groundmodels") then
im.BeginChild1("GroundModelVisScroll")
im.Columns(3, "GroundModelColumnsBegin") -- im.ColumnsFlags_NoResize)
-- im.BeginChild1("StaticColDetailScroll")
-- im.Columns(2, "StaticColDetailColumnsBegin") -- im.ColumnsFlags_NoResize)
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
if im.TreeNode1(translateLanguage("ui.trackBuilder.matEditor.baseTextures", "Base Textures")) then
im.BeginChild1("baseTextureChild", im.ImVec2(-1,160))
local i = 1
if im.TreeNode1(translateLanguage("ui.trackBuilder.matEditor.decalTextures", "Decal Textures")) then
im.BeginChild1("decalTextureChild",im.ImVec2(-1,160))
local i = 1
im.ImGuiTextFilter_Draw(loadFilesFilter, translateLanguage("ui.trackBuilder.saveLoad.search", "Search"), 120)
im.BeginChild1("LoadBox")
for _,file in ipairs(saveSettings.trackNames) do
activeCount = activeCount +1
im.BeginChild1("ObstacleChild", im.ImVec2(0,430), true)
if im.TreeNodeEx1('Obstacle '..activeCount,im.TreeNodeFlags_DefaultOpen) then
@/lua/ge/extensions/editor/inspector.lua
if imgui.BeginChild1("ColorMapColumn", imgui.ImVec2(0, uvMainPanelHeight), true, imgui.WindowFlags_NoScrollWithMouse) then
imgui.Columns(2, "MainColumn")
imgui.NextColumn()
if imgui.BeginChild1("UVValuesColumn", nil, true) then
local cursorPos = imgui.GetCursorPos()
@/lua/ge/extensions/editor/roadArchitect.lua
im.BeginChild1("topBtnRow1", im.ImVec2(-1, 60), im.WindowFlags_ChildWindow)
im.SetCursorPosY(im.GetCursorPosY() + 5)
im.BeginChild1("ScrollingRegion1", im.ImVec2(-1, 800), im.WindowFlags_ChildWindow)
@/lua/ge/extensions/editor/dragRaceEditor/lanes.lua
M.drawLanesSection = function()
im.BeginChild1("lanes", im.ImVec2(0, 150), true)
im.Text("Lanes")
im.BeginChild1("laneDetails", im.ImVec2(0, 0), true)
im.Text("Lane Details")
@/lua/ge/extensions/editor/dynamicDecals/textures.lua
local spaceAvailable = im.GetContentRegionAvail()
im.BeginChild1("DecalTexturesBrowserChild", im.ImVec2(spaceAvailable.x, spaceAvailable.y - (2 * im.GetStyle().ItemSpacing.y + 1 * math.ceil(im.GetFontSize()))), true)
drawTextureTiles(textures.getTextureFiles(), decalTextureTextFilter)
local tagsWithReferences = textures.getTagsWithRefs()
im.BeginChild1("DecalTexturesTagsBrowserChild", nil, true)
if tags and tagsWithReferences then
im.BeginChild1("dynDecalTexturesInspector_Child", nil, true)
for _, file in ipairs(sel) do
@/lua/ge/extensions/flowgraph/nodes/gameplay/race/imRaceTimes.lua
local avail = im.GetContentRegionAvail()
--im.BeginChild1("Times", im.ImVec2(avail.x, avail.y/2-5), 0, im.WindowFlags_AlwaysVerticalScrollbar)
if self.race:inDrawTimes(self.pinIn.vehId.value, im, self.data.detailed) then
@/lua/ge/extensions/editor/toolUtilities/materialSelectionMgr.lua
local listSize = im.ImVec2(0, im.GetContentRegionAvail().y)
im.BeginChild1("MaterialListScrollArea", listSize, false)
for i = 1, #materialSet do
@/lua/ge/extensions/editor/driftDataEditor.lua
-- element selector and "New"
im.BeginChild1("element select", im.GetContentRegionAvail(), 1)
im.Text("Drift Stunt Zones:")
-- element detail
im.BeginChild1("element detail", im.GetContentRegionAvail(), 1)
im.BeginChild1("driftSpots", im.GetContentRegionAvail(), 1)
im.TextWrapped("Drift spots in the current level: ")
im.BeginChild1("Drift spots details", im.GetContentRegionAvail(), 1)
if selectedDriftSpotId then
@/lua/ge/extensions/editor/dragRaceEditor/dragSettings.lua
M.drawDragSettingsSection = function()
im.BeginChild1("dragSettings", im.ImVec2(0, 200), true)
im.Text("Drag Settings")
M.drawPrefabsSection = function()
im.BeginChild1("prefabs", im.ImVec2(0, 200), true)
im.Text("Prefabs")
M.drawPhasesSection = function()
im.BeginChild1("phases", im.ImVec2(0, 150), true)
im.Text("Race Phases")
@/lua/ge/extensions/editor/terrainEditor.lua
local bottomButtonPosX = im.GetCursorPosX()
if im.BeginChild1("MaterialSelectorChild", childSize) and tableSize(paintMaterialProxies) then
local btnHeight = math.ceil(im.GetFontSize()) + 2
@/lua/ge/extensions/util/screenshotCreator.lua
local halfWidth = im.GetContentRegionAvailWidth() / 2
if im.BeginChild1("unselectedSection", im.ImVec2(halfWidth, 0), true) then
im.Text("Unselected Models")
im.Text("Unselected Models")
if im.BeginChild1("unselectedVehs", im.ImVec2(0,0), true) then
if vehList then
im.SameLine()
if im.BeginChild1("selected", im.ImVec2(halfWidth, 0), true) then
im.Text("Selected Models")
im.Text("Selected Models")
if im.BeginChild1("selectedVehs", im.ImVec2(0,0), true) then
if vehList then
local imguiHeight = 230
if im.BeginChild1("Parent parent", im.ImVec2(0, imguiHeight), true) then
if im.BeginChild1("Config list", im.ImVec2(im.GetContentRegionAvailWidth() / 2, 0), nil) then
if im.BeginChild1("Parent parent", im.ImVec2(0, imguiHeight), true) then
if im.BeginChild1("Config list", im.ImVec2(im.GetContentRegionAvailWidth() / 2, 0), nil) then
if im.BeginTable('Model configs', 4, nil) then
local cameraConfigs = getCameraConfig(currModelName, currConfigName)
if im.BeginChild1("Config custom camera", im.ImVec2(im.GetContentRegionAvailWidth() / 2, 0), true) then
if cameraConfigs.vehCamConfig and cameraConfigs.vehCamConfig.cameraConfig then
im.SameLine()
if im.BeginChild1("Model custom camera", nil, true) then
if cameraConfigs.vehCamConfig and cameraConfigs.vehCamConfig.configCamEnabled then
local halfWidth = im.GetContentRegionAvailWidth() / 2
if im.BeginChild1("Vehicle list info", im.ImVec2(halfWidth, 0), true) then
im.Text("Thumbnail status list : ")
if im.BeginChild1("Run info", im.ImVec2(halfWidth, 0), true) then
@/lua/ge/extensions/editor/cameraBookmarks.lua
imgui.BeginChild1("cameraBookmarksChild", imgui.ImVec2(0, 0), true)
local bookmarks = editor.getCameraBookmarks()
@/lua/ge/extensions/career/modules/partInventory.lua
end
imgui.BeginChild1("vehiclePartsOuter", imgui.ImVec2(220, 0), imgui.WindowFlags_ChildWindow)
imgui.Text("Parts in current vehicle")
imgui.Text("Parts in current vehicle")
imgui.BeginChild1("partsInVehicle", imgui.ImVec2(200, 0), imgui.WindowFlags_ChildWindow)
for partId, part in pairs(partInventory) do
imgui.SameLine()
imgui.BeginChild1("inventoryPartsOuter", imgui.ImVec2(0, 0), imgui.WindowFlags_ChildWindow)
imgui.Text("Parts in inventory")
@/lua/ge/extensions/editor/dragRaceEditor/waypoints.lua
M.drawWaypointsSection = function()
im.BeginChild1("waypoints", im.ImVec2(0, 150), true)
im.Text("Waypoints")
im.BeginChild1("waypointDetails", im.ImVec2(0, 0), true)
im.Text("Waypoint Details")
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamModifierLeakVis.lua
if im.BeginChild1("##sectionButtons", im.ImVec2(0, textHeight * 2), false, im.WindowFlags_HorizontalScrollbar) then
local sectionNamesLen = #sectionNamesSorted
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartList.lua
if im.BeginChild1("##partList", im.ImVec2(0, maxTreeHeight), false) then
im.GetContentRegionAvail()
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
--self:drawTextFilter('nodes')
im.BeginChild1("nodelib###")
local sorted = {}
im.BeginChild1("Variables###")
local padding = im.GetStyle().FramePadding
im.BeginChild1("Macros###")
local padding = im.GetStyle().FramePadding
--end
im.BeginChild1("statelib###")
local sorted = {}
else
im.BeginChild1('##nodfinder')
if self.searchChanged then
@/lua/ge/extensions/editor/trafficManager.lua
local function tabVehicleManager()
im.BeginChild1("vehicleManagerList##trafficManager", im.ImVec2(240 * im.uiscale[0], 440 * im.uiscale[0]), im.WindowFlags_ChildWindow)
im.BeginChild1("vehicleManagerData##trafficManager", im.ImVec2(0, 440 * im.uiscale[0]), im.WindowFlags_None)
local sessionData = session.vehicles[currSelection.vehicle]
im.BeginChild1("trafficLightsList##trafficManager", im.ImVec2(160 * im.uiscale[0], 440 * im.uiscale[0]), im.WindowFlags_ChildWindow)
for _, id in ipairs(session.lightsSorted) do
im.BeginChild1("trafficLightsData##trafficManager", im.ImVec2(0, 440 * im.uiscale[0]), im.WindowFlags_None)
@/lua/ge/extensions/editor/raceEditor/tools.lua
function C:drawGeneralInfo()
im.BeginChild1("Tools", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
im.Text("Side Decorators")
@/lua/ge/extensions/editor/undoHistory.lua
if imgui.Button("Undo Selected") then editor.undo(tableSize(editor.history.undoStack) - selectedIndex + 1) end
imgui.BeginChild1("undos", imgui.ImVec2(0, imgui.GetContentRegionAvail().y))
for k = tableSize(editor.history.undoStack), 1, -1 do
if imgui.Button("Redo Selected") then editor.redo(tableSize(editor.history.redoStack) - selectedIndex2 + 1) end
imgui.BeginChild1("redos", imgui.ImVec2(0, imgui.GetContentRegionAvail().y))
for k = tableSize(editor.history.redoStack), 1, -1 do
@/lua/ge/extensions/editor/audioEventsList.lua
im.BeginChild1("##ScrollableGUI", im.ImVec2(0, im.GetContentRegionAvail().y - stopButtonHeight))
-- Render folders and eventsTree
local function renderSearchResultsGui(stopButtonHeight)
im.BeginChild1("##ScrollableGUI", im.ImVec2(0, im.GetContentRegionAvail().y - stopButtonHeight))
if searchResults then
@/lua/ge/extensions/editor/masterSpline.lua
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(4, 8)) -- Reduce horizontal padding
if im.BeginChild1("TabContentChild", im.ImVec2(0, 0), true) then
if selectedTab == 0 and selSpline.isEnabled then -- Layers tab.
@/lua/ge/extensions/editor/dragRaceEditor.lua
-- Left column: All items (facilities, strips, settings)
im.BeginChild1("leftPanel", im.ImVec2(0, 0), true)
-- Right column: Details view
im.BeginChild1("rightPanel", im.ImVec2(0, 0), true)
@/lua/ge/extensions/editor/api/core.lua
imgui.Text("Tool windows with unsaved data:")
imgui.BeginChild1("Windows", imgui.ImVec2(-1, imgui.GetContentRegionAvail().y - 30), imgui.WindowFlags_ChildWindow)
for name, _ in pairs(editor.dirtyTools) do
@/lua/ge/extensions/editor/assemblySpline.lua
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(4, 8))
if im.BeginChild1("TabContentChild", im.ImVec2(0, 0), true) then
if selectedTab == 0 then
@/lua/ge/extensions/editor/toolUtilities/meshAuditionMgr.lua
im.Separator()
im.BeginChild1("meshListScrollArea", im.ImVec2(-1, -1))
if im.BeginListBox('##meshListBox', im.ImVec2(-1, -1)) then
@/lua/ge/extensions/editor/roadSpline.lua
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(4, 8))
if im.BeginChild1("TabContentChild", im.ImVec2(0, 0), true) then
if selectedTab == 0 then -- Layers tab.
@/lua/ge/extensions/editor/trafficSignalsEditor.lua
local function tabInstances()
im.BeginChild1("instances", im.ImVec2(150 * im.uiscale[0], 0), im.WindowFlags_ChildWindow)
im.BeginChild1("instanceData", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
contentWidth = im.GetContentRegionAvailWidth() * 0.5
else
im.BeginChild1("signalObjects", im.ImVec2(im.GetContentRegionAvailWidth(), 110 * im.uiscale[0]), im.WindowFlags_ChildWindow)
for _, oid in ipairs(currInstance.tempSignalObjects) do
im.BeginChild1("controllers", im.ImVec2(150 * im.uiscale[0], 0), im.WindowFlags_ChildWindow)
im.BeginChild1("controllerData", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
contentWidth = im.GetContentRegionAvailWidth() * 0.5
im.BeginChild1("sequences", im.ImVec2(150 * im.uiscale[0], 0), im.WindowFlags_ChildWindow)
im.BeginChild1("sequenceData", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
contentWidth = im.GetContentRegionAvailWidth() * 0.5
@/lua/ge/extensions/editor/shapeEditor.lua
im.PushStyleColor2(im.Col_ChildBg, im.ImColorByRGB(0,0,0,64).Value)
im.BeginChild1("shapeEditorMenu", menuSize(im.GetWindowWidth(),im.GetWindowHeight()), true )
im.PopStyleColor()
im.BeginChild1("##child1", im.ImVec2(0, 0), false)
im.Columns(4)
-- im.BeginChild1("###shapeStats", im.ImVec2(400, 200), true)
-- im.Columns(2)
im.BeginChild1("##child2", im.ImVec2(0, 0), false)
im.Columns(5)
@/lua/ge/extensions/editor/trafficDebug.lua
local function drawVehiclesTab()
im.BeginChild1("Vehicles##trafficDebug", im.ImVec2(180 * im.uiscale[0], 0 ), im.WindowFlags_ChildWindow)
for id, veh in pairs(traffic) do
im.BeginChild1("Current Vehicle##trafficDebug", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
local currVeh = traffic[currId]
im.BeginChild1("Action Logs##trafficDebug", im.ImVec2(im.GetWindowContentRegionWidth(), 200), true, im.WindowFlags_None)
if logs[currVeh.id] then
@/lua/ge/extensions/flowgraph/nodes/util/template.lua
im.Text("]")
--im.BeginChild1("child",im.ImVec2(self.sliderWidth[0],50), true)
end
@/lua/ge/extensions/gameplay/missions/missionTypes/editorHelper.lua
end
im.BeginChild1("LB",im.ImVec2(im.GetContentRegionAvailWidth()*0.66, 62), true)
im.Columns(3)
@/lua/ge/extensions/editor/autoSave.lua
imgui.Separator()
imgui.BeginChild1("autosaves", imgui.ImVec2(0, 200))
for k = tableSize(autosaves), 1, -1 do
@/lua/ge/extensions/editor/rallyEditor/notebookInfo.lua
local tabContentsHeight = 0
im.BeginChild1("codrivers", im.ImVec2(125 * im.uiscale[0], tabContentsHeight), im.WindowFlags_ChildWindow)
for _,codriver in ipairs(self.path.codrivers.sorted) do
im.SameLine()
im.BeginChild1("currentCodriver", im.ImVec2(0,tabContentsHeight), im.WindowFlags_ChildWindow)
@/lua/ge/extensions/editor/raceEditor/trackLayout.lua
function C:drawGeneralInfo()
im.BeginChild1("Layout", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veFlexbodyDebug.lua
if im.BeginChild1("##renderVerticesLackingNodesWindowData") then
for k, verticesData in ipairs(state.verticesLackingNodesData.data) do
@/lua/ge/extensions/editor/raceEditor/pacenotes.lua
local avail = im.GetContentRegionAvail()
im.BeginChild1("keynotes", im.ImVec2(125 * im.uiscale[0], 0 ), im.WindowFlags_ChildWindow)
for i, note in ipairs(self.path.pacenotes.sorted) do
im.SameLine()
im.BeginChild1("currentPacenote", im.ImVec2(0, 0 ), im.WindowFlags_ChildWindow)
if self.index then
im.BeginChild1("self.indexInner", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
local editEnded = im.BoolPtr(false)
@/lua/ge/extensions/editor/materialEditor.lua
local avail = im.GetContentRegionAvail()
im.BeginChild1("##mu_child", im.ImVec2(avail.x, avail.y - 4*im.GetFontSize()), false, im.WindowFlags_ChildWindow + im.WindowFlags_HorizontalScrollbar)
if im.BeginChild1("CreateCubemapsLeftChild", nil, true) then
for index, cubemap in ipairs(cubemaps) do
if im.BeginChild1("MATERIAL_EDITOR_MAIN") then
@/lua/ge/extensions/flowgraph/nodes/scene/raceLineParking.lua
tlCenter = im.GetCursorScreenPos()
im.BeginChild1("parkingPreview", childSize, true, im.WindowFlags_NoScrollbar+im.WindowFlags_NoScrollWithMouse)
local rot = quat(self.pinIn.rotation.value)
@/lua/ge/extensions/editor/multiSpawnManager.lua
im.BeginChild1("groupType##editGroup", im.ImVec2(comboWidth, 32 * im.uiscale[0]), im.WindowFlags_None)
local val = currGroup.type == "custom" and im.IntPtr(1) or im.IntPtr(2)
im.BeginChild1("groupTags##editGroup", im.ImVec2(comboWidth, 64 * im.uiscale[0]), im.WindowFlags_None)
im.BeginChild1("Generated Group##editGroup", im.ImVec2(im.GetContentRegionAvailWidth(), 470 * im.uiscale[0]), im.WindowFlags_ChildWindow)
local width1 = 40 * im.uiscale[0]
@/lua/ge/extensions/editor/raceEditor/startPositions.lua
--dumpz(self.path,2)
im.BeginChild1("sp", im.ImVec2(220 * im.uiscale[0], 0 ), im.WindowFlags_ChildWindow)
for i, sp in ipairs(self.path.startPositions.sorted) do
im.SameLine()
im.BeginChild1("currentSP", im.ImVec2(0, 0 ), im.WindowFlags_ChildWindow)
if self.index then
im.BeginChild1("self.indexInner", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
local editEnded = im.BoolPtr(false)
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
end
im.BeginChild1(string.format("%s_%s_%s_%d", name, layer.uid, guiId, id), im.ImVec2(0, layerDropHeight), true)
im.EndChild()
end
im.BeginChild1(string.format("##%s_%s_%s", guiId, layer.uid, "before"), im.ImVec2(0, layerDropHeight), true)
im.EndChild()
end
im.BeginChild1(string.format("##%s_%s_%s", guiId, "XXXX-XXXX", "after_last"), im.ImVec2(0, layerDropHeight), true)
im.EndChild()
@/lua/ge/extensions/editor/sceneTree.lua
imgui.BeginChild1("Scene Tree Child", imgui.ImVec2(0, searchResultsMode and maxTreeHeight or 0), false)
if searchResultsMode then
@/lua/ge/extensions/editor/raceEditor/testing.lua
local avail = im.GetContentRegionAvail()
im.BeginChild1("Times", im.ImVec2(avail.x, avail.y/2-5), 0, im.WindowFlags_AlwaysVerticalScrollbar)
local avail = im.GetContentRegionAvail()
im.BeginChild1("EventLog", im.ImVec2(avail.x, avail.y-5), 0, im.WindowFlags_AlwaysVerticalScrollbar)
self.race:inDrawEventlog(self.race.vehIds[1], im)
@/lua/ge/extensions/flowgraph/nodes/states/stateExit.lua
im.Text(self.transitionName or "No Transition!")
--im.BeginChild1("child",im.ImVec2(self.sliderWidth[0],50), true)
end
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua
id = id + 1
im.BeginChild1('DAE', im.ImVec2(0, cdaeHeight), true)
im.Columns(2, "geoPanel", true)
inghover = false
im.BeginChild1('PARTS', im.ImVec2(0, avail.y/(env.ui['model_on'] and 1 or 2)), false)
-- im.Text(''..avail.x..':'..avail.y)
-- im.BeginChild1('FILES', im.ImVec2(0, -1), true)
-- im.Text('Shape type_POST2')
if not indae then
-- if im.BeginChild1('DAE', im.ImVec2(-1, 100), true) then
-- im.EndChild()
-- im.BeginChild1('DAE', im.ImVec2(0, cdaeHeight-0), true)
@/lua/ge/extensions/editor/dynamicDecals/news.lua
local style = im.GetStyle()
if im.BeginChild1("DynamicDecals_NewsWindow_Child", im.ImVec2(availableSpace.x, availableSpace.y - (math.ceil(im.GetFontSize()) + 3 * style.ItemSpacing.y)), true) then
im.Dummy(spacing)
@/lua/ge/extensions/editor/levelValidator.lua
im.BeginChild1("logsTable", im.ImVec2(0,0), false)
im.Columns(7, nil, false)
@/lua/ge/extensions/editor/rallyEditor.lua
if currentPath then
-- im.BeginChild1("##top-toolbar", im.ImVec2(0,topToolbarHeight), im.WindowFlags_ChildWindow)
-- im.BeginChild1("##tabs-child", im.ImVec2(0,middleChildHeight), im.WindowFlags_ChildWindow and im.ImGuiWindowFlags_NoBorder )
im.BeginChild1("##tabs-child", nil, im.WindowFlags_ChildWindow and im.ImGuiWindowFlags_NoBorder )
-- im.BeginChild1("##tabs-child", im.ImVec2(0,middleChildHeight), im.WindowFlags_ChildWindow and im.ImGuiWindowFlags_NoBorder )
im.BeginChild1("##tabs-child", nil, im.WindowFlags_ChildWindow and im.ImGuiWindowFlags_NoBorder )
if im.BeginTabBar("modes") then
-- local tabContentsHeight = middleChildHeight - tabsHeight
-- im.BeginChild1("##tab-contents-child-window", im.ImVec2(0,tabContentsHeight), im.WindowFlags_ChildWindow and im.ImGuiWindowFlags_NoBorder)
im.BeginChild1("##tab-contents-child-window", nil, im.WindowFlags_ChildWindow and im.ImGuiWindowFlags_NoBorder)
-- im.BeginChild1("##tab-contents-child-window", im.ImVec2(0,tabContentsHeight), im.WindowFlags_ChildWindow and im.ImGuiWindowFlags_NoBorder)
im.BeginChild1("##tab-contents-child-window", nil, im.WindowFlags_ChildWindow and im.ImGuiWindowFlags_NoBorder)
-- currentWindow:draw(mouseInfo, tabContentsHeight)
@/lua/ge/extensions/editor/flowgraph/garbageDebug.lua
local fillPercent = 0.33
im.BeginChild1(label.."Child", im.ImVec2(winWidth, scale*(24)+16), true, (not entry.expanded) and flags)
@/lua/ge/extensions/editor/rallyEditor/measurementsTab.lua
im.BeginChild1("measurements", im.ImVec2(0, 200), im.WindowFlags_ChildWindow)
im.BeginChild1("points", im.ImVec2(0, 150), im.WindowFlags_ChildWindow)
@/lua/ge/extensions/flowgraph/nodes/types/string.lua
builder:Middle()
--im.BeginChild1("str"..self.id, im.ImVec2(160,100),1)
if self.string then
@/lua/ge/extensions/editor/missionPlaybook.lua
M.drawBookViewer()
im.BeginChild1("elements",im.GetContentRegionAvail(), im.WindowFlags_AlwaysVerticalScrollbar)
im.Columns(2)
@/lua/ge/extensions/editor/missionEditor/layers.lua
local editEnded = im.BoolPtr(false)
--im.BeginChild1("box", im.ImVec2(width, 50), true, bit.bor(im.WindowFlags_NoScrollWithMouse, im.WindowFlags_NoScrollbar))
if i == 1 then im.BeginDisabled() end
@/lua/ge/extensions/editor/raceEditor/timeTrials.lua
function C:drawGeneralInfo()
im.BeginChild1("General", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
@/lua/ge/extensions/gameplay/drift/scoring.lua
if debugToggleSmothnessGraph[0] then
im.BeginChild1("Data", im.ImVec2(im.GetContentRegionAvailWidth() / 100 * 65, 300), true)
-- debug graph
im.SameLine()
im.BeginChild1("Legend", im.ImVec2(im.GetContentRegionAvailWidth(), 300), true)
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 1, 0.1, 1))
if scoreExperiment[0] then
im.BeginChild1("change", im.ImVec2(0, 140), true)
im.Text("Experiment (CTRL + L to reset):")
@/lua/ge/extensions/flowgraph/basenode.lua
im.SetWindowFontScale(editor.getPreference("ui.general.scale"))
-- im.BeginChild1("ncm##"..self.id, im.ImVec2(150*editor.getPreference("ui.general.scale"), entries * im.GetTextLineHeightWithSpacing() * editor.getPreference("ui.general.scale")))
@/lua/ge/extensions/editor/rallyEditor/pacenotes/pacenoteForm.lua
function C:draw()
im.BeginChild1("##pacenoteFormChildWindow", nil, im.WindowFlags_ChildWindow)
if self.pacenote then
@/lua/ge/extensions/editor/raceEditor/pathnodes.lua
local avail = im.GetContentRegionAvail()
im.BeginChild1("keynodes", im.ImVec2(125 * im.uiscale[0], 0 ), im.WindowFlags_ChildWindow)
for i, node in ipairs(self.path.pathnodes.sorted) do
im.SameLine()
im.BeginChild1("currentPathnode", im.ImVec2(0, 0 ), im.WindowFlags_ChildWindow)
if self.index then
im.BeginChild1("self.indexInner", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
local editEnded = im.BoolPtr(false)
@/lua/ge/extensions/editor/iconOverview.lua
end
if imgui.BeginChild1("iconChild") then
local i = 0
@/lua/ge/extensions/editor/terrainMaterialsEditor.lua
-- TERRAIN MATERIALS COLUMN
if im.BeginChild1("Terrain Materials##Child", nil, true) then
im.TextUnformatted("Material Library")
local size = im.ImVec2(0, im.GetContentRegionAvail().y - (im.GetFontSize() + 2 * im.GetStyle().FramePadding.y + im.GetStyle().ItemSpacing.y))
if im.BeginChild1("Material Properties##Child", size, true) then
if editor_terrainEditor.getTerrainBlock() and terrainMtlCopyProxy and terrainMtlProxy then
@/lua/ge/extensions/editor/sitesEditor/sortedListDisplay.lua
im.BeginChild1(self.key, im.ImVec2(180 * im.uiscale[0], 0), im.WindowFlags_ChildWindow)
if editor.uiInputText('', self.search) then
im.SameLine()
im.BeginChild1("currentElement", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
if self.index then
local removeTag
im.BeginChild1("##child1", im.ImVec2(0, 22), false)
im.SetCursorPosY(im.GetCursorPosY() + 2)
im.EndChild()
im.BeginChild1(t, im.ImVec2(0, 22), false)
im.SetCursorPosY(im.GetCursorPosY() + 2)
@/lua/ge/extensions/editor/camPathEditor.lua
-- Marker list with table
im.BeginChild1('markers', im.ImVec2(markerListWidth, listHeight), im.WindowFlags_ChildWindow)
-- Add button at top
im.SameLine()
im.BeginChild1('currentMarkerInner', im.ImVec2(detailsWidth, listHeight), im.WindowFlags_ChildWindow)
end
im.BeginChild1('replay', im.ImVec2(0, im.GetFontSize() * h * im.uiscale[0]), im.WindowFlags_ChildWindow)
linkReplay[0] = M.currentPath.replay == '' or M.currentPath.replay ~= nil and replayExists(M.currentPath.replay)
im.BeginChild1('M.currentPath', im.ImVec2(0, im.GetFontSize() * 6 * im.uiscale[0]), im.WindowFlags_ChildWindow)
im.Text('Current Path')
@/lua/ge/extensions/editor/raceEditor/segments.lua
local avail = im.GetContentRegionAvail()
im.BeginChild1("segments", im.ImVec2(125 * im.uiscale[0], 0), im.WindowFlags_ChildWindow)
for i, segment in ipairs(self.path.segments.sorted) do
im.SameLine()
im.BeginChild1("currentSegment", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
if self.index then
end
im.BeginChild1("currentSegmentInner", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
local editEnded = im.BoolPtr(false)
if segment.mode == 'capsules' then
im.BeginChild1("capsules", im.ImVec2(125 * im.uiscale[0], 0), im.WindowFlags_ChildWindow)
for i, cap in ipairs(segment.capsulePoints) do
im.SameLine()
im.BeginChild1("currentCapsule", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
local cap = segment.capsulePoints[self.capsuleIndex]
@/lua/ge/extensions/gameplay/drag/debug.lua
im.BeginChild1("vehicle select", im.GetContentRegionAvail(), 1)
im.Text("Vehicle Settings")
im.BeginChild1("vehicle detail", im.GetContentRegionAvail(), 1)
if selectedVehicle and dragData.racers[selectedVehicle] then
@/lua/ge/extensions/editor/preferences.lua
-- the left side list of pref pages
imgui.BeginChild1("Preferences Pages", imgui.ImVec2(imgui.uiscale[0] * 160, -bottom_margin), true)
pageListGui(preferencesPages)
imgui.BeginChild1("Preferences Page", imgui.ImVec2(0, -bottom_margin), true)
if editor.uiInputSearchTextFilter("##prefItemNameSearchFilter", prefItemNameFilter, 200, nil, editEnded) then
-- the current pref page
imgui.BeginChild1("Preferences Page Items")
if not imgui.ImGuiTextFilter_IsActive(prefItemNameFilter) then
imgui.BeginChild1("Preferences Actions") -- Bottom area for common action buttons
-- Right alignment
@/lua/ge/extensions/editor/flowgraph/history.lua
local avail = im.GetContentRegionAvail()
im.BeginChild1("historyChild", im.ImVec2(avail.x-1, avail.y - 5))
im.Columns(2)
@/lua/ge/extensions/editor/flowgraph/variables.lua
local flags = (not variable.expanded) and bit.bor(im.WindowFlags_NoScrollbar, im.WindowFlags_NoScrollWithMouse) or nil
im.BeginChild1(target.id..varName..dumps(global), im.ImVec2(im.GetContentRegionAvailWidth(), scale*(variable.expanded and 68 or 24)+16), true, flags)
im.PushStyleVar2(im.StyleVar_FramePadding, im.ImVec2(0, 0))
im.BeginChild1(target.id..varName..dumps(global).."clicker", im.ImVec2(im.GetContentRegionAvailWidth()-90*scale, endPos.y-prePos.y+3))
im.EndChild()
@/lua/ge/extensions/editor/crawlEditor.lua
im.Separator()
if im.BeginChild1("LeftPanel", im.ImVec2(im.GetWindowWidth() * 0.4, 0), true) then
if im.BeginChild1("RightPanel", im.ImVec2(0, 0), true) then
im.Text("Details")
@/lua/ge/extensions/editor/util/plotHelperUtil.lua
self.innerSize = im.ImVec2(width-2*borderSize, height-2*borderSize)
im.BeginChild1('curve_'..self.id, self.size)
self.dl = im.GetWindowDrawList()
@/lua/ge/extensions/editor/dataBlockEditor.lua
if im.BeginTabItem("Existing") then
im.BeginChild1("Existing_Child", im.ImVec2(0, 0), false)
inExistingTab = true
if im.BeginTabItem("New") then
im.BeginChild1("New_Child", im.ImVec2(0, 0), false)
for className, _ in pairs(dataBlockClasses) do
@/lua/ge/extensions/editor/meshSpline.lua
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(4, 8))
if im.BeginChild1("TabContentChild", im.ImVec2(0, 0), true) then
if selectedTab == 0 then -- Components tab.
@/lua/ge/extensions/editor/decalEditor.lua
im.BeginChild1("Instances", im.ImVec2(0,300), true)
for _, templateName in ipairs(templateNamesSorted) do
end
im.BeginChild1("Instance Properties", im.ImVec2(0,0), true)
im.Text("Instance Properties")
@/lua/ge/extensions/flowgraph/nodes/input/blacklistAction.lua
self:drawSearchInput()
im.BeginChild1("all", im.ImVec2(im.GetContentRegionAvailWidth(), 400 * editor.getPreference("ui.general.scale")))
if self.search.matchString ~= "" then
for _, result in ipairs(self.results) do
im.BeginChild1(result.id, im.ImVec2(im.GetContentRegionAvailWidth(), 22 * editor.getPreference("ui.general.scale") + 2))
im.Checkbox("##cba" .. result.id, im.BoolPtr(listKeys[result.id] or false))
for i, name in ipairs(allCategories[cat]) do
im.BeginChild1(name, im.ImVec2(im.GetContentRegionAvailWidth(), 22 * editor.getPreference("ui.general.scale") + 2))
local clk = im.Checkbox("##cba" .. name .. "-" .. cat .. "-" .. self.id, im.BoolPtr(listKeys[name] or false))
@/lua/ge/extensions/editor/missionEditor.lua
local scale = editor.getPreference("ui.general.scale")
im.BeginChild1("createNewMissionPopupChild", im.ImVec2(350*scale,180*scale), 0)
im.HeaderText("Create New Mission")
local areaWidth = missionListWidth
im.BeginChild1("Search",im.ImVec2(areaWidth, filterHeight+2), false)
if im.BeginPopup("MissionEditorGroupFilter") then
im.BeginChild1("MissionEditorGroupFilterChild", im.ImVec2(300,200))
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.EndChild()
im.BeginChild1("missionList", im.ImVec2(areaWidth, -1), true)
-- header
local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x + 15
im.BeginChild1("missionDetails", im.ImVec2(areaWidth, winHeight-45), false, 0)
local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x + 15
im.BeginChild1("missionDetails", im.ImVec2(areaWidth, winHeight-45), false, 0)
if shownMission then
local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x + 15
im.BeginChild1("missionDetails", im.ImVec2(areaWidth, winHeight-45), false, 0)
if shownMission then
local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x
im.BeginChild1(tab.tabName.."windowhild", im.ImVec2(areaWidth, winHeight-45), false, 0)
if shownMission then
@/lua/ge/extensions/editor/roadTemplateEditor.lua
if editor.beginWindow(toolWindowName, "Road Templates") then
im.BeginChild1("templates", im.ImVec2(0, im.GetFontSize() * 7.2), true)
im.Text("Road Templates")
im.BeginChild1("decalroads", im.ImVec2(0, im.GetFontSize() * 10), true)
im.Text("Template Decal Roads")
im.BeginChild1("decorations", im.ImVec2(0, im.GetFontSize() * 10), true)
im.Text("Template Decorations")
im.BeginChild1("decals", im.ImVec2(0, im.GetFontSize() * 10), true)
im.Text("Template Random Decals")
@/lua/ge/extensions/editor/flowgraph/welcome.lua
im.BeginGroup()
--im.BeginChild1("##" .. txt, im.ImVec2(im.GetContentRegionAvailWidth(), lowerTxt and 80 or 30), nil, im.WindowFlags_NoScrollWithMouse)
im.TextColored(col, txt)
function C:drawLeftColumn()
im.BeginChild1("##leftColumn", im.ImVec2(450, 820), nil, im.WindowFlags_NoScrollWithMouse)
im.Dummy(im.ImVec2(0, 10))
function C:drawRightColumn()
--im.BeginChild1("##welcomeContentColumn2", im.ImVec2(0, 0), nil, im.WindowFlags_NoScrollWithMouse)
@/lua/ge/extensions/flowgraph/nodes/util/timedSequence.lua
end
--im.BeginChild1("child",im.ImVec2(self.sliderWidth[0],50), true)
end
@/lua/ge/extensions/editor/fileDialog.lua
im.BeginChild1("##GuiChild1", im.ImVec2(0, - im.GetTextLineHeightWithSpacing() - im.GetStyle().ItemSpacing.y), true)
if withPreview == true and selectedFile then
im.BeginChild1("FileDialogLeftColumn")
im.BeginChild1("FileList")
im.BeginChild1("RightColumn")
basicFilePreviewGui()
@/lua/common/extensions/ui/flowgraph/editor.lua
im.BeginChild1(self._imguiId, im.ImVec2(-1, height), false, im.WindowFlags_NoScrollWithMouse)
if self.models == nil or next(self.models) == nil then
if im.BeginPopup("vehicleSearchUtil"..self._imguiId) then
im.BeginChild1("vehicleSearchUtilChild"..self._imguiId, im.ImVec2(350,250))
local searchChanged = false
if vehSearchResults then
im.BeginChild1("Scroller", im.GetContentRegionAvail())
for _, result in ipairs(vehSearchResults) do
for _, result in ipairs(vehSearchResults) do
im.BeginChild1(result.id, im.ImVec2(im.GetContentRegionAvailWidth(), 20 * editor.getPreference("ui.general.scale")))
local cPos = im.GetCursorScreenPos()
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua
im.BeginChild1("BrowserFontsChild", im.ImVec2(0, im.GetContentRegionAvail().y - math.ceil(im.GetFontSize()) - im.GetStyle().ItemSpacing.y), true)
if im.BeginTabItem("Atlas##FontPreviewTab") then
im.BeginChild1("FontPreviewAtlasChild")
helper.imageWidget(string.format("%s%s/%s%s", destinationDirectory, getSelectedFontAtlasName(), getSelectedFontAtlasName(), "_monospaced.png"), im.GetContentRegionAvailWidth() - 2 * im.GetStyle().FramePadding.x)
end
im.BeginChild1("FontPreviewGlyphsChild")
local glyphPreviewSize = editor.getPreference("dynamicDecalsTool.fonts.glyphPreviewSizeInPreviewWindow")
if header.sdf and im.BeginTabItem("Atlas SDF##FontPreviewTab") then
im.BeginChild1("FontPreviewSDFAtlasChild")
helper.imageWidget(string.format("%s%s/%s%s", destinationDirectory, getSelectedFontAtlasName(), getSelectedFontAtlasName(), "_sdf_monospaced.png"), im.GetContentRegionAvailWidth() - 2 * im.GetStyle().FramePadding.x)
end
im.BeginChild1("FontPreviewGlyphsChild")
local glyphPreviewSize = editor.getPreference("dynamicDecalsTool.fonts.glyphPreviewSizeInPreviewWindow")
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.End() imgui.End() end
function M.BeginChild1(string_str_id, ImVec2_size, bool_border, ImGuiWindowFlags_flags)
if ImVec2_size == nil then ImVec2_size = M.ImVec2(0,0) end
if string_str_id == nil then log("E", "", "Parameter 'string_str_id' of function 'BeginChild1' cannot be nil, as the c type is 'const char *'") ; return end
return imgui.BeginChild1(string_str_id, ImVec2_size, bool_border, ImGuiWindowFlags_flags)
end
@/lua/ge/extensions/flowgraph/nodes/vehicle/replay.lua
im.Text(tostring(self.stopReplay))
--im.BeginChild1("child",im.ImVec2(self.sliderWidth[0],50), true)
end
@/lua/ge/extensions/editor/util/vehicleSelectUtil.lua
im.BeginChild1("##vehicleSelector"..dumps(self.id), im.ImVec2(im.GetContentRegionAvailWidth(), elemCount * elemHeight + elemPadding))
@/lua/ge/extensions/gameplay/drift/stuntZones.lua
if im.BeginChild1("Stunt zones", im.ImVec2(im.GetWindowContentRegionWidth(), 150)) then
for _, stuntZone in ipairs(stuntZones) do
@/lua/ge/extensions/editor/meshEditor.lua
if selectedMesh and (not tableIsEmpty(selectedNodes)) and selectedMesh:getNodeCount() > 0 then
im.BeginChild1("node", im.ImVec2(0, 150), true)
im.Text("Node Properties")
@/lua/ge/extensions/editor/sidewalkSpline.lua
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(4, 8))
if im.BeginChild1("TabContentChild", im.ImVec2(0, 0), true) then
if selectedTab == 0 then -- Sidewalk Kit tab.
@/lua/ge/extensions/editor/resourceChecker.lua
im.Text("Manage duplicates of selected material")
im.BeginChild1("##duplicateChild", im.ImVec2(0, windowSize.y-60* im.uiscale[0], false, im.WindowFlags_ChildWindow))
local fontPushed = im.PushFont3("robotomono_regular")
im.Separator()
im.BeginChild1("##childResults", im.ImVec2(0, windowSize.y-textSize.y-(im.GetFontSize()*3.5)-30), false, im.WindowFlags_ChildWindow+im.WindowFlags_HorizontalScrollbar)
local fontPushed = im.PushFont3("robotomono_regular")
if im.BeginChild1("asset_tree", im.ImVec2(0, topH), true) then
_drawTreeList(root, (resExplorer[3] and resExplorer[3].diskBytes) or root.bytes or 1)
if im.BeginChild1("treemap_canvas", im.ImVec2(0, bottomH), true) then
_drawTreemapGrid(root)
@/lua/ge/extensions/editor/bulkRename.lua
imgui.BeginChild1("TableChild", imgui.ImVec2(0, 0), 0)
if imgui.BeginTable("RenamePreviewTable", 4, bit.bor(imgui.TableFlags_Borders, imgui.TableFlags_RowBg, imgui.TableFlags_ScrollY)) then
@/lua/ge/extensions/editor/flowgraph/properties.lua
elseif type == 'table' then
-- im.BeginChild1('##innertable' .. path, im.ImVec2(0, 0))
-- self:_drawDataTable(path, cdata, v, savePath, saveCallback, true)
if im.BeginPopup("FGIconSelector") then
im.BeginChild1("fgSelIcon", im.ImVec2(250*im.uiscale[0],400*im.uiscale[0]))
editor_iconOverview.drawContent(function(v)
@/lua/ge/extensions/editor/util/editorElementHelper.lua
end
im.BeginChild1("LB",im.ImVec2(im.GetContentRegionAvailWidth()*0.66, 62), true)
im.Columns(3)
@/lua/ge/extensions/editor/missionEditor/genericTypeData.lua
if mgr and self.mission then
im.BeginChild1("mfgvarContainter", im.ImVec2(350*scale,350*scale))
im.Text("Project: " .. mgr.name)
@/lua/ge/extensions/editor/aiTests.lua
im.BeginChild1("AI Test Vehicles", im.ImVec2(150 * im.uiscale[0], 0), im.WindowFlags_ChildWindow)
im.BeginChild1("AI Test Parameters", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/decal.lua
if im.TreeNode1(string.format("Meshes##%s", widgetId)) then
if im.BeginChild1(string.format("MeshesChild_%s", widgetId), im.ImVec2(0, 240), true) then
local i = 1
@/lua/ge/extensions/editor/flowgraph/overview.lua
im.TextColored(im.ImVec4(0.8,0.8,1,1), "Graphs")
im.BeginChild1("overviewchild###")
-- GRAPHS
@/lua/ge/extensions/gameplay/drift/quickMessages.lua
im.Text("Available quick messages : ")
if im.BeginChild1("Available quick messages", im.ImVec2(im.GetContentRegionAvailWidth(), 130), true) then
for messageId, data in pairs(quickMessages) do
@/lua/ge/extensions/editor/windows.lua
editor.uiInputSearchTextFilter("##windowsFilter", filter, im.GetContentRegionAvailWidth())
if im.BeginChild1("Windows##Child", nil, true) then
im.Columns(2, "windowsColumns")
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua
im.BeginChild1("BrowserBrushesChild", im.ImVec2(spaceAvailable.x, spaceAvailable.y - (im.GetStyle().ItemSpacing.y + 1 * math.ceil(im.GetFontSize()) + 3)), true)
local thumbnailSize = editor.getPreference("dynamicDecalsTool.textureBrowser.texturePreviewSize")
@/lua/ge/extensions/editor/vehicleEditor/veToolbar.lua
im.PushStyleColor2(im.Col_MenuBarBg, editor.color.transparent.Value)
if im.BeginChild1("vehicleEditorSpecificEditorToolbar", im.ImVec2(width, im.GetFrameHeight()), true, innerToolbarFlags) then
if im.BeginMenuBar() then
im.PushStyleColor2(im.Col_MenuBarBg, editor.color.transparent.Value)
if im.BeginChild1("vehicleEditorSpecificEditorToolbar", im.ImVec2(width - camTodSize, im.GetFrameHeight()), true, innerToolbarFlags) then
if im.BeginMenuBar() then
@/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/util/zoneSelectorUtil.lua
local initialZonesHeight = math.max(150, math.min(availHeight * 0.5, #e.initialZones * 25 + 30))
im.BeginChild1("InitialZonesList"..e._id, im.ImVec2(0, initialZonesHeight), true)
for i, zoneName in ipairs(e.initialZones) do
local destinationZonesHeight = math.max(150, math.min(availHeight * 0.5, #e.destinationZones * 25 + 30))
im.BeginChild1("DestinationZonesList"..e._id, im.ImVec2(0, destinationZonesHeight), true)
for i, zoneName in ipairs(e.destinationZones) do
@/lua/ge/extensions/editor/perfProfiler.lua
if im.BeginPopup("NewRecording") then
im.BeginChild1("rchild",im.ImVec2(500,500))
im.TextWrapped("Start a new Recording")
for _, result in ipairs(results) do
im.BeginChild1(result.id.."child", im.ImVec2(im.GetContentRegionAvailWidth(), 22 * editor.getPreference("ui.general.scale") + 2))
if im.Checkbox("##cba" .. result.id, im.BoolPtr(columns[result.id].enabled or false)) then
for i, column in ipairs(columns) do
im.BeginChild1(i.."child", im.ImVec2(im.GetContentRegionAvailWidth(), 22 * editor.getPreference("ui.general.scale") + 2))
if im.Checkbox("##cbaa" .. i, im.BoolPtr(column.enabled or false)) then
@/lua/ge/extensions/editor/forestEditor.lua
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(0,0))
if im.BeginChild1("MeshPreviewChild", im.ImVec2(size,size), true, im.WindowFlags_NoScrollWithMouse) then
var.meshPreview:ImGui_Image(var.meshPreviewRenderSize[1],var.meshPreviewRenderSize[2])
im.SetColumnWidth(0, 80)
im.BeginChild1("parallaxMappingTextureSetEditor_textureSet_List_Child", nil, true)
im.BeginChild1("parallaxMappingTextureSetEditor_textureSet_TexturePreview_Child", im.ImVec2(0, im.GetContentRegionAvail().y - (math.ceil(im.GetFontSize() + im.GetStyle().ItemSpacing.y * 2))), true)
end
if im.BeginChild1("BrushesChild") then
if var.forestBrushes then
end
if im.BeginChild1("MeshesChild") then
for _, item in ipairs(var.forestItemData) do
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(0,0))
if im.BeginChild1(fieldName .. "MeshPreviewChild", im.ImVec2(size,size), true, im.WindowFlags_NoScrollWithMouse) then
var.meshPreview:ImGui_Image(var.meshPreviewRenderSize[1],var.meshPreviewRenderSize[2])
end
im.BeginChild1(fieldName .. "DataBlockNames", filteredFieldPopupSize)
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(0,0))
if im.BeginChild1(fieldName .. "MeshPreviewChild", im.ImVec2(size,size), true, im.WindowFlags_NoScrollWithMouse) then
var.meshPreview:ImGui_Image(var.meshPreviewRenderSize[1],var.meshPreviewRenderSize[2])
@/lua/ge/extensions/editor/api/valueInspector.lua
end
imgui.BeginChild1(fieldNameId .. "SetObjNames")
end
imgui.BeginChild1(fieldNameId .. "SetObjNames")
--TODO: sort by name
end
imgui.BeginChild1(fieldNameId .. "DataBlockNames", filteredFieldPopupSize)
@/lua/ge/extensions/flowgraph/nodes/states/stateNode.lua
--im.BeginChild1("child",im.ImVec2(self.sliderWidth[0],50), true)
if self.targetGraph and self.targetGraph.state and self.targetGraph.state.active then
@/lua/ge/extensions/editor/dynamicDecals/notification.lua
local style = im.GetStyle()
im.BeginChild1("DynamicDecals_Notification_NotificationsChild", im.ImVec2(0, im.GetContentRegionAvail().y - (math.ceil(im.GetFontSize()) + 2*style.ItemSpacing.y)), true)
for sectionName, sectionData in pairs(notifications) do
@/lua/ge/extensions/editor/biomeTool.lua
imgui.BeginChild1("MainPanel#"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(imgui.GetStyle().FramePadding.y)), true)
imgui.BeginChild1("LayerActionsPanel"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, 40 * imgui.uiscale[0]), nil)
imgui.BeginChild1("MainPanel#"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(imgui.GetStyle().FramePadding.y)), true)
imgui.BeginChild1("LayerActionsPanel"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, 40 * imgui.uiscale[0]), nil)
imgui.SameLine()
local panelWidth = imgui.GetContentRegionAvail().x
imgui.BeginChild1("LayerMainPanel##"..tostring(layer.layerType)..tostring(layer.layerID), imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y), nil)
imgui.SetCursorPosX(firstWidgetPos)
imgui.BeginChild1("CentralBrushesSelected"..layerType..layerID, imgui.ImVec2(180, 100), imgui.WindowFlags_ChildWindow)
imgui.SetCursorPosX(firstWidgetPos)
imgui.BeginChild1("FalloffBrushesSelected"..layerType..layerID, imgui.ImVec2(180, 100), imgui.WindowFlags_ChildWindow)
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.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
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)
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
imgui.SetCursorPosX(firstWidgetPos)
imgui.BeginChild1("EdgeBrushesSelected"..layerType..layerID, imgui.ImVec2(180, 100), imgui.WindowFlags_ChildWindow)
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.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
local panelHeight = math.max(imgui.GetContentRegionAvail().y, 200)
imgui.BeginChild1("AreasList##"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, panelHeight - 60), imgui.WindowFlags_ChildWindow)
local lassoAreas = getAllLassoAreas(layer.layerID)
local arealistHeight = math.max(imgui.GetContentRegionAvail().y, 200)
imgui.BeginChild1("AreasListContainer##"..layer.layerType..layer.layerID, imgui.ImVec2(300, arealistHeight - 10), imgui.WindowFlags_ChildWindow)
imgui.Text("Lasso Areas")
local layers = getLayersWithType(layerType)
imgui.BeginChild1("LayersList", imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y - 4), imgui.WindowFlags_ChildWindow)
for _, layer in ipairs(layers) do
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainToolbar", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), levelBiomeToolbarHeight), true)
if imgui.Button("(Re)generate all layers", buttonSize) then
local function drawLevelBiomeLayersList()
imgui.BeginChild1("LevelBiomeLayers", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), levelBiomeLevelsListHeight), true)
imgui.Text("Terrain Layers:")
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainPanelLevelBiome", imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(buttonSize.y+imgui.GetStyle().FramePadding.y*6)), true)
local layers = getLayersWithType(layerType_enum.terrain)
local function drawLevelBiomeLayerProperties()
imgui.BeginChild1("LevelBiomeLayerProps", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), levelBiomeLevelPropsHeight), true)
local selectedLayer = getSelectedLayer(layerType_enum.terrain)
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainToolbar", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), biomeAreasToolbarHeight), true)
if imgui.Button("(Re)generate all layers", buttonSize) then
local function drawBiomeAreasLayersList()
imgui.BeginChild1("AreaLayers", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), biomeAreasLevelsListHeight), true)
imgui.Text("Area Layers:")
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainPanelAL", imgui.ImVec2(imgui.GetContentRegionAvail().x, imgui.GetContentRegionAvail().y-(buttonSize.y+imgui.GetStyle().FramePadding.y*6)), true)
imgui.BeginChild1("BiomeAreaLayerProps", imgui.ImVec2((imgui.GetContentRegionAvail().x - 2), biomeAreasLevelPropsHeight), true)
local selectedLayer = getSelectedLayer(layerType_enum.area)
local buttonSize = imgui.ImVec2(150, 30)
imgui.BeginChild1("MainToolbar", imgui.ImVec2((imgui.GetContentRegionAvail().x - 6), 50), true)
if imgui.Button("Open Project", buttonSize) then
var.selectedTab = enum_tabType.LevelBiome
if imgui.BeginChild1("LevelBiomeChild", imgui.ImVec2((imgui.GetContentRegionAvail().x - 6), (imgui.GetContentRegionAvail().y - 6)), true) then
drawLevelBiomeLayersList()
var.selectedTab = enum_tabType.BiomeAreas
if imgui.BeginChild1("BiomeAreasChild", imgui.ImVec2((imgui.GetContentRegionAvail().x - 6), (imgui.GetContentRegionAvail().y - 6)), true) then
drawBiomeAreasLayersList()
@/lua/ge/extensions/editor/mainToolbar.lua
im.BeginChild1("EditModeSets", im.ImVec2(200, 400), true)
for i, set in ipairs(editModeSets) do
end
im.BeginChild1("AvailableModes", im.ImVec2(250, 320), true)
end
im.BeginChild1("SelectedModes", im.ImVec2(250, 320), true)
-- Don't show available modes for Default Set
@/lua/ge/extensions/career/modules/fuel.lua
for index, tankData in ipairs(fuelData) do
if imgui.BeginChild1("Tank " .. index, imgui.ImVec2(0, 150), true) then
imgui.Text("Tank " .. index)
@/lua/ge/extensions/editor/util/searchUtil.lua
im.BeginChild1("##"..string_label.."childCombo", im.ImVec2(im.GetContentRegionAvailWidth(), 140 * (editor and editor.getPreference and editor.getPreference("ui.general.scale") or 1)) )
for _, result in ipairs(self.filtered) do
@/lua/ge/extensions/editor/gen/ui.lua
-- 320
im.BeginChild1('CONTROLS', im.ImVec2(im.GetWindowWidth(), im.GetWindowHeight() - vspace), false)
-- im.Indent(8)
@/lua/ge/extensions/editor/util/vehicleFilterUtil.lua
local configListHeight = math.max(200, math.min(availHeight * 0.6, #finalConfigs * 25 + 30))
im.BeginChild1("VehicleFilterConfigs"..e._id, im.ImVec2(0, configListHeight), true)
@/lua/ge/extensions/gameplay/drift/drift.lua
plotHelperUtil = plotHelperUtil or require('/lua/ge/extensions/editor/util/plotHelperUtil')()
im.BeginChild1("Debug Graph", im.ImVec2(im.GetContentRegionAvailWidth(), 400), true)
for _, historyData in pairs(debugHistories) do
@/lua/ge/extensions/editor/dynamicDecals/settings.lua
editor.uiInputSearchTextFilter("Materials Filter", materialsFilter, im.GetContentRegionAvailWidth())
im.BeginChild1(string.format("MaterialsChild_VehicleLiveryEditor_Settings_%s", widgetId), im.ImVec2(0, 280), true)
editor.uiInputSearchTextFilter(string.format("Meshes Filter##%s", widgetId), meshesFilter, im.GetContentRegionAvailWidth())
im.BeginChild1(string.format("MeshesChild_VehicleLiveryEditor_Settings_%s", widgetId), im.ImVec2(0, 280), true)
local i = 0
@/lua/ge/extensions/editor/roadEditor.lua
if (isAnyNodeSelected()) then
im.BeginChild1("node", im.ImVec2(0, 130), true)
im.Text("Node Properties")
if not tableIsEmpty(selectedRoadsIds) then
im.BeginChild1("RoadOps", im.ImVec2(0, 130), true)
im.Text("Road Operations")
@/lua/ge/extensions/editor/sitesEditor/tags.lua
function C:drawGeneralInfo()
im.BeginChild1("Tags", im.ImVec2(125 * im.uiscale[0], 0 ), im.WindowFlags_ChildWindow)
for i, tag in ipairs(self.sortedTags) do
im.SameLine()
im.BeginChild1("currentElement", im.ImVec2(0, 0 ), im.WindowFlags_ChildWindow)
im.NextColumn()
im.BeginChild1("hasTags", nil, im.WindowFlags_ChildWindow)
local flip = nil
im.NextColumn()
im.BeginChild1("NoTags", nil, im.WindowFlags_ChildWindow)
for i, elem in ipairs(self.noTag) do
@/lua/ge/extensions/editor/barriersEditor.lua
im.NextColumn()
im.BeginChild1("hasTags", nil, im.WindowFlags_ChildWindow)
local flip = nil
im.NextColumn()
im.BeginChild1("NoTags", nil, im.WindowFlags_ChildWindow)
for i, elem in ipairs(prefabList) do
@/lua/ge/extensions/editor/objectTool.lua
imgui.Separator()
imgui.BeginChild1("icon object classes", imgui.ImVec2(0, 200))
for k = 1, tableSize(classes) do
@/lua/ge/extensions/editor/dynamicDecals/docs.lua
-- TABLE OF CONTENTS
if im.BeginChild1("TreeChild", nil, true) then
if editor.uiInputSearchTextFilter("docsfilter", filter, im.GetContentRegionAvailWidth()) then
-- DOCS CONTENT
if im.BeginChild1("ContentChild", nil, true) then
if currentSection then
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/linkedSet.lua
im.Dummy(im.ImVec2(0, im.GetStyle().ItemSpacing.y * 2))
if im.BeginChild1("PropertiesDirtyInfoChild", nil, true) then
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
@/lua/ge/extensions/editor/flowgraph/events.lua
im.Columns(1)
im.BeginChild1("eventLogChild", im.ImVec2(avail.x-1, avail.y -24))
@/lua/ge/extensions/flowgraph/nodes/states/transition.lua
im.Text(self.transitionName or "No Transition!")
--im.BeginChild1("child",im.ImVec2(self.sliderWidth[0],50), true)
end
@/lua/ge/extensions/editor/createObjectTool.lua
imgui.BeginChild1("SimObjectClassNames", filteredFieldPopupSize)
if resetScrollY then
@/lua/ge/extensions/editor/dynamicDecals/history.lua
im.BeginChild1(string.format("DynamicDecalsHistoryChild%s", guiId), im.ImVec2(0, childHeight), true)
if im.Button("Delete All History##DynamicDecalsTool") then history:clear() end
if im.Button("Undo Selected##DynamicDecalsTool") then history:undo(tableSize(history.undoStack) - undoStackSelectedIndex + 1) end
im.BeginChild1("undos", im.ImVec2(0, im.GetContentRegionAvail().y))
for k = tableSize(history.undoStack), 1, -1 do
if im.Button("Redo Selected##DynamicDecalsTool") then history:redo(tableSize(history.redoStack) - redoStackSelectedIndex + 1) end
im.BeginChild1("redos", im.ImVec2(0, im.GetContentRegionAvail().y))
for k = tableSize(history.redoStack), 1, -1 do
@/lua/ge/extensions/editor/rallyEditor/pacenotes.lua
-- im.HeaderText("Selected Pacenote")
-- im.BeginChild1("pacenotes", im.ImVec2(270*im.uiscale[0], 0), im.WindowFlags_ChildWindow)
im.BeginChild1("pacenotes", nil, im.WindowFlags_ChildWindow)
-- im.BeginChild1("pacenotes", im.ImVec2(270*im.uiscale[0], 0), im.WindowFlags_ChildWindow)
im.BeginChild1("pacenotes", nil, im.WindowFlags_ChildWindow)
-- im.BeginChild1("pacenotes", nil, im.WindowFlags_ChildWindow)
im.BeginChild1("pacenotes", nil, im.WindowFlags_ChildWindow)
-- im.BeginChild1("pacenotes", nil, im.WindowFlags_ChildWindow)
for i, note in ipairs(notebook.pacenotes.sorted) do
@/lua/ge/extensions/gameplay/util/crashDetection.lua
if graphGroups[graphNum] and crashData.debug.graphEnabled[graphNum][0] then
im.BeginChild1("Graph " .. graphNum .. "##" .. selectedVehId, im.ImVec2(im.GetContentRegionAvailWidth(), 300), true)
@/lua/ge/extensions/editor/decalSpline.lua
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(4, 8))
im.BeginChild1(childName, im.ImVec2(0, 350), true)
if compIdx == 1 then
@/lua/ge/extensions/editor/assetBrowser.lua
local function treeViewMainPanel()
if im.BeginChild1("File Tree Child", nil, true) then
if var.treeViewScrollPos then
else
if im.BeginChild1("Child_" .. dir.path .. "_" .. dir.name, childSize, true, im.flags(im.WindowFlags_NoScrollWithMouse)) then
-- icon size should depend on child size and is the minimum between
else
if im.BeginChild1("AssetViewTextureSetChild_" .. set.name .. "_" .. set.path, childSize, true, im.flags(im.WindowFlags_NoScrollWithMouse, im.WindowFlags_NoScrollbar)) then
-- dragDropSource(file, var.windowPos)
if im.BeginChild1("AssetViewChild_" .. material.name .. "_" .. material.id, childSize, true, im.flags(im.WindowFlags_NoScrollWithMouse, im.WindowFlags_NoScrollbar)) then
icon(material, im.ImVec2(var.options.thumbnailSize, var.options.thumbnailSize), nil)
else
if im.BeginChild1("AssetViewChild_" .. file.path .. "_" .. file.fullFileName, childSize, true, im.flags(im.WindowFlags_NoScrollWithMouse, im.WindowFlags_NoScrollbar)) then
dragDropSource(file, var.windowPos)
var.assetViewMainPanelHeight = var.windowSize.y - (2*var.menuBarHeight - 6 + 3*var.style.WindowPadding.y + 1*var.style.FramePadding.y +2*var.style.ChildBorderSize + var.inputFieldSize)
if im.BeginChild1("Assets##AssetMainPanel", im.ImVec2(0, var.assetViewMainPanelHeight), true, im.WindowFlags_NoScrollWithMouse) then
var.assetViewScrollMax = im.GetScrollMaxY()
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(0,0))
if im.BeginChild1("MeshPreviewChild", im.ImVec2(size,size), true, im.WindowFlags_NoScrollWithMouse) then
var.meshPreview:ImGui_Image(var.meshPreviewRenderSize[1],var.meshPreviewRenderSize[2])
im.BeginChild1("abPrefs_directoriesToLoadChild", im.ImVec2(0, 250))
table.sort(sortedTbl)
im.BeginChild1("abTypeColorsTblChild", im.ImVec2(0, 300))
im.Columns(2)
@/lua/common/extensions/ui/imguiUtils.lua
--[[if flag then
if imgui.BeginChild1("plot", imgui.ImVec2(0,130), true) then
imgui.PlotLines1("",dataPlot, dataPlotLen, offset, "", FLT_MAX, FLT_MAX, imgui.ImVec2(300, 100))
@/lua/ge/extensions/editor/flowgraph/main.lua
-- main dockspace for graph tabs - so they always are connected to the menu-"window"
im.BeginChild1("MainPanelChild", nil, false)
if not self.fgEditor.dockspaces["NE_Main_Dockspace"] then self.fgEditor.dockspaces["NE_Main_Dockspace"] = im.GetID1("NE_Main_Dockspace") end
im.PushStyleColor2(im.Col_Border, clr)
--im.BeginChild1("Borders",nil, 1)
im.PushStyleColor2(im.Col_Border, im.ImVec4(1.0, 1.0, 1.0, 0.25))
im.BeginChild1("##createnodespopup", im.ImVec2(300 * editor.getPreference("ui.general.scale"), 300 * editor.getPreference("ui.general.scale")), false)
if self.mgr.allowEditing then
@/lua/ge/extensions/editor/forestView.lua
if editor.beginWindow(toolWindowName, "Forest View") then
imgui.BeginChild1("##scrollingregion")
imgui.Columns(1)