tModLoader

tModLoader

174 个评价
Tooltip Icon
2
3
2
   
奖励
收藏
已收藏
取消收藏
模组功能: 视效调整
模组端: 客户端
tModLoader版本: 1.4.3, 1.4.4
文件大小
发表于
更新日期
72.275 KB
10 月 7 日 上午 5:11
10 月 17 日 下午 6:47
4 项改动说明 ( 查看 )

订阅以下载
Tooltip Icon

描述
Tooltip Icon

by Nil256

----------------------------------------

This mod adds small icon on the left to each tooltip of items

----------------------------------------

< Mod Call >
You can add your custom tooltip icon.
The icon size is recommended 22px x 22px.

= Adding icon to mod tooltip lines =
void tooltipIcon.Call("AddNormalIcon", string modName, string tooltipLineName, Asset<Texture2D> texture)
Add icon to tooltip line which tooltipLine.Mod is "modName" and tooltipLine.Name is "tooltipLineName".
void tooltipIcon.Call("AddPrefixIcon", string modName, string tooltipLineName, Asset<Texture2D> texture, bool doesSmallerValueBenefitPositiveEffect = false)
Add prefix icon to tooltip line which tooltipLine.Mod is "modName" and tooltipLine.Name is "tooltipLineName".
"+" or "-" will be shown with your icon.
If smaller value is positive effect (like mana use), assign true to "doesSmallerValueBenefitPositiveEffect".
void tooltipIcon.Call("AddFramedIcon", string modName, string tooltipLineName, Asset<Texture2D> texture, Rectangle? frame, Vector2 offset)
Add framed icon to tooltip line which tooltipLine.Mod is "modName" and tooltipLine.Name is "tooltipLineName".
void tooltipIcon.Call("AddCustomIcon", string modName, string tooltipLineName, Action<Item, DrawableTooltipLine, SpriteBatch, Vector2, Color> draw)
Run custom drawing method to tooltip line which tooltipLine.Mod is "modName" and tooltipLine.Name is "tooltipLineName".
Useful for adding icon which is changing depending on conditions.

= Adding icon to vanilla tooltip lines =
void tooltipIcon.Call("AddDamageClassIcon", DamageClass damageClass, Asset<Texture2D>? damageTexture, Asset<Texture2D>? speedTexture, Asset<Texture2D>? knockbackTexture = null, Asset<Texture2D>? critChanceTexture = null)
Add icons for mod damage class to vanilla tooltip lines "Damage", "CritChance", "Speed", "Knockback", "PrefixDamage", "PrefixSpeed", "PrefixCritChance" and "PrefixKnockback".
Default icon will be shown if textures are assigned null.
void tooltipIcon.Call("AddConsumableIcon", Func<Item, DrawableTooltipLine, bool> condition, Asset<Texture2D> texture)
Add icon with condition to vanilla tooltip line "Consumable".
void tooltipIcon.Call("AddEquipableIcon", Func<Item, DrawableTooltipLine, bool> condition, Asset<Texture2D> texture)
Add icon with condition to vanilla tooltip line "Equipable".
void tooltipIcon.Call("AddBuffTimeIcon", Func<Item, DrawableTooltipLine, bool> condition, Asset<Texture2D> texture)
Add icon with condition to vanilla tooltip line "BuffTime".

----------------------------------------

< Release Notes >
- v0.7.1
Fixed the icon of consumable tooltip in teleportation potion.
Adjusted magic speed icon a little.
Added movement speed icon.
Added expert & master icon.
Added journey research icon.
Added a Mod.Call "AddFramedIcon".

- v0.7
Released.
引用自 tModLoader TooltipIcon
Developed By Nil256
15 条留言
ShortMole 10 月 13 日 上午 8:53 
very cool
Lincada_mitologico 10 月 13 日 上午 8:47 
nice
ReaperSUMKA 10 月 12 日 上午 3:33 
it would be good if this were in vanilla game
the evil 10 月 11 日 下午 2:52 
i hope they add icons for popular mod classes like clicker or ki or healer or whatever
センコー 10 月 11 日 上午 11:41 
pls add support for popular moddded damage types :steamthis:
にるにころ (Nil256)  [作者] 10 月 11 日 上午 5:43 
@jilijili
No, but I was torn about that.
jilijili 10 月 11 日 上午 5:37 
Are the icon for magic damage and summon damage reversed?
にるにころ (Nil256)  [作者] 10 月 10 日 下午 6:22 
@Kefke
No, but this mod supports Mod.Call. (That's means other mods can add icon for modded damage class)
Kefke 10 月 10 日 下午 6:06 
Does it have support for any of the popular modded damage types?
Ban 10 月 9 日 上午 8:17 
:1scoreSD: