TreeNode1
Definition
-- @/=[C]:-1
function TreeNode1(...)
Callers
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
-- It works flawlessly when using the button to display the data in the inspector since we create a deepcopy of the object beforehand.
-- if im.TreeNode1("Inspect##" .. k) then
-- inspectLayerGui(layer, "layerStack")
@/lua/ge/extensions/editor/assetBrowser.lua
im.Dummy(im.ImVec2(0, 3*var.style.ItemSpacing.y))
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
end
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.Columns(1)
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.Columns(1)
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.Columns(1)
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.Columns(1)
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.Columns(1)
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
@/lua/ge/extensions/editor/missionEditor/genericTypeData.lua
--im.pushtree
if im.TreeNode1("missingVars##Missing Variables: " .. #self._sortedVars.missing) then
--if im.TreeNode1("missing00") then
if im.TreeNode1("missingVars##Missing Variables: " .. #self._sortedVars.missing) then
--if im.TreeNode1("missing00") then
im.TextWrapped("These Variables are not present in the Flowgraph but in the Mission Editor.")
end
if im.TreeNode1("mismatchVars##Type Mismatch Variables: " .. #self._sortedVars.mismatch) then
im.TextWrapped("These Variables are present in the Flowgraph, but have not the same type as in the Mission Editor.")
end
if im.TreeNode1("correctVars##Correct Variables: " .. #self._sortedVars.found) then
im.TextWrapped("These Variables are the same in the Flowgraph and in the Mission Editor.")
end
if im.TreeNode1("othrVars##Other Variables: " .. #self._sortedVars.other) then
im.TextWrapped("These Variables are only present in the Flowgraph, but not in the mission Editor.")
@/lua/ge/extensions/editor/gen/ui.lua
if im.TreeNodeEx1('Shape type', im.TreeNodeFlags_DefaultOpen) then
-- if im.TreeNode1('Building seed') then
columnRight(174)
]]
-- if im.TreeNode1('Building seed') then
--[[
--[[
if im.TreeNode1('Patches') then
input('Z-Span', 'wall_spany', true)
if U._PRD == 0 and W.out.inedge then
if im.TreeNode1('Patches') then
input('Z-Span', 'wall_spany', true)
end
if im.TreeNode1('Fringe') then
slider('Height', 'fringe_height', {-5,5})
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/path.lua
im.NextColumn()
if im.TreeNode1("Data##textCharacterPositions") then
for k, v in ipairs(layer.textCharacterPositions) do
im.NextColumn()
if im.TreeNode1("Data##dataPointsTreeNode") then
@/lua/ge/extensions/editor/flowgraph/examples.lua
for _, key in ipairs(sortedKeys) do
if im.TreeNode1(key.."##"..depth) then
self:recursiveTreeView(element[key], depth+1)
@/lua/ge/extensions/editor/vizHelper.lua
im.Separator()
if im.TreeNode1("Options") then
im.Combo2("Image", curItem, vizHelperComboStr)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.SetColorEditOptions(ImGuiColorEditFlags_flags) imgui.SetColorEditOptions(ImGuiColorEditFlags_flags) end
function M.TreeNode1(string_label)
if string_label == nil then log("E", "", "Parameter 'string_label' of function 'TreeNode1' cannot be nil, as the c type is 'const char *'") ; return end
if string_label == nil then log("E", "", "Parameter 'string_label' of function 'TreeNode1' cannot be nil, as the c type is 'const char *'") ; return end
return imgui.TreeNode1(string_label)
end
@/lua/ge/extensions/editor/missionEditor.lua
end
if im.TreeNode1(key.." ("..#grouping.missions[key]..")"..'##'..key.."missionEditorGrouping") then
for k,missionData in ipairs(grouping.missions[key]) do
@/lua/ge/extensions/editor/rendererComponents.lua
for _, pfxName in ipairs(sortedHDRsettings) do
if im.TreeNode1(pfxName) then
local data = HDRsettings[pfxName]
else
if im.TreeNode1(tostring(s.title or s.name)) then -- newPath
renderSettingsGui(s.settings, newPath, level)
for _, pfxName in ipairs(sortedHDRsettings) do
if im.TreeNode1(pfxName) then
local data = HDRsettings[pfxName]
@/lua/ge/extensions/editor/decalEditor.lua
for _, templateName in ipairs(templateNamesSorted) do
if im.TreeNode1(templateName) then
for _, instance in ipairs(instances[templateName]) do
@/lua/ge/extensions/editor/resourceChecker.lua
end
if im.TreeNode1("File: "..k) then
for l,b in pairs(v) do
else
if im.TreeNode1(" Material: "..l) then
if im.IsItemHovered() and im.IsMouseClicked(1) then
if j == "Stages" then
if im.TreeNode1("Stages:") then
local stage = 0
end
if im.TreeNode1("Stage "..stage..":") then
for m,x in pairs(t) do
@/lua/common/extensions/ui/imguiUtils.lua
else
if imgui.TreeNode1(tostring(k)) then
M.displayKeyValues(v)
if imgui.Begin(window, imgui.BoolPtr(true), 0) then
if imgui.TreeNode1(section) then
-- call callback function when TreeNode is open
@/lua/ge/extensions/util/groundModelDebug.lua
if im.TreeNode1("Options") then
im.SameLine()
-- TODO: use ImGuiListClipper
if im.TreeNode1("Groundmodels") then
if im.SmallButton("Enable All") then
-- im.SetCursorPosX(55)
if im.TreeNode1(k) then
im.PushItemWidth(100)
if im.TreeNode1("visible Groundmodels") then
im.BeginChild1("GroundModelVisScroll")
-- display
-- if im.TreeNode1("Static Collision data: " .. tostring(c.worlds[1].tris) .. " tris") then
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
if im.TreeNode1(translateLanguage("ui.trackBuilder.matEditor.paint", 'Paint')) then
local changed = false
if im.TreeNode1(translateLanguage("ui.trackBuilder.matEditor.baseTextures", "Base Textures")) then
im.BeginChild1("baseTextureChild", im.ImVec2(-1,160))
if im.TreeNode1(translateLanguage("ui.trackBuilder.matEditor.decalTextures", "Decal Textures")) then
im.BeginChild1("decalTextureChild",im.ImVec2(-1,160))
end
if im.TreeNode1("Create Intersection") then
im.Combo1("Mode",addSubtrackParams.mode,addSubtrackParams.modes)
end
if im.TreeNode1("Merge Tracks") then
if not paintModes.Merge.active[0] then
@/lua/ge/extensions/editor/dataBlockEditor.lua
if not tableIsEmpty(dataBlocks) then
if im.TreeNode1(className) then
for _, dataBlock in ipairs(dataBlocks) do
@/lua/ge/extensions/flowgraph/nodes/input/blacklistAction.lua
im.PopItemWidth()
if im.TreeNode1("Actions") then
local rem = nil
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua
for _, fontName in ipairs(generatedFontAtlases) do
if im.TreeNode1(string.format("%s##browserTabGui", fontName)) then
readFontAtlasData(fontName)
if im.TreeNode1("Header##Font") then
im.TextUnformatted("Version: " .. tostring(header["version"]))
@/lua/ge/extensions/gameplay/statistic.lua
im.TextUnformatted("level: "..dumps(currentLevel))
if im.TreeNode1("Timers") then
for k,v in pairs(timers) do
if im.BeginTabItem("callback") then
if im.TreeNode1("callbacks general") then
for k,v in pairs(callbacks) do
end
if im.TreeNode1("callbacks career") then
for k,v in pairs(callbacksCareer) do
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/brushStroke.lua
im.NextColumn()
if im.TreeNode1("Data##dataPointsTreeNode") then
local count = #layer.dataPoints
@/lua/ge/extensions/editor/trafficDebug.lua
if im.TreeNode1("General Info") then
for _, key in ipairs(generalKeys) do
if im.TreeNode1("Road Info") then
for _, key in ipairs(roadKeys) do
if im.TreeNode1("Respawn Info") then
for _, key in ipairs(respawnKeys) do
if im.TreeNode1("Pursuit Info") then
local pursuit = currVeh.pursuit
if im.TreeNode1("Role Info") then
local role = currVeh.role
if im.TreeNode1("Personality Info") then
for k, v in pairs(currVeh.role.driver.personality) do
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua
if im.TreeNode1("data##inspectorGuiBrush") then
im.TextUnformatted(dumps(brush))
@/lua/ge/extensions/editor/dynamicDecals/inspector.lua
if multiSelect then
if im.TreeNode1(string.format("%s - %s", layerData.uid, layerData.name)) then
inspectLayerGui(layerData, "inspector")
@/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
if api.getSdfEnabled() then
if im.TreeNode1(string.format("SDF Texture Preview##DecalColor_%s", guiId)) then
api.renderSdfTextureImgui(im.GetContentRegionAvailWidth(), im.GetContentRegionAvailWidth())
--[[
if im.TreeNode1("Advanced Textures (WIP)") then
if widgets.draw(api.getDecalTexturePath("normal"), api.propertiesMap["decalNormalTexturePath"], guiId) then
@/lua/ge/extensions/flowgraph/nodes/vehicle/special/vehicleAction.lua
im.Separator()
if im.TreeNode1("Action Info Detail") then
im.Columns(2)
@/lua/ge/extensions/editor/roadArchitect.lua
im.Separator()
if im.TreeNode1("Terraform Control") then
im.Columns(3, 'TerraRoadRow1', false)
im.Separator()
if im.TreeNode1("Granularity Control") then
if im.SliderInt("###859", road.granFactor, 1, 3, "Granularity Level (m) %d") then
im.Separator()
if im.TreeNode1("Master Width Control") then
if im.SliderFloat("###103", masterWidth, 0.5, 10.0, "Master Lane Width (m) = %.3f") then
im.Separator()
if im.TreeNode1("Translation Control") then
local useRigidTranButtonCol = cols.greenD
im.Separator()
if im.TreeNode1("Auto Banking Control") then
local profile = road.profile
im.Separator()
if im.TreeNode1("Layers") then
local profile = road.profile
im.Separator()
if im.TreeNode1("Sidewalks") then
local profile = road.profile
im.Separator()
if im.TreeNode1("Tunnel Control") then
im.Separator()
if im.TreeNode1("Road Condition Control") then
local profile = road.profile
im.Separator()
if im.TreeNode1("Visualization Control") then
im.Columns(5, "visControlsColBtns1", false)
im.Separator()
if im.TreeNode1("Render Options") then
im.Checkbox('isOverObject Flag', road.isOverObject)
im.Separator()
if im.TreeNode1("Road Mask Export Options") then
if editor.uiIconImageButton(editor.icons.terrain_export, vec36, cols.greenB, nil, nil, 'exportRoadMasks') then
im.Separator()
if im.TreeNode1("Terraform Control [Group]") then
im.Columns(2, 'TerraGroupRow1', false)
@/lua/ge/extensions/editor/flowgraphEditor.lua
end
if im.TreeNode1("Active States") then
local stateIds = {}
end
if im.TreeNode1("Event Log") then
eventView:drawContent()