Jump to content
Message added by IIIaKa,

In case you don't have AdvancedStatus or MonumentsWatcher, you should purchase the Bundle. The price is the same, but additionally, you'll receive AdvancedStatus and MonumentsWatcher.
P.S. Any suggestions for improvement will be taken into consideration.

3 Screenshots

  • 17k
  • 145
  • 26.84 kB
 Share

About Zone Status

The plugin displays the current zone or monument to the player in the status bar. Depends on ZoneManager, MonumentsWatcher and AdvancedStatus plugins.

P.S. The settings for each zone or monument are located in the ".\oxide\data\ZoneStatus" folder.

 

Ji0XU4D.png

  • The ability to display the player's current monument;
  • The ability to automatically change monuments names when the player switches languages;
  • The ability to display the player's current zone;
  • The ability to enable or disable visibility for each of the zones;
  • The ability to customize the style for each of the zones(in the data file);
  • 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 and transparency of the image;
  • The abillity to set sprite instead of the image;
  • The ability to customize the colorsize and font of the text.

 

MOEpxmo.png

{
  "Is it worth deleting all saved Zone bars upon detecting a wipe?": true,
  "Is it worth deleting all saved Monument bars upon detecting a wipe?": true,
  "The name of the zone which has no name": "No name zone",
  "The subtext of the zone with no subtext (leave empty to disable)": "",
  "Status. Bar - Default Display": true,
  "Status. Bar - Default Height": 26,
  "Status. Bar - Default Order": 10,
  "Status. Background - Default Color": "#A064A0",
  "Status. Background - Default Transparency": 0.8,
  "Status. Background - Default Material(empty to disable)": "",
  "Status. Image - Default Url": "https://i.imgur.com/mn8reWg.png",
  "Status. Image - Default Local(Leave empty to use Image_Url)": "ZoneStatus_Default",
  "Status. Image - Default Sprite(Leave empty to use Image_Local or Image_Url)": "",
  "Status. Image - Default Is raw image": false,
  "Status. Image - Default Color": "#A064A0",
  "Status. Image - Default Transparency": 1.0,
  "Status. Text - Default Size": 12,
  "Status. Text - Default Color": "#FFFFFF",
  "Status. Text - Default Font(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
  "Status. SubText - Default Size": 12,
  "Status. SubText - Default Color": "#FFFFFF",
  "Status. SubText - Default Font": "RobotoCondensed-Bold.ttf",
  "Wipe ID": null,
  "Version": {
    "Major": 0,
    "Minor": 1,
    "Patch": 4
  }
}

 

bLFQCAu.png

[PluginReference]
private Plugin ZoneStatus;

There is 1 method:

  • UpdateZoneSettings

 

UpdateZoneSettings:
Used to change bar settings for zones from ZoneManager.
To call the UpdateZoneSettings method, you need to pass 3 parameters, 1 of which is optional:

  1. <string>zoneID - The Id of the zone;
  2. <object[]>args - Array of objects to update;
  3. <bool>redraw - Optional. Is it worth redrawing the status bars for players? Defaults to true.

Note: It is not necessary to pass all parameters, but the indices are strictly tied to the parameters.

object[] args = new object[]
{
  true,							//0. Display - Is it worth displaying the status bar for this zone?
  "#A064A0",						//1. Background_Color - Primary HEX color of the status bar.
  0.8f,							//2. Background_Transparency - Opacity of the primary status bar color.
  "https://i.imgur.com/mn8reWg.png",			//3. Image_Url - Url of the status bar icon.
  "ZoneStatus_Default",					//4. Image_Local - Name of the local image for the status bar. Note: The image must exist.(Leave empty to use Image_Url).
  false,						//5. Image_IsRawImage - True for multicolored images, false for monochromatic images.
  "#A064A0",						//6. Image_Color - Color of the status bar icon. For Image_IsRawImage = false.
  1f,							//7. Image_Transparency - Opacity of the status bar icon. For Image_IsRawImage = false.
  "#FFFFFF",						//8. Text_Color - Primary text color.
  "#FFFFFF"						//9. SubText_Color - Subtext color.
};

ZoneStatus?.Call("UpdateZoneSettings", zoneID, args, true);	//Call the API method UpdateZoneSettings with all necessary arguments for updating.

Example with incomplete parameters:

object[] args = new object[]
{
  null,								//0. Display - Skip index 0, as it is reserved for Display.
  "#A064A0",							//1. Background_Color - Primary HEX color of the status bar.
  0.8f,								//2. Background_Transparency - Opacity of the primary status bar color.
  null,								//3. Image_Url - Skip index 3, as it is reserved for Image_Url.
  null,								//4. Image_Local - Skip index 4, as it is reserved for Image_Local.
  false,							//5. Image_IsRawImage - True for multicolored images, false for monochromatic images.
  "#A064A0",							//6. Image_Color - Color of the status bar icon. For Image_IsRawImage = false.
  1f								//7. Image_Transparency - Opacity of the status bar icon. For Image_IsRawImage = false.
};

ZoneStatus?.Call("UpdateZoneSettings", zoneID, args, true);	//Call the API method UpdateZoneSettings with all necessary arguments for updating.

 

  • Like 1
  • Love 1

User Feedback

1.4m

Downloads

Total number of downloads.

6.7k

Customers

Total customers served.

99.9k

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.