Commit graph

4 commits

Author SHA1 Message Date
e30a97d036 Add new tools to pre-select players
Selecting all present players can be tedious,
especially if they are many or when multiple
messagess need to be sent.

Add two new buttons to the toolbar that allow
pre-filling the form with all connected players,
or all players.

Add translations and icons for those new tools.
2025-05-28 19:06:48 +01:00
16e1eab24b Form: Simplify player filtering
The game.users provides a .players member, listing only non-GM
users.

Use this instead of filtering the list manually.
2025-05-27 22:54:09 +01:00
a091ce93df Allow pre-filling the message dialog
Given that send_message_dialog() fills the form with previous inputs
if there are any, we can also provide data to pre-fill the first form.

This can be useful for preset dialogs, like an "all players" dialog
with all players already input.

Add an initial data parameter to send_message_dialog() and add it
to the message list if it is provided.
2025-05-27 21:36:03 +01:00
c83122548a Initial commit - v0.1.0
This is the initial version of the module, for Foundry v12.

It allows GMs to write and send messages to players via socketlib,
storing an history of those messages, and displaying them on the player's
side, with some potential flair, and some controls in the settings.

This *does not work* with Foundry v13, as the toolbar registration process
has changed.
2025-05-12 21:26:21 +01:00