tModLoader

tModLoader

1,743 个评价
Wikithis
8
5
12
4
4
2
3
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
206.818 KB
2022 年 7 月 8 日 下午 4:19
8 月 6 日 下午 9:27
53 项改动说明 ( 查看 )

订阅以下载
Wikithis

描述
Github[github.com]

Wikithis allows you to check wiki of selected item/npc in game!
Works for every vanilla item, npc! Also will work with most modded items/NPCs.

Supports multiple different languages.

If you want to add support for this mod, then check lower!

Adding cross-mod support
It's fairly simple to add cross-mod support!

First you SHOULD have wiki for your own mod, that's important!
Then, add some code to your Mod class that invokes Mod.Call on the Wikithis mod. Make sure to follow the message format perfectly.
"AddModURL", Mod mod, string domain, [OPTIONAL] GameCulture.CultureName culture

public override void Load() // You can use any other loading method, doesn't matters. { ModLoader.TryGetMod("Wikithis", out Mod wikithis); if (wikithis != null && !Main.dedServ) { wikithis.Call("AddModURL", this, "https://examplemod.wiki.gg/wiki/{}"); // You can also use call ID for some calls! wikithis.Call(0, this, "https://examplemod.wiki.gg/wiki/{}"); // Alternatively, you can use this instead, if your wiki is on terrariamods.fandom.com //wikithis.Call(0, this, "https://terrariamods.fandom.com/wiki/Example_Mod/{}"); //wikithis.Call("AddModURL", this, "https://terrariamods.fandom.com/wiki/Example_Mod/{}"); // If there wiki on other languages (such as russian, spanish, chinese, etch), then you can also call that: //wikithis.Call(0, this, "https://examplemod.wiki.gg/zh/wiki/{}", GameCulture.CultureName.Chinese) // If you want to replace default icon for your mod, then call this. Icon should be 30x30, either way it will be cut. //wikithis.Call("AddWikiTexture", this, ModContent.Request<Texture2D>(pathToIcon)); //wikithis.Call(3, this, ModContent.Request<Texture2D>(pathToIcon)); } }

Translation Credits
Lin and Listentowind - chinese translation
Project tRu - russian translation
Taco - polish translation
Sea Noodle - italian translation
Henrykado - old brazilian portuguese translation
ppiece of cat - old russian translation
TheBrutalSkull ^-^ - old french translation
Naudiz - old german translation
引用自 tModLoader
Developed By BasicallyIAmFox
热门讨论 查看全部(7)
13
3
2024 年 10 月 30 日 上午 3:26
no clamtitty
NotLe0n
1
3 月 28 日 下午 7:52
w
paicampai
1
2024 年 5 月 28 日 上午 5:50
Search by English name, not by localized name
snowinmars
244 条留言
Dark 10 月 9 日 上午 11:55 
you gave an option to open the browser instead of steam's overlay - thank you

i fucking hate that overlay.
Kanaris 8 月 26 日 下午 7:09 
it's in the keybinds menu like nearly every mod will have. Down the bottom
sonsablar 8 月 26 日 下午 2:23 
dumb question, but how do i open the wiki, it says NONE to press, how to bind it?
Tmrwim 8 月 22 日 下午 3:55 
THIS MOD IS AMAZING
RumikoTheFox 7 月 17 日 下午 11:08 
@in love w/ myself: The code is for if you have your own mod and want people to be able to use WikiThis to go to the wiki pages for your items and so forth. So unless you have a mod you're trying to add support to, the code is irrelevant to you.
in love w/ myself 5 月 29 日 上午 9:43 
I might be stupid, but I struggle with adding wiki URL to the code, I don't get where do I have to modify it
Docta 5 月 25 日 上午 7:18 
this is the most terraria mod ever
wrexxs 4 月 9 日 下午 1:29 
you probably need to bind your keybinds dude
dinoduper 4 月 2 日 下午 3:26 
it is not letting me use the wiki, it just says to press [NONE] to see the wiki
handon 3 月 6 日 上午 8:58 
:steamthumbsup: