Zone Status

$3.99

Sold by: IIIaKa

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

Categories: , ,

Description

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 “.oxidedataZoneStatus” folder.

 

Zone Status Zone Status

  • 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*oxidedataAdvancedStatusImages);
  • 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.

 

Zone Status Zone Status

{
  "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": 6
  }
}

 

Zone Status Zone Status

[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>redrawOptional. 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.

Reviews

There are no reviews yet.


Only logged in customers who have purchased this product may leave a review.

Version 0.1.6 | Updated March 7, 2025
  • Added Changes related to MonumentsWatcher 0.1.7;
Version 0.1.5 | Updated December 17, 2024
  • Added Initial release

Discussions

There are no discussions yet.

Leave a reply

Your email address will not be published. Required fields are marked *

Plugin FAQ – How do I use this .zip/.7z file I just purchased on my server?

• First, you want to unzip the file. You can do so by just double-clicking it to open, then drag the contents to the desired location (you may need to install an external unzipping software if you don’t already have one such as 7zip or winrar)
• Next you will find either a structure of folders or just the .cs file itself (it’s the actual plugin file itself).
• After that just install the .cs (plugin file) into your …/oxide/plugins/ folder where you will install plugins you ever need to.

Additionally, here’s a great video that easily covers adding a plugin to your server if you need! https://youtu.be/yWC_p97FhQA

• Installation is not included with any products on the site, however, if needed we may assist if you reach out to our support.

Currently all products on Lone.Design will be contained within a zipped file which is the .7z or .zip that you see. I believe windows 10 and up can unzip on its own without 3rd party tools, but in that case, if you’re unfamiliar with zipped files here are 2 programs I recommend to easily unzip zipped files.

Video On How to Zip and Unzip: https://youtu.be/Ep-L3PjBPCk (TechInsider Youtube Channel)

Zipping/Unzipping Tools
Winrar https://www.rarlab.com (I used to use for years, but works great!)
7zip https://www.7-zip.org/a/7z2107-x64.exe (the one I use currently)

Product Enquiry

Please Login to make enquiry about this product