GE Lua Documentation

Press F to search!

GetWindowDpiScale

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:99
function M.GetWindowDpiScale() return imgui.GetWindowDpiScale() end

Callers

@/lua/ge/extensions/ui/apps/minimap/minimap.lua
  ui_apps_minimap_utils.setClampToBounds(intersectionLocal, -4)
  local dpi = im.GetWindowDpiScale()
  -- Draw circle with triangle pointing toward the marker (like walking marker)
  end
  local dpi = im.GetWindowDpiScale()
  for i, cluster in ipairs(gameplay_playmodeMarkers.getPlaymodeClusters()) do
  -- setup imgui and size variables
  local dpi = im.GetWindowDpiScale()
  --avail = im.GetContentRegionAvail()
    size.y = size.y - imPadding*2
    local dpi = im.GetWindowDpiScale()
    if size.x > 0 and size.y > 0 then

  local dpi = im.GetWindowDpiScale()
  --td:circle(width/2 + offsetX-30, height/2 + offsetY, 50*dpi,20*dpi, white, white, transparent, transparent, flag, layers.DEBUG)
@/lua/common/extensions/ui/imguiUtils.lua
    if editor.getPreference("ui.general.dpiAware") then
      finalScale = finalScale * imgui.GetWindowDpiScale()
    end
  else
    finalScale = finalScale * imgui.GetWindowDpiScale()
  end