XIV_Databar

XIV_Databar

199k Downloads

Lua error with recent gold changes

Merathilis opened this issue ยท 4 comments

commented

If you check the option: "Always Show Silver and Copper" you get a lua error if you mouseover the Gold Datatext:

3x XIV_Databar\modules\gold.lua:35: Usage: GetCoinText(amount, fontHeight) [C]: in function GetCoinTextureString'
XIV_Databar\modules\gold.lua:35: in function <XIV_Databar\modules\gold.lua:12>
XIV_Databar\modules\gold.lua:187: in function <XIV_Databar\modules\gold.lua:174>`

commented

With the latest update I am getting the following error:

14x XIV_Databar\modules\gold.lua:35: Usage: GetCoinText(amount, fontHeight)
[C]: in function `GetCoinTextureString'
XIV_Databar\modules\gold.lua:35: in function <XIV_Databar\modules\gold.lua:12>
XIV_Databar\modules\gold.lua:186: in function <XIV_Databar\modules\gold.lua:174>

Locals:
(*temporary) = "410781.99999999997108.0000000016298"

Thanks for a great addon.

commented

I did not have any issue yesterday... Weird.

commented

Hehe I did not test with high enough amount of gold...

commented

Keeping this issue open for a reminder.

TODO : Shorten gold values in strings with texture when the option to shorten the amount is checked.