tModLoader

tModLoader

Not enough ratings
Item Glow Mask Library
   
Award
Favorite
Favorited
Unfavorite
Mod Features: Library
Mod Side: Both
tModLoader Version: 1.4.4
File Size
Posted
13.579 KB
Sep 10 @ 7:51am
1 Change Note ( view )

Subscribe to download
Item Glow Mask Library

Description
This simple library mod allows modders to add custom item glow textures to the items they wanna add without all the hustle.

Most modded items rely on adding new player layers and item sprite layers in order to add glow masks, which isn't exactly efficient.

This mod edits TextureAssets.GlowMask and Item.glowMask to allow the addition of modded glow textures. This also means that it uses the VANILLA glow mask rendering code for both consistency and compatibility.

How to use?

In your build.txt file, add this mod to the modReferences list:

displayName = Your Mod
author = Your Name
version = 0.1
modReferences = GlowMask

In your Mod.cs file, add this instruction to the Load() function:

public class YourMod : Mod
{
public override void Load() {
GlowMask.GlowMask.RegisterGlowMasks(this);
}
}

The rest is just adding "_Glow" textures for your items just like you would with projectiles:

YourItemSprite.png
YourItemSprite_Glow.png

Everything else is handled AUTOMATICALLY, you don't need to do anything.

Known issues: Not compatible with animated textures as the vanilla code also doesn't support it.
Originally posted by tModLoader GlowMask:
Developed By n0t_UN_Owen
9 Comments
EYE OF TERROR 17 hours ago 
This mod is currently not working for me (I don't know about everybody else) when I go to load in this mod I get an error message that tmod loader doesn't recognize this mod existing I don't know why. I can't you your other mod Mech Bosses Rework because this mod is required to play it, is there any way you are able to remove the requirement so that Mech Bosses Rework (Which dose work but the Glow mask requirement prevents me and any one else who may have this problem from playing ) can be loaded in, Please and thank you.
N0t_UNowen  [author] Oct 8 @ 4:32pm 
Try reinstalling the mod an re enable it, it fixed the issue for someone so it's worth a shot
Superoof80 Oct 8 @ 3:14pm 
I am having an issue with this mod to, but the only way I find to being able to fix it, is by disabling the mod
Flofi Sep 11 @ 4:43pm 
eh nevermind, it works now. it was honestly strange
N0t_UNowen  [author] Sep 11 @ 4:39pm 
What's the error message?
Flofi Sep 11 @ 4:15pm 
this mod is literally refusing to load as the only one selected
mimig298 Sep 11 @ 12:34am 
we made the same mod lol
Lanugare Sep 10 @ 8:28am 
nicr
professional clown Sep 10 @ 7:53am 
cool:steamthumbsup: