GE Lua Documentation

Press F to search!

SetWindowFontScale

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:141
function M.SetWindowFontScale(float_scale) imgui.SetWindowFontScale(float_scale) end

Callers

@/lua/ge/extensions/gameplay/rally/tools/loopToolbox.lua
  --       local timeStr = self:formatDuration(raceDataSummary.currentTime, true)
  --       im.SetWindowFontScale(1.3)
  --       if raceDataSummary.isComplete then
  --       end
  --       im.SetWindowFontScale(1.0)
    local totalTimeStr = self:formatDuration(totalTime, true, true)
    im.SetWindowFontScale(1.3)
    im.TextColored(colorLightBlue, "  Total Time: " .. totalTimeStr)
    im.TextColored(colorLightBlue, "  Total Time: " .. totalTimeStr)
    im.SetWindowFontScale(1.0)
  end
  if totalPenalty then
    im.SetWindowFontScale(1.3)
    im.TextColored(colorRed, string.format("  Total Penalty: +%ds", totalPenalty))
    im.TextColored(colorRed, string.format("  Total Penalty: +%ds", totalPenalty))
    im.SetWindowFontScale(1.0)
  end
  local wallClockStr = manager:getWallClockTimeFormatted()
  im.SetWindowFontScale(1.3)
  im.Text("  Wall Clock Time: " .. wallClockStr)
  im.Text("  Epoch Time: " .. epochSign .. epochStr)
  im.SetWindowFontScale(1.0)
@/lua/ge/extensions/editor/flowgraph/welcome.lua
local function headerText(txt)
  im.SetWindowFontScale(2)
  im.TextColored(im.GetStyleColorVec4(im.Col_NavHighlight), txt)
  im.TextColored(im.GetStyleColorVec4(im.Col_NavHighlight), txt)
  im.SetWindowFontScale(1)
  im.Dummy(im.ImVec2(0, 10))
@/lua/ge/extensions/editor/flowgraph/main.lua
  if im.BeginMenu("Quick Connect") then
    im.SetWindowFontScale(1/editor.getPreference("ui.general.scale"))
    -- find targets and sorted names
    end
    im.SetWindowFontScale(1)
    im.EndMenu()
@/lua/ge/extensions/flowgraph/basenode.lua

  im.SetWindowFontScale(editor.getPreference("ui.general.scale"))
-- im.BeginChild1("ncm##"..self.id, im.ImVec2(150*editor.getPreference("ui.general.scale"), entries * im.GetTextLineHeightWithSpacing() * editor.getPreference("ui.general.scale")))
    if im.BeginMenu('Create Subgraph...') then
      im.SetWindowFontScale(1/editor.getPreference("ui.general.scale"))
      im.PushItemWidth(150 * editor.getPreference("ui.general.scale"))
      im.PopItemWidth()
      im.SetWindowFontScale(1)
      im.EndMenu()
    if im.BeginMenu('Comment...') then
      im.SetWindowFontScale(1/editor.getPreference("ui.general.scale"))
      im.PushItemWidth(150 * editor.getPreference("ui.general.scale"))
      im.PopItemWidth()
      im.SetWindowFontScale(1)
      im.EndMenu()
    if im.BeginMenu('Dev tools') then
      im.SetWindowFontScale(1/editor.getPreference("ui.general.scale"))
      if im.MenuItem1("Open Source File") then
      if im.BeginMenu('Dumpz Node') then
        im.SetWindowFontScale(editor.getPreference("ui.general.scale"))
        for i = 1, 5 do
        end
        im.SetWindowFontScale(1)
        im.EndMenu()
      end
      im.SetWindowFontScale(1)
      im.EndMenu()
  end
  im.SetWindowFontScale(1)
end
@/lua/ge/extensions/flowgraph/link.lua
function C:showContextMenu(menuPos)
  im.SetWindowFontScale(editor.getPreference("ui.general.scale"))
  if im.MenuItem1("Toggle Hide") then
@/lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua
      local io = im.GetIO(io)
      im.SetWindowFontScale(1/io.FontGlobalScale)
      M.oldImguiScale = im.uiscale[0]
    if im then im.uiscale[0] = M.oldImguiScale end
    im.SetWindowFontScale(1)
@/lua/ge/extensions/gameplay/rally/loop/speedingDetector.lua
  local avgSpeed = self:getAverageSpeed()
  im.SetWindowFontScale(1.5)
  if avgSpeed then
  end
  im.SetWindowFontScale(1.0)
@/lua/ge/extensions/editor/resourceChecker.lua
    im.PopFont()
    --im.SetWindowFontScale(1)
  end
@/lua/ge/extensions/flowgraph/pin.lua
function C:showContextMenu(menuPos, main)
  im.SetWindowFontScale(editor.getPreference("ui.general.scale"))
  if self.node.graph.mgr.allowEditing then
    if im.BeginMenu('Dumpz Node') then
      --im.SetWindowFontScale(editor.getPreference("ui.general.scale"))
      for i = 1, 5 do
      end
      --im.SetWindowFontScale(1)
      im.EndMenu()
@/lua/ge/extensions/flowgraph/nodes/states/transition.lua
  if im.BeginMenu("Go to target...") then
    im.SetWindowFontScale(1/editor.getPreference("ui.general.scale"))
    for _, hop in ipairs(hops) do
    end
    im.SetWindowFontScale(1)
    im.EndMenu()
@/lua/ge/extensions/editor/dynamicDecals/news.lua
  if editor.beginWindow(windowName, windowName) then
    -- im.SetWindowFontScale(1.1)
    spacing = im.ImVec2(1, im.GetStyle().ItemSpacing.y * 2)
@/lua/ge/extensions/ui/console.lua
    if im.BeginTable("LogsChild", numColm, im.TableFlags_Resizable+im.TableFlags_ContextMenuInBody+im.TableFlags_ScrollY+im.TableFlags_NoPadInnerX+im.TableFlags_BordersOuter+(tableBgLines[0] and im.TableFlags_RowBg or 0 )+im.TableFlags_Hideable, im.ImVec2(0, -30 * uiScale)) and numColm>0 then
      im.SetWindowFontScale(fontConsoleFact[0])
      im.TableSetupColumn("time", im.TableColumnFlags_NoSort + im.TableColumnFlags_WidthStretch,10)
        im.PopFont()
        --im.SetWindowFontScale(1)
      end
      end
      im.SetWindowFontScale(1.0)
      im.EndTable()
  --   if im.BeginTable("testtable", numColm, im.TableFlags_Resizable+im.TableFlags_ContextMenuInBody+im.TableFlags_ScrollY+im.TableFlags_NoPadInnerX+im.TableFlags_BordersOuter+im.TableFlags_RowBg, im.ImVec2(0, 0)) and numColm>0 then
  --     im.SetWindowFontScale(fontConsoleFact[0])
  --       im.PushFont2(1)
  --       --im.SetWindowFontScale(1)
  --     end
  --       im.PopFont()
  --       --im.SetWindowFontScale(1)
  --     end
  --     end
  --     im.SetWindowFontScale(1.0)
  --     im.EndTable()