GE Lua Documentation

Press F to search!

GetID1

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:275
function M.GetID1(string_str_id)
  if string_str_id == nil then log("E", "", "Parameter 'string_str_id' of function 'GetID1' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.GetID1(string_str_id)
end

Callers

@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
            local state = self.setTreeNodesOpen and 1 or 0
            im.ImGuiStorage_SetInt(im.GetStateStorage(),im.GetID1(d), state)
          end
        local state = self.setTreeNodesOpen and 1 or 0
        im.ImGuiStorage_SetInt(im.GetStateStorage(),im.GetID1("Variables"), state)
      end
          local state = self.setTreeNodesOpen and 1 or 0
          im.ImGuiStorage_SetInt(im.GetStateStorage(),im.GetID1("Project Variables"), state)
        end
          local state = self.setTreeNodesOpen and 1 or 0
          im.ImGuiStorage_SetInt(im.GetStateStorage(),im.GetID1("Graph Variables"), state)
        end
        local state = self.setTreeNodesOpen and 1 or 0
        im.ImGuiStorage_SetInt(im.GetStateStorage(),im.GetID1("Macros"), state)
      end
            local state = self.setTreeNodesOpen and 1 or 0
            im.ImGuiStorage_SetInt(im.GetStateStorage(),im.GetID1(d), state)
          end

  --if not self.fgEditor.dockspaces["NE_RightTopPanel_Dockspace"] then self.fgEditor.dockspaces["NE_RightTopPanel_Dockspace"] = im.GetID1("NE_RightTopPanel_Dockspace") end
  --im.SetNextWindowDockID(self.fgEditor.dockspaces["NE_RightTopPanel_Dockspace"])
          local state = self.setTreeNodesOpen and 1 or 0
          im.ImGuiStorage_SetInt(im.GetStateStorage(),im.GetID1(dirName), state)
        end
@/lua/ge/extensions/editor/flowgraph/execution.lua

  --if not self.fgEditor.dockspaces["NE_RightBottomPanel_Dockspace"] then self.fgEditor.dockspaces["NE_RightBottomPanel_Dockspace"] = im.GetID1("NE_RightBottomPanel_Dockspace") end
  self.alone = false
@/lua/ge/extensions/editor/flowgraph/main.lua
    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.DockSpace(self.fgEditor.dockspaces["NE_Main_Dockspace"], im.ImVec2(0, 0), im.DockNodeFlags_None)
@/lua/ge/extensions/editor/flowgraph/overview.lua
  if not editor.isWindowVisible(self.windowName) then return end
  --if not self.fgEditor.dockspaces["NE_LeftTopPanel_Dockspace"] then self.fgEditor.dockspaces["NE_LeftTopPanel_Dockspace"] = im.GetID1("NE_LeftTopPanel_Dockspace") end
@/lua/ge/extensions/editor/api/gui.lua
    -- init the dockspace
    imgui.DockSpace(imgui.GetID1("MainDockspace1"), imgui.ImVec2(0, 0), imgui.DockNodeFlags_PassthruCentralNode)
    imgui.End()
@/lua/ge/extensions/flowgraph/nodes/vehicle/customPartsConfigProvider.lua
        if not self._opened then
          im.ImGuiStorage_SetInt(im.GetStateStorage(),im.GetID1("Part Config Custom:"), 0)
        end
@/lua/ge/extensions/editor/biomeTool.lua
  local context = imgui.GetCurrentContext()
  local id = imgui.GetID1(label)
  imgui.ImGuiStorage_SetInt(imgui.GetStateStorage(), id, state and 1 or 0)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if string_str_id == nil then log("E", "", "Parameter 'string_str_id' of function 'GetID1' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.GetID1(string_str_id)
end
@/lua/common/extensions/ui/imguiUtils.lua
function M.SampleFloatDisplay(id, value, sampleTimeInSeconds, precision)
  local id = imgui.GetID1(id)
  if not M.sampleFloatDisplayState[id] then