About Balance Bar
The plugin displays the player's balance in the status bar. Depends on BankSystem/ServerRewards/Economics and AdvancedStatus plugins.
P.S. I've asked the author of the ServerRewards plugin to add a new hook called OnPointsUpdated to track points updates. Until they decide to add the new hook, if you want point updates, you'll need to manually add 2 lines to the ServerRewards plugin.
On lines 1822 and 1847, you need to add the code(below) before "return true;"
Interface.CallHook("OnPointsUpdated", ID, playerRP[ID]);
- The ability to always display the player's balance, or only when they are in a safe zone or building privilege zone;
- The ability to display all or part of the bars simultaneously;
- The ability to customize the bar for each plugin;
- The ability to specify the currency symbol;
- The ability to specify the display side of the currency symbol;
- The ability to display text if the balance exceeds a specified value(useful for very large balances) ;
- The ability to specify the order of the bar;
- The ability to change the height of the bar;
- The abillity to customize the color and transparency of the background;
- The ability to set a material for the background;
- The ability to switch between CuiRawImageComponent and CuiImageComponent for the image;
- The ability to get images from the local folder(*SERVER*\oxide\data\AdvancedStatus\Images);
- The abillity to set own image and customize the color, transparency and outline of the image;
- The abillity to set sprite instead of the image;
- The ability to customize the color, size, font and outline of the text.
{
"Display the balance only when players are in the safe zone or have building privilege?": true,
"Value after which text will be displayed instead of balance": 1000000000.0,
"List of plugins for displaying the balance bar. Leave null or empty to use the default list": [
"BankSystem",
"ServerRewards",
"Economics"
],
"List of status bar settings for each plugin. Leave null or empty to recreate the list": [
{
"BarID. Do not touch this parameter": "BalanceBar_BankSystem",
"Order": 20,
"Height": 26,
"Main_Color(Hex or RGBA)": "#6375B3",
"Main_Transparency": 0.8,
"Main_Material": "",
"Image_Url": "https://i.imgur.com/jKeUqSD.png",
"Image_Local(Leave empty to use Image_Url)": "BalanceBar_BankSystem",
"Image_Sprite(Leave empty to use Image_Local or Image_Url)": "",
"Image_IsRawImage": false,
"Image_Color(Hex or RGBA)": "#A1DBE6",
"Image_Transparency": 1.0,
"Is it worth enabling an outline for the image?": false,
"Image_Outline_Color(Hex or RGBA)": "0.1 0.3 0.8 0.9",
"Image_Outline_Transparency": 0.0,
"Image_Outline_Distance": "0.75 0.75",
"Text_Key": "MsgBankSystem",
"Text_Size": 12,
"Text_Color(Hex or RGBA)": "#FFFFFF",
"Text_Font(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
"Is it worth enabling an outline for the text?": false,
"Text_Outline_Color(Hex or RGBA)": "#000000",
"Text_Outline_Transparency": 1.0,
"Text_Outline_Distance": "0.75 0.75",
"SubText_Format": "${0}",
"SubText_OverLimit": "MsgBankSystemOverLimit",
"SubText_Size": 12,
"SubText_Color(Hex or RGBA)": "#FFFFFF",
"SubText_Font": "RobotoCondensed-Bold.ttf",
"Is it worth enabling an outline for the sub text?": false,
"SubText_Outline_Color(Hex or RGBA)": "0.5 0.6 0.7 0.5",
"SubText_Outline_Transparency": 0.0,
"SubText_Outline_Distance": "0.75 0.75"
},
{
"BarID. Do not touch this parameter": "BalanceBar_ServerRewards",
"Order": 20,
"Height": 26,
"Main_Color(Hex or RGBA)": "#6375B3",
"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(Hex or RGBA)": "#A1DBE6",
"Image_Transparency": 1.0,
"Is it worth enabling an outline for the image?": false,
"Image_Outline_Color(Hex or RGBA)": "0.1 0.3 0.8 0.9",
"Image_Outline_Transparency": 0.0,
"Image_Outline_Distance": "0.75 0.75",
"Text_Key": "MsgServerRewards",
"Text_Size": 12,
"Text_Color(Hex or RGBA)": "#FFFFFF",
"Text_Font(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
"Is it worth enabling an outline for the text?": false,
"Text_Outline_Color(Hex or RGBA)": "#000000",
"Text_Outline_Transparency": 1.0,
"Text_Outline_Distance": "0.75 0.75",
"SubText_Format": "{0}RP",
"SubText_OverLimit": "MsgServerRewardsOverLimit",
"SubText_Size": 12,
"SubText_Color(Hex or RGBA)": "#FFFFFF",
"SubText_Font": "RobotoCondensed-Bold.ttf",
"Is it worth enabling an outline for the sub text?": false,
"SubText_Outline_Color(Hex or RGBA)": "0.5 0.6 0.7 0.5",
"SubText_Outline_Transparency": 0.0,
"SubText_Outline_Distance": "0.75 0.75"
},
{
"BarID. Do not touch this parameter": "BalanceBar_Economics",
"Order": 20,
"Height": 26,
"Main_Color(Hex or RGBA)": "#6375B3",
"Main_Transparency": 0.8,
"Main_Material": "",
"Image_Url": "https://i.imgur.com/jKeUqSD.png",
"Image_Local(Leave empty to use Image_Url)": "BalanceBar_Economics",
"Image_Sprite(Leave empty to use Image_Local or Image_Url)": "",
"Image_IsRawImage": false,
"Image_Color(Hex or RGBA)": "#A1DBE6",
"Image_Transparency": 1.0,
"Is it worth enabling an outline for the image?": false,
"Image_Outline_Color(Hex or RGBA)": "0.1 0.3 0.8 0.9",
"Image_Outline_Transparency": 0.0,
"Image_Outline_Distance": "0.75 0.75",
"Text_Key": "MsgEconomics",
"Text_Size": 12,
"Text_Color(Hex or RGBA)": "#FFFFFF",
"Text_Font(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
"Is it worth enabling an outline for the text?": false,
"Text_Outline_Color(Hex or RGBA)": "#000000",
"Text_Outline_Transparency": 1.0,
"Text_Outline_Distance": "0.75 0.75",
"SubText_Format": "${0}",
"SubText_OverLimit": "MsgEconomicsOverLimit",
"SubText_Size": 12,
"SubText_Color(Hex or RGBA)": "#FFFFFF",
"SubText_Font": "RobotoCondensed-Bold.ttf",
"Is it worth enabling an outline for the sub text?": false,
"SubText_Outline_Color(Hex or RGBA)": "0.5 0.6 0.7 0.5",
"SubText_Outline_Transparency": 0.0,
"SubText_Outline_Distance": "0.75 0.75"
}
],
"Version": {
"Major": 0,
"Minor": 1,
"Patch": 6
}
}
EN:
{
"MsgBankSystem": "Balance",
"MsgBankSystemOverLimit": "> $1kkk",
"MsgServerRewards": "Points",
"MsgServerRewardsOverLimit": "> 1kkk RP",
"MsgEconomics": "Balance",
"MsgEconomicsOverLimit": "> $1kkk"
}
RU:
{
"MsgBankSystem": "Баланс",
"MsgBankSystemOverLimit": "> $1 млрд",
"MsgServerRewards": "Очки",
"MsgServerRewardsOverLimit": "> 1 млрд RP",
"MsgEconomics": "Баланс",
"MsgEconomicsOverLimit": "> $1 млрд"
}