tModLoader
No hay suficientes valoraciones
Item Glow Mask Library
   
Premio
Favoritos
Favorito
Quitar
Mod Features: Library
Mod Side: Both
tModLoader Version: 1.4.4
Tamaño
Publicado el
13.579 KB
10 SEP a las 7:51 a. m.
1 nota sobre cambios ( ver )

Suscríbete para descargar
Item Glow Mask Library

Descripción
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.
Publicado originalmente por tModLoader GlowMask:
Developed By n0t_UN_Owen
6 comentarios
Flofi 11 SEP a las 4:43 p. m. 
eh nevermind, it works now. it was honestly strange
N0t_UNowen  [autor] 11 SEP a las 4:39 p. m. 
What's the error message?
Flofi 11 SEP a las 4:15 p. m. 
this mod is literally refusing to load as the only one selected
mimig298 11 SEP a las 12:34 a. m. 
we made the same mod lol
Lanugare 10 SEP a las 8:28 a. m. 
nicr
professional clown 10 SEP a las 7:53 a. m. 
cool:steamthumbsup: