Tooltip Icon 预览图

泰拉瑞亚 (Terraria)

Tooltip Icon

Visual TweaksClient1.4.31.4.4

最后更新 2026/04/20文件 142.4 KBID 3582340033

模组简介

Tooltip Icon by Nil256 ---------------------------------------- This mod adds small icon on the left to each tooltip of items ---------------------------------------- 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 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 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 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 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 ? damageTexture, Asset ? speedTexture, Asset ? knockbackTexture = null, Asset ? 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 condition, Asset texture) Add icon with condition to vanilla tooltip line "Consumable". void tooltipIcon.Call("AddEquipableIcon", Func condition, Asset texture) Add icon with condition to vanilla tooltip line "Equipable". void tooltipIcon.Call("AddBuffTimeIcon", Func condition, Asset texture) Add icon with condition to vanilla tooltip line "BuffTime". ---------------------------------------- - v0.7.2 Added size prefix icon. - 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. Developed By Nil256

详情图片

条目信息

所属游戏
泰拉瑞亚 (Terraria)
创意工坊 ID
3582340033
文件名
3582340033.bin
文件大小
142.4 KB
最后更新
2026/04/20
内容版本
v1776651426-7a0d0735bb18dc5a
作者与来源
由原作者发布于 Steam 创意工坊。本站不改变署名,作者信息与原始内容请以 Steam 原始页面 为准。