Starbound

Starbound

70 ratings
Armour-Hider (quickbar)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
329.249 KB
21 Aug, 2020 @ 7:12am
1 Change Note ( view )

Subscribe to download
Armour-Hider (quickbar)

Description
This is a clientside mod that allows you to to turn your armour/clothing into invisible items almost anytime & anywhere you want (and also undo it at any time).

For anyone that used / seen the item version:
This mod has slightly more features, is clientside and has a UI.


This mod requires quickbar or any mod that has quickbar built-in to function.

Usage/Instructions:

This mod's controlls are self-explanatory, but here's a quick guide just incase:

The UI is seperated into 3 sections:
hide (green)
unhide (red)
options (cyan)

hide & unhide sections are structured the same way, only difference between them is that one makes stuff invisible and the other undoes the former's job.
all the buttons in those 2 correspond to a specific item slot, exeptions being the "all" button which affects all clothing/epp slots, and "armour" which affects head, chest & leg slots but not the epp.

The options section, as you can guess, allows you to slightly change how the other 2 sections operate.


Do's/Don'ts:

>Do NOT use dyes on hidden items, depending the dye and the item that was dyed, unhiding it can have a variety of effects.

>You can safely hide items with custom drawables, but I highly suggest using caution when doing so because I haven't extensively stress-tested this feature.


How it works:

Firstly. The mod backs-up the item's original image editing directives & mask (if a hat) inside an array called "armorhider", which itself is stored as an item parameter inside the item, if this array gets deleted, then Armour-Hider can't unhide the item.

Afterwards. The mod gives the target clothing custom image editing directives, mainly:
"?replace;000000ff=01010100?multiply=FFFFFF00?replace;01010100=000000ff"
in normal mode
or "?multiply=FFFFFF00" in alt mode

Difference between them is that normal mode has something resembling an icon but some clothing won't properly go invisible, Alt mode doesn't have this issue but the item's icon will always be invisible.

And finally. The mod gives hats (and only hats) the following mask:
"/items/armors/decorative/hats/eyepatch/mask.png"


When unhiding, this mod will revert the directives & mask to what it stored in the previously mentioned array and will delete that array, perfectly restoring the clothing back to what it was before hiding.

There are multiple failsafes & safety checks built in to the mod's code to ensure that the mod won't damage/corrupt items.


Compatibility/Issues:

>Adds a clientside ui and attaches it to quickbar, most mods should work with it.

>Both Armour-Hider mods can be safely used together.

>There's no way that I know of to make items that make the player invisible when worn to stop doing so when hidden.

>Using dyes on hidden items is a bad idea since the backup section still states what directives it used to have before hiding. Unhide them first before using dye.


Addons:
[Armour-Hider] Mannequin Shows Hidden Items -> serverside addon that upgrades mannequins to display hidden items.
1 Comments
Raf-raf♀ 28 Aug, 2020 @ 2:31am 
( ͡° ͜ʖ ͡°)