Jump to content

Balance Not Showing Completly

Closed 0.1.5 0.1.6

Gay Sparkly T-Rex
Gay Sparkly T-Rex

Posted

So its cutting off a selection of numbers when using ServerRewards, this is my config:
{
      "BarID": "BalanceBar_ServerRewards",
      "Order": 20,
      "Height": 26,
      "Main_Color": "#00aaff",
      "Main_Transparency": 0.8,
      "Main_Material": "",
      "Image_Url": "https://i.imgur.com/jKeUqSD.png",
      "Image_Local(Leave empty to use Image_Url)": "BalanceBar_ServerRewards",
      "Image_Sprite(Leave empty to use Image_Local or Image_Url)": "",
      "Image_IsRawImage": false,
      "Image_Color": "#000000",
      "Image_Transparency": 1.0,
      "Text_Key": "MsgServerRewards",
      "Text_Size": 17,
      "Text_Color": "#000000",
      "Text_Font": "RobotoCondensed-Bold.ttf",
      "SubText_Format": "{0}",
      "SubText_Size": 17,
      "SubText_Color": "#000000",
      "SubText_Font": "RobotoCondensed-Bold.ttf"
    }

I have a balance of 1024171 but Balance Bar only shows 1023... its missing 3 numbers and dosent appear to actively be updating...

Gay Sparkly T-Rex

Posted

Got it to activly update... I forgot to add the lines to ServerRewards when I updated that addon... but still does not show the whole balance.

IIIaKa

Posted

7 minutes ago, Gay Sparkly T-Rex said:

Got it to activly update... I forgot to add the lines to ServerRewards when I updated that addon... but still does not show the whole balance.

Hi, could you please send a screenshot of the status bar?

IIIaKa

Posted

Changed Status from Pending to Work in Progress

Gay Sparkly T-Rex

Posted

Sorry just seeing this... CF didnt notify me there was a reply. Here is a screenshot showing my balance in ServerRewards and showing the balance bar as well.... also the higher the balance the more numbers that fail to show. ServerRewards shows 4655 while Balance Bar only shows 465.

Screenshot 2024-10-19 125401.png

  • Like 1
IIIaKa

Posted (edited)

If the balance is 1234567890, then not all the numbers are displayed, probably because of the AdvancedStatus plugin. It should trim the container for this text to prevent overlaps between the main text and the subtext. But apparently, the width calculations are incorrect.

[Balance Bar] 1,234,567,890 RP
[Balance Bar] $1234567890

Nu4bq9M.png
ZBYHrMR.png

Edited by IIIaKa
IIIaKa

Posted

@Gay Sparkly T-Rex
Hello. In AdvancedStatus 0.1.17, I've slightly improved text width calculation. Now, texts should display more accurately and get truncated if they don't fit.
Additionally, in BalanceBar 0.1.6, I added the ability to set a balance threshold at which text will be displayed instead of the balance itself(similar to building privilege > 30 days), this is useful when the balance is very large.

IIIaKa

Posted

Changed Status from Work in Progress to Closed

Changed Fixed In to 0.1.6

IIIaKa

Posted

If the issue persists, feel free to report it in this thread.

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.