View Single Post
08/09/17, 04:21 AM   #1
p6kocka
Join Date: Apr 2014
Posts: 19
How to add thousands separator for existing addon?

There is an addon "sidWarTools" which doesn´t have thousands separator on target label text. It is hard to read bigger numbers. How to add thousands separator for this addon?

there is a line in "target.lua":

local targetBarText = CreateControlFromVirtual(parent:GetName().."HpText1", parent, "ZO_UnitFrameBarText")
targetBarText:SetAnchor(TOP, nil, BOTTOM, 0, -22)
targetBarText:SetFont("ZoFontWinT2")
targetHealthBar.leftText = targetBarText


I ´ve tried to add this lines, but it doesn´t work.:

strformat('%s / %s (%d%%)', comma_value(current), comma_value(effMax), (current / effMax) * 100)

How to resolve this pls?
  Reply With Quote