Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Aaaand what would be really cool but maybe I'm asking to much, is a list of all existing event we could spy on.
What I did find by almost breaking my TAB key in the console, however, were some "connectSignal..." functions, that are interresting.
Take a look at gui.ui.addPlayerChangedSignalListener(). You can take the playerManager and call connectSignal-like functions to add callbacks to the events you need.
I checked, those functions are also available for example in the CharacterSelectionManager, and allow you to listen on something that I interpreted as "the instanciation of a character object". But note that it is not triggered at each character switch.
A lot of somethingManagers, like SceneInstanceManager, UpgradeManager,... , accessible through common.CommonUtils.get..., also have some of these premade functions that let you spy on events. So that's cool.
Now there is a connectSignal() function that I assume is a generic function that would take two arguments, the callback and the event type/name/whatever. But I might be wrong, and since we don't have the exact prototype of the function I cannot really check. I guess I'll do some more digging
I'll post more if I find anything
Ultimately, for now, my goal is to find a way to trigger my own script on a character change. If anyone's got an idea :)
[EDIT] : I figured out how connectSignal works, I'll directly update the wiki when I compile all this together