LoafWF-TitleAPI icon

TitleAPI

Allows Mod Developers to register their own Titles!

By LoafWF
Last updated a month ago
Total downloads 29857
Total rating 4 
Categories Libraries Client Side
Dependency string LoafWF-TitleAPI-1.0.5
Dependants 17 other packages depend on this package

This mod requires the following mods to function

NotNet-GDWeave-2.0.12 icon
NotNet-GDWeave

Mod loader & runtime script patching for Godot

Preferred version: 2.0.12

README

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