Replies: 2 comments 2 replies
-
Hey! As of right now there is no way to trigger a macro when those buttons are clicked. Simple calendar does emit a hook with the day changes, though nothing in the data returned by that hook indicates if one of the preset time off day buttons was clicked. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Brilliant, thanks. I have a macro that is listening for a change to the
date or time and then runs some calculations to generate a chat card with
information about that day. Seems to be working now, so thanks for your
help.
…On Tue, 15 Nov 2022 at 02:10, vigoren ***@***.***> wrote:
There is yes.
console.log(data.date.hour);
});```
This code needs to be run before you change the date in Simple Calendar, then when you change the date the browser console will show a line with the current hour.
How are you trying to execute the code?
—
Reply to this email directly, view it on GitHub
<#412 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJXOU3W2S5IB5GL4PUF4MP3WILWJZANCNFSM6AAAAAAR7FXBXU>
.
You are receiving this because you authored the thread.Message ID:
<vigoren/foundryvtt-simple-calendar/repo-discussions/412/comments/4142251@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dumb question, but is there a way to trigger a custom macro when the "dawn", "midday", "dusk" or "midnight" buttons are clicked? I currently have a macro that advances the time preset, but would like to save time (and space on my hotbar) by having this trigger when the preset is clicked.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions