GE Lua Documentation

Press F to search!

Indent

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:236
function M.Indent(float_indent_w)
  if float_indent_w == nil then float_indent_w = 0 end
  imgui.Indent(float_indent_w)
end

Callers

@/lua/ge/extensions/editor/assetBrowser.lua
  if var.savedSearchesOpen == true then
    im.Indent(var.iconSize.x + var.style.ItemSpacing.x)
    for index, item in pairs(var.defaultFilter) do
  if dir.open then
    im.Indent(editor.getPreference("assetBrowser.general.treeViewIndentationWidth"))
    for _,dir in ipairs(dir.dirs) do
        if file.inspectorData then
          im.Indent()
          -- Set SmallButton's background color to transparent.
@/lua/ge/extensions/editor/slotTrafficEditor.lua
            im.Text("Road Properties:")
            im.Indent()
            if props.drivability then
@/lua/ge/extensions/editor/gen/ui.lua
  im.SameLine()
  im.Indent(conf.inputMargin)
	count_inp = count_inp + 1
	im.SameLine()
	im.Indent(conf.inputMargin)
	if im['Input'..tp]("##" .. lbl, ptr, step) then
--        im.SameLine()
--        im.Indent(140)
--        im.ColorButton('ib'..lbl, im.ImVec4(0.6, 0.0, 0.0, 1))
		im.SameLine()
		im.Indent(conf.inputMargin)
	end
    local ds = (dim.x - len)/2 + (shift or 0)
    im.Indent(-30+ds)
    im.Unindent(-30)
  else
    im.Indent(-24)
	--?? why not -24
	im.SameLine()
	im.Indent(-30)
	im.Unindent(-30)
			im.SameLine()
			im.Indent()
			im.Unindent()
  im.SameLine()
  im.Indent(conf.inputMargin)

			im.Indent(10)
			im.Columns(1)
		local bsize = 60
		im.Indent(8)
		local nbut = U._HERE and 4 or 3
--        columnRight(174)
--    im.Indent(12)
		im.PushFont3("cairo_regular_medium")
			end
--            im.Indent(-4)

--		im.Indent(10)
--		combo('Var.type', 'building_subshape', {'','SUB_SHAPE'})
			im.Dummy(im.ImVec2(8, 0))
			im.Indent(8)
--            im.SameLine()
			im.Indent(6)
			im.Dummy(im.ImVec2(6, 0))
					end
--                    im.Indent()
--                    im.Unindent()
		--            if editor.uiHighlightedText(t..'1', t..'2', im.ImVec4(0.6, 0.0, 0.0, 1)) then
		--            im.Indent(10)
		--            im.Dummy(im.ImVec2(10, 0))
						im.SameLine()
						im.Indent(-30)
						im.Unindent(-30)
			im.Unindent(6)
--            im.Indent(8)
--        im.SameLine()
  --                im.Dummy(im.ImVec2(6, 0))
  --            im.Indent(2)
          	im.BeginGroup()
            im.Indent(34)
    --                im.SameLine()
            im.Dummy(im.ImVec2(0, 0))
    --                im.Indent(6)
			if U._PRD == 0 then

		im.Indent(8)
				im.SameLine()
				im.Indent(-30)
				im.Unindent(-30)
				im.SameLine()
				im.Indent(-30)
				im.Unindent(-30)
--            im.Dummy(im.ImVec2(-10, -10))
			im.Indent(10)
--            im.
--            im.Indent(-14)
		im.Dummy(im.ImVec2(0, 10))
		im.Indent(8)
		if not croad and meshType and mlist then
		im.BeginChild1('CONTROLS', im.ImVec2(im.GetWindowWidth(), im.GetWindowHeight() - vspace), false)
--            im.Indent(8)
			if R.out.inpave then
					im.Dummy(im.ImVec2(0, 0))
--                    im.Indent(-4)
--                    im.Indent(10)
--                    im.Indent(-4)
--                    im.Indent(10)
-- BUILDING CONTROLS
							im.Text('Positioning')
							im.Indent(-6)
							im.Columns(3, 'PILA_IND', true) -- false - no borders
							im.Text('Balcony spacing')
							im.Indent(-6)
							im.Columns(3, 'BALC_IND', true) -- false - no borders
							slider('Spacing', 'pillar_space', {0.1, 10})
--                            im.Indent(10)
							im.NextColumn()
 --                           im.Unindent(10)
--                            im.Indent(10)
							input('Z-Span', 'pillar_spany', true)
						im.Dummy(im.ImVec2(0, 4))
						im.Indent(conf.inputMargin)
						if cij[1] ~= 1 or (desc and not (desc.basement and desc.basement.yes)) then
					elseif scope == 'top' then
						im.Indent(6)
							if W.ui.dbg  then
		----------------------------------------------
		im.Indent(10)
		im.Columns(1)
		for i,row in pairs(HTree) do
--            im.Indent(10)
			if tableSize(row) > 0 then
	for i,row in pairs(htree) do
--            im.Indent(10)
		if tableSize(row) > 0 then
			im.SameLine()
			im.Indent(-30)
			im.Unindent(-30)
				im.SameLine()
				im.Indent(-10)
	--            im.Space(20)
@/lua/ge/extensions/editor/gen/lib/ui.lua
    if center then
--        im.Indent(50+10)
        im.TextColored(c, txt)
    else
        im.Indent(4+shift.x) --dim.x+6)
        im.TextColored(c, txt)

--    im.Indent(-1) --dim.x+6)
--    im.Unindent(-1) --dim.x+6)
    im.SameLine()
    im.Indent()
    im.Unindent()
  im.SameLine()
--  im.Indent(0)
		im.SameLine()
--		im.Indent(conf.inputMargin)
	end
		im.SameLine()
--		im.Indent(conf.inputMargin)
	end
  im.SameLine()
--  im.Indent(conf.inputMargin)
    im.SameLine()
--  im.Indent(conf.inputMargin)
--	count_inp = count_inp + 1
	for i,row in pairs(htree) do
--            im.Indent(10)
		if tableSize(row) > 0 then
@/lua/ge/extensions/editor/inspector.lua
            if imgui.CollapsingHeader1(val.name, nodeFlags) then
              imgui.Indent(fieldIndent)
              for i = 0, val.elementCount - 1 do
        if imgui.CollapsingHeader1(fieldLabel, nodeFlags) then
          imgui.Indent(fieldIndent)
          for i = 0, val.elementCount - 1 do
@/lua/ge/extensions/editor/preferences.lua
    if subCat.visibleOnSearch and imgui.CollapsingHeader1(subCat.label, nodeFlags) then
      imgui.Indent(15)
      imgui.PushID1(subCat.name .. "_PREF_ITEMS")
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
        local indentWidth = 2 * im.GetStyle().IndentSpacing
        im.Indent(indentWidth)
        if im.Checkbox(string.format("##%s_%s_%s_%d", layer.uid, guiId, "layerMaskLayerEnabled", k), editor.getTempBool_BoolBool(maskLayer.enabled)) then
  if (layerLevel < maxLayerDepth) and (layer.children and #layer.children == 0) then
    im.Indent()
    -- name, layer, guiId, to, toParentUid, id, additionalCheckFn, dbgColor
@/lua/ge/extensions/editor/sceneTree.lua
  if recursiveDisplay and (node.isGroup or node.isExpandable) and (not showGroups or node.open or node.openOnSearch) then
    if showGroups and node ~= instance.rootNode then imgui.Indent() end
@/lua/ge/extensions/editor/dynamicDecals/docs.lua
  if not section.children then return end
  im.Indent()
  for k, v in pairs(section.children) do
@/lua/ge/extensions/editor/gen/exp_solidflex.lua
            if im.BeginListBox(id, im.ImVec2(-1,im.GetWindowHeight() - 118)) then
                im.Indent(8)
            im.PushFont3("cairo_regular_medium")
            im.Indent(1)
            im.TextColored(UI.colorNav, 'Hint: ')
            im.Dummy(im.ImVec2(0,0))
--            im.Indent(10)
@/lua/ge/extensions/editor/engineAudioDebug.lua
    im.Text("Sound Selection")
    im.Indent()
    local engineNameStringArray = im.ArrayCharPtrByTbl(editor_engineAudioDebug.engine.engineNameStrings)
      im.Text("General")
      im.Indent()
      changed = im.DragFloat("mainGain", mainGain, 1, -30, 10) or changed
      im.Text("On/Off-Load")
      im.Indent()
      changed = im.DragFloat("onLoadGain", onLoadGain, 0.01, -0, 1) or changed
      im.Text("High/Low Shelf")
      im.Indent()
      changed = im.DragFloat("lowShelfFreq", lowShelfFreq, 100, 20, 20000) or changed
      im.Text("EQ Low")
      im.Indent()
      changed = im.DragFloat("eqLowGain", eqLowGain, 1, -30, 30) or changed
      im.Text("EQ High")
      im.Indent()
      changed = im.DragFloat("eqHighGain", eqHighGain, 1, -30, 30) or changed
      im.Text("Fundamental Frequency")
      im.Indent()
      changed = im.DragFloat("eqFundamentalGain", eqFundamentalGain, 1, -30, 30) or changed
@/lua/ge/extensions/c2/panelPlugins/tileManager.lua
        if debugState.drawObjects or debugState.drawForest then
           im.Indent()
           if im.Checkbox("Advanced (OBB)", p_drawObjectsAdvanced) then debugState.drawObjectsAdvanced = p_drawObjectsAdvanced[0] end
        if debugState.drawDecals then
           im.Indent()
           if im.Checkbox("Draw Text", p_drawDecalText) then debugState.drawDecalText = p_drawDecalText[0] end
        if debugState.drawRoadMarkings then
           im.Indent()
           if im.Checkbox("Draw Marking Nodes", p_drawRoadMarkingNodes) then debugState.drawRoadMarkingNodes = p_drawRoadMarkingNodes[0] end
        if debugState.drawAIGraph then
           im.Indent()
           if im.Checkbox("Advanced (Lanes)", p_drawAIGraphAdvanced) then debugState.drawAIGraphAdvanced = p_drawAIGraphAdvanced[0] end
@/lua/ge/extensions/editor/forestEditor.lua
    end
    im.Indent()
    if im.Selectable1(string.format("%d##pMTextureSetList", i), i == pM_selectedTextureSetId and true or false) then
@/lua/ge/extensions/editor/dragRaceEditor/strips.lua
    im.Text("Strip Lanes:")
    im.Indent()
    im.Text("Waypoints:")
    im.Indent()
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if float_indent_w == nil then float_indent_w = 0 end
  imgui.Indent(float_indent_w)
end
@/lua/ge/extensions/editor/gen/exp_frame.lua
                    im.NextColumn()
                    im.Indent(80)
                    for i,val in pairs(d.ac) do
@/lua/ge/extensions/core/quickAccess.lua
        if im.CollapsingHeader1(key) then
          im.Indent() -- Add indentation for child elements
          renderTree(value, currentPath)
@/lua/ge/extensions/editor/dynamicDecals/textures.lua
        im.Text("Meta files for new textures have been created. Please check the textures and adjust their meta files accordingly.")
        im.Indent()
        for _, file in ipairs(missingSidecarFiles) do
        im.Text("Meta files for new textures have been created. Please check the textures and adjust their meta files accordingly.")
        im.Indent()
        for _, file in ipairs(missingSidecarFiles) do
@/lua/ge/extensions/editor/api/genericInspector.lua
            if imgui.CollapsingHeader1(val.name.."##Array" .. self.valueInspector.inspectorName, nodeFlags) then
              imgui.Indent(fieldIndent)
              for i = 1, val.elementCount do
        if imgui.CollapsingHeader1(val.arrayName, nodeFlags) then
          imgui.Indent(fieldIndent)
          for i = 1, val.elementCount do
@/lua/ge/extensions/editor/materialEditor.lua
    if im.CollapsingHeader1("Layer " .. tostring(i), i == 1 and im.TreeNodeFlags_DefaultOpen or nil) then
      im.Indent()
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua
                                            im.TableNextColumn()
                                            im.Indent(-8)
                                            if not b.sel then b.sel = false end
--                im.Dummy(im.ImVec2(0,0))
                im.Indent(12)
                im.PushFont3("cairo_regular_medium")
                if not env.ui['model_up'] or #ageopin>0 then
                    im.Indent(10)
                    if inline then
                            if j == 1 then
                                im.Indent(-4)
                                color = infilter and UI.cbutOn or UI.cbutOff
        --                        im.SameLine()
        --                        im.Indent(-40)
                                UI.buttonImg('fav_to', 'star', im.ImVec2(iconsz,iconsz), UI.colorOn, nil, vec3(0.6,0.6))
                        if fsnode.adir[i] then
                            im.Indent(-4)
                            color = fsnode.adir[i].fav==1 and im.ImVec4(0.7, 0.7, 0.0, 0.7) or UI.cbutOff