
Mod Name Tooltip
Show which mod added an item on the tooltip, see which mod added a NPC on the HUD.
查看大图[size=6][b]Mod Name Tooltip[/b][/size]
Yes this is named after the minecraft mod and does the same thing.
[size=5][b]Tooltip[/b][/size]
Show which mod added a particular item.
This only applies to item tooltips.
[size=5][b]HUD[/b][/size]
Show a small HUD menu that displays the subject name and mod name of a supported subject under your cursor.
This supports:
[list]
[]NPCs[/]
[]Farm Animals[/]
[]Pets[/]
[]Objects[/]
[]Crops/Trees/FruitTrees[/]
[]Buildings (as in farm buildings, not map)[/]
[/list][size=5][b]Installation[/b][/size]
[list=1]
[]Download and install SMAPI.[/]
[]Download this mod and install to the Mods folder.[/]
[/list][size=5][b]Configuration[/b][/size]
[list]
[][font=Courier New]Enable_Tooltip[/font]: Enable mod names in item tooltips[/]
[][font=Courier New]Toggle_Tooltip[/font]: Set a keybinding to enable/disable item tooltips[/]
[][font=Courier New]Enable_HUD[/font]: Enable mod name HUD[/]
[][font=Courier New]Toggle_HUD[/font]: Set a keybinding to enable/disable HUD
[list]
[][font=Courier New]Enable_HUD_NPC[/font]: Enable NPCs on the mod name HUD[/]
[][font=Courier New]Enable_HUD_FarmAnimal[/font]: Enable Farm Animals on the mod name HUD[/]
[][font=Courier New]Enable_HUD_Object[/font]: Enable Objects on the mod name HUD[/]
[][font=Courier New]Enable_HUD_TerrainFeature[/font]: Enable Crops/Trees/FruitTrees on the mod name HUD[/]
[][font=Courier New]Enable_HUD_Building[/font]: Enable Buildings on the mod name HUD[/]
[][font=Courier New]Enable_HUD_Event[/font]: Enable event names on the mod name HUD, shown when you begin an event[/]
[][font=Courier New]Enable_HUD_Location[/font]: Enable location names on the mod name HUD, shown always when no other subject is under the cursor[/]
[/list][/]
[][font=Courier New]Display_ModId[/font]: Instead of the mod name, display the mod id[/]
[][font=Courier New]Display_ModSource[/font]: In addition to the mod name/mod id, show mod source (first update key in the manifest)[/]
[][font=Courier New]Color_SDV[/font]: Hex color code, text color for 'Stardew Valley' in tooltips and HUD[/]
[][font=Courier New]Color_Mod[/font]: Hex color code, text color for mod names in tooltips and HUD[/]
[/list][size=5][b]Configuration[/b][/size]
[list]
[]English[/]
[]简体中文[/]
[]Русский (by [url=https://github.com/ellatuk]ellatuk[/url])
[/list]Translations are welcome, feel free to post separately.
[size=5][b]For Mod Authors[/b][/size]
[size=4][b]C# API[/b][/size]
This mod determines what mod adds a particular item by tracing the content pipeline, making it more accurate than simply deriving a mod id prefix from the item id / NPC name etc.
You can use the [url=https://github.com/Mushymato/ModNameTooltip/blob/main/ModNameTooltip/IModNameAPI.cs]provided API[/url] to fetch this info.
[size=4][b]Providing a Translated Mod Name[/b][/size]
For content patcher, do an edit like this in your content.json
[font=Courier New]{
"Action": "EditData",
"Target": "mushymato.ModNameTooltip/ModNames",
"Entries": {
// need a "mod.name" key in your i18n
"{{ModId}}": "{{i18n: mod.name}}"
}
}[/font]
This asset is a [font=Courier New]Dictionary<string, string>[/font] so C# mods can edit it like this.
[font=Courier New]private void OnAssetRequested(object? sender, AssetRequestedEventArgs e)
{
if (e.Name.IsEquivalentTo("mushymato.ModNameTooltip/ModNames"))
{
e.Edit(
(asset) =>
{
IDictionary<string, string> data = asset.AsDictionary<string, string>().Data;
data[ModManifest.UniqueID] = Helper.Translation.Get("mod.name");
},
AssetEditPriority.Default
);
}
}[/font]
[size=5][b]Mods in Screenshots[/b][/size]
[list]
[][url=https://www.nexusmods.com/stardewvalley/mods/19508]Cornucopia - More Crops[/url][/]
[][url=https://www.nexusmods.com/stardewvalley/mods/9600]Lumisteria Visit Mount Vapius[/url][/]
[][url=https://www.nexusmods.com/stardewvalley/mods/29720]Baubles[/url][/*]
[][url=https://www.nexusmods.com/stardewvalley/mods/39379]Cat Valley(Interface)[/url][/]
[/list]
[url=https://github.com/Mushymato/ModNameTooltip][size=5]Source Code[/size][/url]
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。