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

  • 18.1k
  • 177
  • 37.66 kB

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,
  "Is it worth deleting all unused Zones during initialization?": false,
  "The name of the zone which has no name": "No name zone",
  "Is it worth copying local images for new zones or monuments? Note: If set to true, it may create a lot of unnecessary images": false,
  "Is it worth enabling the bar display for new zones?": true,
  "Is it worth enabling the bar display for new monuments?": true,
  "Default status bar settings for new zones and monuments": {
    "Order": 20,
    "Height": 26,
    "Main_Color(Hex or RGBA)": "#A064A0",
    "Main_Transparency": 0.8,
    "Main_Material": "",
    "Image_Url": "https://i.imgur.com/mn8reWg.png",
    "Image_Local(Leave empty to use Image_Url)": "ZoneStatus_Default",
    "Image_Sprite(Leave empty to use Image_Local or Image_Url)": "",
    "Image_IsRawImage": false,
    "Image_Color(Hex or RGBA)": "#A064A0",
    "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": 1.0,
    "Image_Outline_Distance": "0.75 0.75",
    "Text_Size": 12,
    "Text_Color(Hex or RGBA)": "1 1 1 1",
    "Text_Font(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
    "Text_Offset_Horizontal": 0,
    "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(Leave empty to disable)": "",
    "SubText_Size": 12,
    "SubText_Color(Hex or RGBA)": "1 1 1 1",
    "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": 1.0,
    "SubText_Outline_Distance": "0.75 0.75"
  },
  "Wipe ID": null,
  "Version": {
    "Major": 0,
    "Minor": 1,
    "Patch": 5
  }
}

 

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.5m

Downloads

Total number of downloads.

7k

Customers

Total customers served.

105.3k

Files Sold

Total number of files sold.

2.1m

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.