GE Lua Documentation

Press F to search!

TreeNode2

Definition


-- @/=[C]:-1
function TreeNode2(...)

Callers

@/lua/ge/extensions/flowgraph/nodes/vehicle/customPartsConfigProvider.lua
  local reason = nil
  if im.TreeNode2("Load from File","Load from File") then
    reason = ui_flowgraph_editor.vehicleSelector(self)

  if im.TreeNode2('cv',"Current Vehicle") then
    local veh = getPlayerVehicle(0)
function C:showKVPairs(name, field, tpe)
  if im.TreeNode2(field..'tree',name..' ('..#self.sortedKeys[field]..' Items)') then
    if im.Button("Sort", im.ImVec2(im.GetContentRegionAvailWidth(),0)) then
@/lua/ge/extensions/editor/flowgraph/variables.lua
    --local vName = ui_flowgraph_editor.shortValueString(variable.value, variable.type)
    --if im.TreeNode2(nm..variable.index..'-'..id, nm .. ' = ' .. vName) then
      --ui_flowgraph_editor.variableEditor(target, nm, {global = global, showNodes = true, allowDelete = true})
function C:drawRecursive(graph)
  if im.TreeNode2(graph.name..'##'..graph.id, graph.name) then
    self:drawGraph(graph)
@/lua/common/extensions/ui/imguiUtils.lua
    if display then
      if imgui.TreeNode2(newPath, tostring(k)) then
        M.addRecursiveTreeTable(val, newPath, noColumns, highlightCallback, itemCallback)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
end
function M.TreeNode2(string_str_id, string_fmt, ...)
  if string_str_id == nil then log("E", "", "Parameter 'string_str_id' of function 'TreeNode2' cannot be nil, as the c type is 'const char *'") ; return end
  string_fmt = formatStringIfArgs(string_fmt, ...)
  return imgui.TreeNode2(string_str_id, string_fmt)
end