Jump to content

How to set sprite

Closed 0.1.1 0.1.2

JimDeadlock
JimDeadlock

Posted

I was wondering how to set this config:

Status. Image - Sprite(empty to use image from URL)

Am I correct in thinking that sprites are the in-game icons? I tried to set this as "explosive.timed" or ":explosive.timed:" but it doesn't seem to work.

 

I also have players asking if there's a way to toggle the bar on/off - they say it overlaps the crafting bar and also it stays on when HUD is switched off which interferes with their screenshots. Just a suggestion for the features wish list.

  • Like 1
IIIaKa

Posted (edited)

If you want to use item icons, it is better to use ImageLibrary. Set "Status.Image - URL" to the short name of the item(explosive.timed). Set "Status.Image - Is raw image" to true.

List of aviable Sprites: https://github.com/OrangeWulf/Rust-Docs/blob/master/Extended/UI.md#imagesicons

In terms of personalizing the bar's shutdown, I believe it is possible. I will try to add this feature in the next update.

In regards to the crafting bar overlay, could you please ask players to give more information about it, and what they are crafting?

image.png.a8fdd8abb8757f4e4d81ddedd71cfc4a.png

As for displaying the bar when the HUD is turned off, I've taken note of that. I'll look into what can be done about it.

Thank you for reaching out. Feel free to ask any additional questions or suggest further additions as well.

Edited by IIIaKa
  • Like 1
JimDeadlock

Posted

It's not the crafting countdown that's the problem, it's the confirmation message bar. So if you craft lots of gunpowder for example you'll see this:

 

Screenshot from 2023-12-20 05-32-59.png

  • Like 1
IIIaKa

Posted

Indeed, as I understand it, the plugin does not track the addition of crafted items. I will do my best to address this as soon as possible. Thanks again 🙂

  • Like 1
JimDeadlock

Posted

I tried your suggestion for the icon. My config looks like this:

  "Status. Image - URL": "explosive.timed",
  "Status. Image - Sprite(empty to use image from URL)": "",
  "Status. Image - Is raw image": true,
  "Status. Image - Color": "#0370A4",

But it results in a blank icon, see below. I also tried "explosion.png" and "assets/icons/explosion.png" for the URL (taken from the link you gave) but it's still blank. I do have the ImageLibrary plugin installed and running.

 

Screenshot from 2023-12-20 06-28-57.png

IIIaKa

Posted

Please try updating both plugins. I've done everything except for displaying the bar when the in-game HUD is turned off.

  • Like 1
IIIaKa

Posted

Changed Status from Pending to Closed

Changed Fixed In to 0.1.2

JimDeadlock

Posted

The sprite icon was working fine previously but strangely it has gone blank again, even after server restarts. Perhaps it has something to do with the recent AdvancedStatus updates?
 

"Status. Image - URL": "explosive.timed",
"Status. Image - Sprite(empty to use image from URL)": "",

 

IIIaKa

Posted

Hi. You set Sprite to URL 😀
 

"Status. Image - URL": "",
"Status. Image - Sprite(empty to use image from URL)": "explosive.timed",

 

IIIaKa

Posted (edited)

It looks like you meant the item icon.

Edited by IIIaKa
IIIaKa

Posted (edited)

Most likely, this is related to the ImageLibrary, as another plugin of mine also does not display the item icon.
https://i.imgur.com/wgsO9z3.png

Edited by IIIaKa
IIIaKa

Posted (edited)

Try to use this URL for now: https://i.imgur.com/0ylCRzn.png
P.S. You can find items icon in the Rust (game) directory:
***\Steam\steamapps\common\Rust\Bundles\items

Edited by IIIaKa
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

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.