Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

ESOUI » AddOns » AddOn Help/Support » How to add thousands separator for existing addon?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off