About Balance Bar
The plugin displays the player's balance in the status bar. Depends on AdvancedStatus plugin.
- The ability to add and modify any economic plugins;
- The ability to automatically generate code for balance update hooks;
- The ability to automatically generate language files for different languages(filled in English);
- The ability to display the status bar to everyone or only based on permissions;
- The ability to display the status bar always or only in safe zones and building privileges;
- The ability to display the status bar via a command for a short period if permanent display is disabled;
- The ability to display the status bar when the balance is non-zero;
- 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.
- balancebar.use - Grants the right to display the status bar if display is enabled only for permissions.
{
"Chat command": "balances",
"Is it worth enabling GameTips for messages?": true,
"Is it worth generating update hooks? 0 - disabled, 1 - one-time activation, 2 - always enabled": 2,
"Is it worth displaying the status bar only when players are in the safe zone or have building privilege?": true,
"Is it worth displaying the status bar at a 0 balance?": true,
"Is it worth displaying the status bar without permission?": true,
"Value after which text will be displayed instead of balance": 1000000000.0,
"List of language keys for creating language files": [
"en"
],
"The list of economy plugins for displaying the balance bar. Note: After modifying hooks, do not forget to toggle hook generation": [
{
"Plugin's name": "Economics",
"Is it worth enabling the plugin for display?": true,
"Language key for the main text": "BarEconomics",
"Balance format": "${0}",
"Language key for the subtext when the balance is high": "BarEconomicsOverLimit",
"API method for retrieving the balance": "Balance",
"Hook that triggers on balance update": "OnEconomicsBalanceUpdated",
"List of argument types in the hook in order": [
"string",
"double"
],
"BarSettings": {
"Order": 20,
"Height": 26,
"BackgroundColor(HEX or RGBA)": "#6375B3",
"BackgroundTransparency": 0.8,
"BackgroundMaterial(leave empty to disable)": "",
"ImageUrl": "https://i.imgur.com/jKeUqSD.png",
"ImageLocal(leave empty to use URL)": "BalanceBar_Default",
"ImageSprite(leave empty to use local or URL)": "",
"IsRawImage": false,
"ImageColor": "#A1DBE6",
"ImageTransparency": 1.0,
"ImageOutlineColor": "0.1 0.3 0.8 0.9",
"ImageOutlineTransparency": 1.0,
"ImageOutlineDistance(leave empty to disable). Example '0.75 0.75'": "",
"TextSize": 12,
"TextColor": "#FFFFFF",
"TextTransparency": 1.0,
"TextFont(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
"TextOffsetHorizontal": 0,
"TextOutlineColor": "#000000",
"TextOutlineTransparency": 1.0,
"TextOutlineDistance": "",
"SubTextSize": 12,
"SubTextColor": "#FFFFFF",
"SubTextTransparency": 1.0,
"SubTextFont": "RobotoCondensed-Bold.ttf",
"SubTextOutlineColor": "0.5 0.6 0.7 0.5",
"SubTextOutlineTransparency": 1.0,
"SubTextOutlineDistance": ""
}
},
{
"Plugin's name": "ServerRewards",
"Is it worth enabling the plugin for display?": true,
"Language key for the main text": "BarServerRewards",
"Balance format": "{0} RP",
"Language key for the subtext when the balance is high": "BarServerRewardsOverLimit",
"API method for retrieving the balance": "CheckPoints",
"Hook that triggers on balance update": "OnPointsUpdated",
"List of argument types in the hook in order": [
"ulong",
"int"
],
"BarSettings": {
"Order": 20,
"Height": 26,
"BackgroundColor(HEX or RGBA)": "#6375B3",
"BackgroundTransparency": 0.8,
"BackgroundMaterial(leave empty to disable)": "",
"ImageUrl": "https://i.imgur.com/jKeUqSD.png",
"ImageLocal(leave empty to use URL)": "BalanceBar_Default",
"ImageSprite(leave empty to use local or URL)": "",
"IsRawImage": false,
"ImageColor": "#A1DBE6",
"ImageTransparency": 1.0,
"ImageOutlineColor": "0.1 0.3 0.8 0.9",
"ImageOutlineTransparency": 1.0,
"ImageOutlineDistance(leave empty to disable). Example '0.75 0.75'": "",
"TextSize": 12,
"TextColor": "#FFFFFF",
"TextTransparency": 1.0,
"TextFont(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
"TextOffsetHorizontal": 0,
"TextOutlineColor": "#000000",
"TextOutlineTransparency": 1.0,
"TextOutlineDistance": "",
"SubTextSize": 12,
"SubTextColor": "#FFFFFF",
"SubTextTransparency": 1.0,
"SubTextFont": "RobotoCondensed-Bold.ttf",
"SubTextOutlineColor": "0.5 0.6 0.7 0.5",
"SubTextOutlineTransparency": 1.0,
"SubTextOutlineDistance": ""
}
},
{
"Plugin's name": "BankSystem",
"Is it worth enabling the plugin for display?": true,
"Language key for the main text": "BarBankSystem",
"Balance format": "${0}",
"Language key for the subtext when the balance is high": "BarBankSystemOverLimit",
"API method for retrieving the balance": "Balance",
"Hook that triggers on balance update": "OnBalanceChanged",
"List of argument types in the hook in order": [
"ulong",
"int"
],
"BarSettings": {
"Order": 20,
"Height": 26,
"BackgroundColor(HEX or RGBA)": "#6375B3",
"BackgroundTransparency": 0.8,
"BackgroundMaterial(leave empty to disable)": "",
"ImageUrl": "https://i.imgur.com/jKeUqSD.png",
"ImageLocal(leave empty to use URL)": "BalanceBar_Default",
"ImageSprite(leave empty to use local or URL)": "",
"IsRawImage": false,
"ImageColor": "#A1DBE6",
"ImageTransparency": 1.0,
"ImageOutlineColor": "0.1 0.3 0.8 0.9",
"ImageOutlineTransparency": 1.0,
"ImageOutlineDistance(leave empty to disable). Example '0.75 0.75'": "",
"TextSize": 12,
"TextColor": "#FFFFFF",
"TextTransparency": 1.0,
"TextFont(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
"TextOffsetHorizontal": 0,
"TextOutlineColor": "#000000",
"TextOutlineTransparency": 1.0,
"TextOutlineDistance": "",
"SubTextSize": 12,
"SubTextColor": "#FFFFFF",
"SubTextTransparency": 1.0,
"SubTextFont": "RobotoCondensed-Bold.ttf",
"SubTextOutlineColor": "0.5 0.6 0.7 0.5",
"SubTextOutlineTransparency": 1.0,
"SubTextOutlineDistance": ""
}
},
{
"Plugin's name": "IQEconomic",
"Is it worth enabling the plugin for display?": true,
"Language key for the main text": "BarIQEconomic",
"Balance format": "${0}",
"Language key for the subtext when the balance is high": "BarIQEconomicOverLimit",
"API method for retrieving the balance": "API_GET_BALANCE",
"Hook that triggers on balance update": "OnBalanceUpdated",
"List of argument types in the hook in order": [
"BasePlayer",
"int"
],
"BarSettings": {
"Order": 20,
"Height": 26,
"BackgroundColor(HEX or RGBA)": "#6375B3",
"BackgroundTransparency": 0.8,
"BackgroundMaterial(leave empty to disable)": "",
"ImageUrl": "https://i.imgur.com/jKeUqSD.png",
"ImageLocal(leave empty to use URL)": "BalanceBar_Default",
"ImageSprite(leave empty to use local or URL)": "",
"IsRawImage": false,
"ImageColor": "#A1DBE6",
"ImageTransparency": 1.0,
"ImageOutlineColor": "0.1 0.3 0.8 0.9",
"ImageOutlineTransparency": 1.0,
"ImageOutlineDistance(leave empty to disable). Example '0.75 0.75'": "",
"TextSize": 12,
"TextColor": "#FFFFFF",
"TextTransparency": 1.0,
"TextFont(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
"TextOffsetHorizontal": 0,
"TextOutlineColor": "#000000",
"TextOutlineTransparency": 1.0,
"TextOutlineDistance": "",
"SubTextSize": 12,
"SubTextColor": "#FFFFFF",
"SubTextTransparency": 1.0,
"SubTextFont": "RobotoCondensed-Bold.ttf",
"SubTextOutlineColor": "0.5 0.6 0.7 0.5",
"SubTextOutlineTransparency": 1.0,
"SubTextOutlineDistance": ""
}
}
],
"Version": {
"Major": 0,
"Minor": 1,
"Patch": 8
}
}
EN: { "CmdMain": "Available commands:\n\n<color=#D1CBCB>/balances</color> <color=#D1AB9A>show *seconds*(optional)</color> - Temporarily display the balance bar with an optional duration(1-10 seconds)\n<color=#D1CBCB>/balances</color> <color=#D1AB9A>toggle</color> - Toggle the balance bar display\n<color=#D1CBCB>/balances</color> <color=#D1AB9A>ignore</color> - Toggle ignoring balance bar display zones\n\n--------------------------------------------------", "CmdDisplayEnabled": "Balance bar display enabled!", "CmdDisplayDisabled": "Balance bar display disabled!", "CmdIgnoreZonesEnabled": "Ignoring balance bar display zones enabled!", "CmdIgnoreZonesDisabled": "Ignoring balance bar display zones disabled!", "BarEconomics": "Balance", "BarEconomicsOverLimit": "> $1kkk", "BarServerRewards": "Points", "BarServerRewardsOverLimit": "> 1kkk RP", "BarBankSystem": "Balance", "BarBankSystemOverLimit": "> $1kkk", "BarIQEconomic": "Balance", "BarIQEconomicOverLimit": "> $1kkk" } RU: { "CmdMain": "Доступные команды:\n\n<color=#D1CBCB>/balances</color> <color=#D1AB9A>show *секунды*(опционально)</color> - Временно отобразить баланс бар с возможностью указать время отображения(1-10 секунд)\n<color=#D1CBCB>/balances</color> <color=#D1AB9A>toggle</color> - Переключить отображение баланс бара\n<color=#D1CBCB>/balances</color> <color=#D1AB9A>ignore</color> - Переключить игнорирование зон отображения баланс бара\n\n--------------------------------------------------", "CmdDisplayEnabled": "Отображение баланс бара включено!", "CmdDisplayDisabled": "Отображение баланс бара выключено!", "CmdIgnoreZonesEnabled": "Игнорирование зон отображения баланс бара включено!", "CmdIgnoreZonesDisabled": "Игнорирование зон отображения баланс бара выключено!", "BarEconomics": "Баланс", "BarEconomicsOverLimit": "> $1 млрд", "BarServerRewards": "Очки", "BarServerRewardsOverLimit": "> 1 млрд RP", "BarBankSystem": "Баланс", "BarBankSystemOverLimit": "> $1 млрд", "BarIQEconomic": "Баланс", "BarIQEconomicOverLimit": "> $1 млрд" }
- show *seconds*(optional) - Temporarily display the balance bar with an optional duration(1-10 seconds) ;
- toggle - Toggle the balance bar display;
- ignore - Toggle ignoring balance bar display zones.
Example:
- /balances show 5
- /balances toggle
- /balances ignore
