[Feature request] Print tranq rotation in chat
lantisnt opened this issue ยท 4 comments
Please reformat the display of rotation to:
- ...
- ...
- ...
...
Backups: ..., ..., ...
To make it more readable.
Please also make the tranq display a slashcommand also instead of button only:
elseif (cmd == 'broadcast') then
TranqRotate:broadcastToRaid()
Example of how i did it locally just for our todays raid:
-- Sends rotation setup to raid channel
function TranqRotate:broadcastToRaid()
local channel = 'RAID'
if (IsInRaid()) then
SendChatMessage('--- ' .. L['BROADCAST_HEADER_TEXT'] .. ' ---', channel)
TranqRotate:displayRotationOneByOne(TranqRotate.rotationTables.rotation, channel)
if (#TranqRotate.rotationTables.backup > 0) then
SendChatMessage(
TranqRotate:buildGroupMessage(L['BROADCAST_BACKUP_PREFIX'] .. ' : ', TranqRotate.rotationTables.backup),
channel
)
end
end
end
-- Display all hunters one bye one
function TranqRotate:displayRotationOneByOne(rotationTable, channel)
local order = 1;
for key, hunt in pairs(rotationTable) do
SendChatMessage(tostring(order)..". "..hunt.name, channel)
order = order + 1;
end
end
Hey,
Thanks for contributing,
I'm unsure about this issue : This is indeed a bit more readable but at the cost of 2-3 lines of text in raid chat. That could be a bit spammy. I need to think about it and ask some more opinions, maybe I could add this as an option later ?