WeakAuras

WeakAuras

206M Downloads

When uiScale is less than 0.64, change the text size in TextEditor to make it easier to read

JerichoZG opened this issue ยท 1 comments

commented

TextEditor.lua
Add the following code on line 161

if (fontPath) then
local Value, _, _, _, _, _, _ = GetCVarInfo("uiScale")
local uiScaleValue = tonumber(Value)
if uiScaleValue >= 0.64 then
editor.editBox:SetFont(fontPath, 12)
else
editor.editBox:SetFont(fontPath, 24)
end
end

commented

Eh, well maybe not choose a ui scale that doesn't work for your monitor?