TitleAPI
Allows Mod Developers to register their own Titles!
模組介紹 作者原文
Title API | IamKikin & Nowaha
In the WebFishing update 1.09, the developer & contributors got "Titles".
A Title is a text above your head that says "[LAMEDEV]" "[CONTRIBUTOR]" with fun little colors.
Developer Usage
To use TitleAPI within your mods, install the Godot Version from our Github & then just autoload it as TitleAPI.
onready var title_api = get_node_or_null("/root/TitleAPI")
func _ready:
if title_api!= null:
title_api.register_title(STEAM_ID, TITLE, SILENT) # Register your own Title
Example
onready var title_api = get_node_or_null("/root/TitleAPI")
func _ready():
if title_api!= null:
title_api.register_title(76561198123766302, "[color=#913BED][LOAF][/color], false")
onready var title_api = get_node_or_null("/root/TitleAPI")
func _ready():
if title_api!= null:
title_api.register_title(76561199157842765, "[color=#D57EEC][KIKIN][/color], false")
Functions
register_title(STEAM_ID,TITLE,SILENT) # Registers a Title
resolve_name(STEAM_ID,NAME)
deregister_title(STEAM_ID,SILENT) # DeRegisters a Title
get_title(STEAM_ID) - Returns a Players Title
Signals
signal titles_updated # Emits when a title is updated.
Report any bugs to IamKikin on WEBFISHING Modding Community Discord
Mady by IamKikin & Nowaha
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。 WEBFISHING 的模組多數需要 GDWeave 載入器,包內 readme 會說明具體位置。
下面這些內容需要先安裝,否則該模組不會生效: