Closed kai-nashi closed 1 year ago
Feats:
window.tabbedchat.register
ChatTabSource
sources
game.tabbedchat
ChatTab
sources[ChatTabSource]
handle
show
hide
Message Type
game.tabbedchat.sources
messageTypes[int]
sources[string]
Fix:
Refactor:
Notes:
I'll revert the changes on bindHTML because iterating through every single message doesn't scales well on a world with lots of messages.
Here are the results when checking the Token/Rolls/OOC tabs:
Feats:
window.tabbedchat.register
to easy integrating with Customizable Chat TabsChatTabSource
to easily defining type of messagesources
togame.tabbedchat
. It contains all available sources of messagesChatTab
new propertysources[ChatTabSource]
to validate visibility state of any messagesChatTab
new methodhandle
,show
,hide
to set message visibility.handle
is just helper for callingshow
andhide
depending on tab settingsMessage Type
now depends ongame.tabbedchat.sources
messageTypes[int]
has been removed.sources[string]
has been add. Compatibility with old version of settings is saved.Fix:
Refactor:
Notes: