











PopUp API
FREE
Sold by: ThePitereqPopUp API streamlines notifications into one minimalist plugin, particularly handy during player inventory actions when the chat is hidden.
Pop-ups are fully customizable, allowing for infinite designs to be created.
Please note that the ImageLibrary plugin is only required if you intend to use images in your pop-ups.
- Description
- Reviews (2)
- Version History
- Discussions (0)
- Setup
- Product Enquiry
Description
Description
RUST Plugin Test Server
TEST MY PLUGINS THERE!
connect play.thepitereq.ovh:28050
PopUp API streamlines notifications into one minimalist plugin, particularly handy during player inventory actions when the chat is hidden.
Pop-ups are fully customizable, allowing for infinite designs to be created.
Please note that the ImageLibrary plugin is only required if you intend to use images in your pop-ups.
- You can generate an infinite number of customized pop-ups and display them to players using the built-in command.
- The PopUp API supports detailed customization, allowing you to add multiple panel/image details to your pop-up background.
- You can create pop-up presets within your plugins by hooking the function to generate a new preset with a simple JObject hook.
- showpopup <userId> <configName> <time> <fontSize> “<text>” – Show’s pop-up with set preset to desired player.
- showpopup * <configName> <time> <fontSize> “<text>” – Show’s pop-up with set preset to all players.
How to create presets?
Creating presets is very easy.
You just need to know basics of RUST UI.
Let’s start from the beginning.
Anchor Position
It’s a position on screen where pop-up will be hooked.
It’s based on 2 values in one string. Example: “0.5 1”
Values are numbers from 0 to 1.
First one is the width position of the anchor.
Width is calculated from left to right.
The second one is the height position of the anchor.
Height is calculated from the bottom to the top.
In our example, our pop-up is anchored to the middle-top of the screen.
Value “0 0” would be bottom-right, and “1 1” would be top-left.
Panel Parent
Each UI have their parent.
Based on that, it will know how “deep” it needs to be displayed.
Sometimes we want pop-up to be shown in inventory, some of them not.
Here is a small list of valid values with addition of RUST screen UIs. Indexes are from top to bottom.
- Overall
- > RUST Chat
- Overlay
- Hud.Menu
- > RUST Inventory
- Hud
- Under
Panel Family Name
It’s a really basic config value.
If you don’t want your different pop-ups to overlap if they are in the same position, make the family name the same.
Like if you want to create the pop-up on the middle top, keep the family name “Legacy”, it will keep pop-ups remove if new one will show up there.
Text/Background Position
Basic RUST UI scale 1.0 is made on 1280×720 resolution.
Position is just an offset from your previously set anchor.
It’s based on 2 values in one string. Example: “-180 -250”
First value is width position, second is height position. Like in anchor option.
For example, if you set Min. Value to “-200 -100” and Max. Value to “200 0” and if we will take the anchor of “0.5 1” our UI will be the size of 400×100 proportionally scaled to your resolution from 1280×720.
Text Anchor
These values are how text is positioned on your pop-up.
A full list of anchors is available on Unity Docs HERE!
Available Fonts
Unfortunatelly RUST Fonts are limited to 4 for now. Here’s a full list of them:
- DroidSansMono.ttf
- PermanentMarker.ttf
- RobotoCondensed-Bold.ttf
- RobotoCondensed-Regular.ttf
The rest options should be easy to configure. Just test them! ^^
PopUp API 2.0
void ShowPopUp(BasePlayer player, string panelName, string text, int fontSize = 16, float time = 10f)
#Shows pop-up in new 2.0 format. EXAMPLE USAGE:
PopUpAPI.Call(“ShowPopUp”, player, “Market”, Lang(“MyLangMessage”, player.UserIDString), 20, 15f);
PopUp API
void API_ShowPopup(BasePlayer player, string text, float time = 10f, string parent = “Hud.Menu”, int fontSize = 25)
#(Deprecated) Shows pop-up in old 1.0 format. For older plugins.
Creating PopUp Schemas
View the default configuration by clicking here!
Reviews (2)
2 reviews for PopUp API
Only logged in customers who have purchased this product may leave a review.
Version History
- Added Added font size and text display time config override.
- Added Added command pop-up broadcast. To make it work just replace userId with *.
- Added Fixed problem with not disappearing legacy pop-ups.
- Updated Whole plugin rewrite.
- Added Added full pop-up customization.
- Added Added pop-up styles.
- Added Added pop-up call command.
- Added Added option to add pop-up presets by other plugins.
- Updated Updated plugin filename.
Discussions (0)
Setup
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)
strand –
First review. Loving this plugin once I worked out how to call it from other plugins.
I like the image with text overlay popping up mid screen as it looks great for announcing events with a themed background image.
Is there any possibility of support for animated gif this would take it to a whole new level of interaction.
Thank you for making this freely available and supporting the community.
strand –
First review. Loving this plugin once I worked out how to call it from other plugins.
I like the image with text overlay popping up mid screen as it looks great for announcing events with a themed background image.
Is there any possibility of support for animated gif this would take it to a whole new level of interaction.
Thank you for making this freely available and supporting the community.