TreeNodeEx1
Definition
-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:720
function M.TreeNodeEx1(string_label, ImGuiTreeNodeFlags_flags)
if ImGuiTreeNodeFlags_flags == nil then ImGuiTreeNodeFlags_flags = 0 end
if string_label == nil then log("E", "", "Parameter 'string_label' of function 'TreeNodeEx1' cannot be nil, as the c type is 'const char *'") ; return end
return imgui.TreeNodeEx1(string_label, ImGuiTreeNodeFlags_flags)
end
Callers
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua
local imageWidth = im.GetContentRegionAvailWidth() / 2 > 256 and 256 or im.GetContentRegionAvailWidth() / 2
if im.TreeNodeEx1("properties##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.Columns(2, "InspectorGuiBrush_PropertiesColumns")
end
if im.TreeNodeEx1("textures##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
if im.TreeNodeEx1("color##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
if im.TreeNodeEx1("textures##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
if im.TreeNodeEx1("color##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("texture path:")
end
if im.TreeNodeEx1("normal##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("texture path:")
end
if im.TreeNodeEx1("metallic##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("texture path:")
end
if im.TreeNodeEx1("roughness##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("texture path:")
end
if im.TreeNodeEx1("alpha mask##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("texture path:")
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
im.BeginChild1("ObstacleChild", im.ImVec2(0,430), true)
if im.TreeNodeEx1('Obstacle '..activeCount,im.TreeNodeFlags_DefaultOpen) then
name = obstaclesTbl[o.value[0]+1]
@/lua/ge/extensions/editor/resourceChecker.lua
local open = false
if n.isDir then open = im.TreeNodeEx1(n.path, flags, label) else im.TreeNodeEx1(n.path, flags, label) end
if im.IsItemClicked(0) then assetTreemapState.selectedPath = n.path end
local open = false
if n.isDir then open = im.TreeNodeEx1(n.path, flags, label) else im.TreeNodeEx1(n.path, flags, label) end
if im.IsItemClicked(0) then assetTreemapState.selectedPath = n.path end
@/lua/ge/extensions/editor/extensionsDebug.lua
for _,k in pairs(sortedKeys) do
if im.TreeNodeEx1(k) then
if not filter[0] then
@/lua/ge/extensions/editor/dataBlockEditor.lua
end
im.TreeNodeEx1(dataBlock:__tostring() .. (editor.isDataBlockDirty(dataBlock) and "*" or ""), flags)
im.TreePop()
for className, _ in pairs(dataBlockClasses) do
im.TreeNodeEx1(className, bit.bor(im.TreeNodeFlags_Leaf))
im.TreePop()
@/lua/ge/extensions/core/vehicleTriggers.lua
local open = im.TreeNodeEx1("Vehicle " .. tostring(vehId) .. '##vehicle' .. tostring(vehId))
im.SameLine()
local triggerCount = vData.vdata.maxIDs and vData.vdata.maxIDs.triggers or 0
local open2 = im.TreeNodeEx1("Triggers##triggers"..tostring(vehId))
im.SameLine()
local eventsCount = vData.vdata.maxIDs and vData.vdata.maxIDs.events or 0
local open3 = im.TreeNodeEx1("Events##Events"..tostring(vehId))
im.SameLine()
local eventsCount = vData.vdata.maxIDs and vData.vdata.maxIDs.triggerEventLinksDict or 0
local open4 = im.TreeNodeEx1("TriggerEventLinks##TriggerEventLinks"..'_'..tostring(vehId))
im.SameLine()
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veJBeamPicker.lua
if im.TreeNodeEx1("#" .. pickedNodesKey .. ": " .. dispText .. "##" .. nodeID .. "_pickedNodesData") then
if im.TreeNodeEx1("Static Data##" .. nodeID .. "_pickedNodesData") then
if im.TreeNodeEx1("#" .. pickedNodesKey .. ": " .. dispText .. "##" .. nodeID .. "_pickedNodesData") then
if im.TreeNodeEx1("Static Data##" .. nodeID .. "_pickedNodesData") then
imguiUtils.addRecursiveTreeTable(node, '')
if im.TreeNodeEx1("Live Data##" .. nodeID .. "_pickedNodesData") then
im.Text("Average over last " .. plotLen .. " frames")
if im.TreeNodeEx1("#" .. pickedBeamsKey .. ": " .. dispText .. "##_pickedBeamsData") then
if im.TreeNodeEx1("Static Data##" .. beamID .. "_pickedBeamsData") then
if im.TreeNodeEx1("#" .. pickedBeamsKey .. ": " .. dispText .. "##_pickedBeamsData") then
if im.TreeNodeEx1("Static Data##" .. beamID .. "_pickedBeamsData") then
imguiUtils.addRecursiveTreeTable(beam, '')
if im.TreeNodeEx1("Live Data##" .. beamID .. "_pickedBeamsData") then
im.Text("Average over last " .. plotLen .. " frames")
@/lua/ge/extensions/editor/shapeEditor.lua
else
if im.TreeNodeEx1(tostring(k), im.TreeNodeFlags_DefaultOpen) then
displayTree(v)
@/lua/ge/extensions/editor/terrainEditor.lua
if terrainBlock and terrainBlock:getField('materialTextureSet', 0) == "" then
if im.TreeNodeEx1("Material Preview", im.TreeNodeFlags_DefaultOpen) then
local size = im.GetContentRegionAvailWidth()
if im.TreeNodeEx1("Material Selector", im.TreeNodeFlags_DefaultOpen) then
local cursorPos = im.GetCursorPos()
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
im.SameLine()
if im.TreeNodeEx1(string.format("Layer Mask##%s_%s", layer.uid, guiId)) then
for k, maskLayer in ipairs(layer.mask.layers) do
if layer.children and #layer.children > 0 then
if im.TreeNodeEx1(string.format("Children##%s_%s", layer.uid, guiId), im.TreeNodeFlags_DefaultOpen) then
local function layerIconColorPrefGui()
if im.TreeNodeEx1("Layer Icon Colors", im.TreeNodeFlags_DefaultOpen) then
local data = editor.getPreference("dynamicDecalsTool.layerStack.layerTypeIconColor")
@/lua/ge/extensions/editor/assetBrowser.lua
im.Columns(1)
if im.TreeNodeEx1('data##' .. asset.path, im.TreeNodeFlags_DefaultOpen) then
imguiUtils.displayKeyValues(asset.inspectorData.data)
im.Separator()
if im.TreeNodeEx1('data##' .. asset.path, im.TreeNodeFlags_DefaultOpen) then
imguiUtils.displayKeyValues(asset.inspectorData.data)
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/decal.lua
local function decalColorSdfPropertiesWidget(guiId)
if im.TreeNodeEx1(string.format("SDF Properties##DecalColor_%s", guiId), im.TreeNodeFlags_DefaultOpen) then
if im.Button("What is SDF?", im.ImVec2(im.GetContentRegionAvailWidth(), 0)) then
if im.TreeNodeEx1("Textures", im.TreeNodeFlags_DefaultOpen) then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veFlexbodyDebug.lua
if im.TreeNodeEx1(flexmesh.mesh .. "##" .. tostring(k)) then
for _, vertData in ipairs(verticesData) do
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/vePowerTrain.lua
if device.name == deviceNames[devicePtr[0]+1] then
if im.TreeNodeEx1("Live Data", im.TreeNodeFlags_DefaultOpen) then
powerTrainUtils.displayLivedata(device)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
if string_label == nil then log("E", "", "Parameter 'string_label' of function 'TreeNodeEx1' cannot be nil, as the c type is 'const char *'") ; return end
return imgui.TreeNodeEx1(string_label, ImGuiTreeNodeFlags_flags)
end
@/lua/ge/extensions/editor/dynamicDecals/settings.lua
if im.TreeNodeEx1(string.format("Materials##VehicleLiveryEditor_Settings_%s", widgetId), im.TreeNodeFlags_DefaultOpen) then
editor.uiInputSearchTextFilter("Materials Filter", materialsFilter, im.GetContentRegionAvailWidth())
if im.TreeNodeEx1(string.format("Meshes##VehicleLiveryEditor_Settings_%s", widgetId), im.TreeNodeFlags_DefaultOpen) then
local sMeshes = api.getShapeMeshes()
im.Separator()
if im.TreeNodeEx1("Texture Resolution", im.TreeNodeFlags_DefaultOpen) then
local textureResolution = api.getTextureResolution()
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
end
if im.TreeNodeEx1(d) then
self:displayDir(self.filteredTemplates[d], menuPos,'nodes',self.displayNode)
end
if im.TreeNodeEx1("Variables") then
if self.setTreeNodesOpen ~= nil then
end
if im.TreeNodeEx1("Project Variables") then
for _, nm in pairs(self.mgr.variables.sortedVariableNames) do
end
if im.TreeNodeEx1("Graph Variables") then
for _, nm in pairs(self.mgr.graph.variables.sortedVariableNames) do
if im.TreeNodeEx1("Macros") then
if not self.filteredMacro then self:filterMacroTemplates(self.pinFiltered) end
end
if im.TreeNodeEx1(d) then
self:displayDir(self.filteredTemplates[d], menuPos,'states',self.displayStateTemplate)
if im.TreeNodeEx1(dirName) then
self:displayDir(dirVal, menuPos,elementFieldName, elementFunction)
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTree.lua
if nodeDefaultOpen then flags = bit.bor(flags, im.TreeNodeFlags_DefaultOpen) end
local open = im.TreeNodeEx1('##treeData' .. tostring(node), flags)
im.SameLine()
im.TableSetColumnIndex(1)
--im.TreeNodeEx1(label .. '##treeData' .. tostring(node), bit.bor(im.TreeNodeFlags_SpanFullWidth, im.TreeNodeFlags_Leaf, im.TreeNodeFlags_NoTreePushOnOpen, im.TreeNodeFlags_Bullet))
im.PushStyleColor2(im.Col_Text, colorElement)
@/lua/ge/extensions/editor/flowgraph/properties.lua
im.PushItemWidth(200)
if im.TreeNodeEx1('Input Pins##propertiesPinIn_' .. "self_id", im.TreeNodeFlags_DefaultOpen) then
--im.Columns(2, 'pinListOut' .. "self_id")
function C:drawCustomOutPins(item)
if im.TreeNodeEx1('Output Pins##propertiesPinOut_' .. "self_id", im.TreeNodeFlags_DefaultOpen) then
--im.Columns(2, 'pinListOut' .. "self_id")
function C:drawInPins(item)
if (not tableIsEmpty(item.pinInLocal)) and item.pinList and im.TreeNodeEx1('Input Pins##propertiesPinIn_' .. "self_id", im.TreeNodeFlags_DefaultOpen) then
im.Columns(2, 'pinListIn' .. "self_id")
function C:drawOutPins(item)
if (not tableIsEmpty(item.pinOut)) and item.pinList and im.TreeNodeEx1('Output Pins##propertiesPinOut_' .. "self_id", im.TreeNodeFlags_DefaultOpen) then
im.Columns(2, 'pinListOut' .. "self_id")
if next(item.data) then
if im.TreeNodeEx1('Data##propertiesData_' .. "self_id", im.TreeNodeFlags_DefaultOpen) then
if not item._cdata then item._cdata = {} end
if type(node.drawCustomProperties) == 'function' then
--if im.TreeNodeEx1("Properties##"..node.id,im.TreeNodeFlags_DefaultOpen) then
im.PushID1('Node_'..node.id .. "_" .. node.mgr.id)
@/lua/ge/extensions/editor/vehicleEditor/api/powerTrainUtils.lua
local function showJbeamData(deviceID)
if im.TreeNodeEx1("All jbeam data",im.TreeNodeFlags_DefaultOpen) then
imguiUtils.addRecursiveTreeTable(vEditor.vdata.powertrain[deviceID], '', false)
@/lua/ge/extensions/editor/flowgraph/overview.lua
local selectThisGraph = false
local treeNodeOpen = im.TreeNodeEx1(txt .. '##'.. graph.id, flags)
@/lua/ge/extensions/editor/gen/ui.lua
--[[
if im.TreeNodeEx1('Shape type', im.TreeNodeFlags_DefaultOpen) then
-- if im.TreeNode1('Building seed') then
--[[
if im.TreeNodeEx1('Shape type', im.TreeNodeFlags_DefaultClosed) then
im.SameLine()
@/lua/ge/extensions/editor/dynamicDecals/textures.lua
for _, tag in ipairs(tags) do
if im.TreeNodeEx1(string.format("%s [%d]##BrowserTagsTab", tag, #tagsWithReferences[tag])) then
drawTextureTiles(tagsWithReferences[tag], nil, true)
for _, file in ipairs(sel) do
if selectedTexturesSidecarContent and selectedTexturesSidecarContent[file] and im.TreeNodeEx1(file .. "##dynamicDecalTextureInspector", im.TreeNodeFlags_DefaultOpen) then
im.Columns(3, "dynDecalTexturesInspectorColumns")
@/lua/ge/extensions/flowgraph/nodes/vehicle/customPartsConfigProvider.lua
end
if im.TreeNodeEx1("Part Config Custom:") then
self._opened = true
@/lua/ge/extensions/editor/materialEditor.lua
for _, tagName in ipairs(sortedTags) do
if im.TreeNodeEx1(tagName) then
for _, material in ipairs(tags[tagName]) do
@/lua/ge/extensions/editor/dynamicDecals/export.lua
local function sectionGui()
if im.TreeNodeEx1("Export Skin", im.TreeNodeFlags_DefaultOpen) then
local vehicleObj = getPlayerVehicle(0)
if im.TreeNodeEx1("Export Textures") then
-- export name
if im.TreeNodeEx1("Export Paths", im.TreeNodeFlags_DefaultOpen) then
for _, exportPath in ipairs(texturesExport_exportPaths) do
@/lua/ge/extensions/editor/decalEditor.lua
local flags = bit.bor(im.TreeNodeFlags_Leaf, isSelected(instance) and im.TreeNodeFlags_Selected or 0)
if im.TreeNodeEx1(instance.id .. " " .. templateName .. '##'.. instance.id, flags) then
im.TreePop()
@/lua/ge/extensions/editor/dynamicDecals/vehicleColorPalette.lua
if im.TreeNodeEx1("one", im.TreeNodeFlags_DefaultOpen) then
im.Columns(2, "ColorPalette1Column")
if im.TreeNodeEx1("two", im.TreeNodeFlags_DefaultOpen) then
im.Columns(2, "ColorPalette2Column")
if im.TreeNodeEx1("three", im.TreeNodeFlags_DefaultOpen) then
im.Columns(2, "ColorPalette3Column")