一樣是修改skada.lua這個檔案,後來發現我多了一行return math.floor(number),這次做了一點調整,判斷數值的大小部份也有小改:
-- Formats a number into human readable form.
function Skada:FormatNumber(number)
if number then
if self.db.profile.numberformat == 1 then
if number > 99999999 then
return ("%02.2f億"):format(number / 100000000)
elseif number > 999999 then
return ("%02.0f萬"):format(number / 10000)
elseif number > 99999 then
return ("%02.1f萬"):format(number / 10000)
elseif number > 9999 then
return ("%02.2f萬"):format(number / 10000)
end
end
return math.floor(number)
end
end