How do I disable this button? I’ve tried everything. Setting time vars, Coherent SET_TIME, etc. etc.
I want to turn it off externally.
Ah ok my bad.
Have a look at Weather.js and WeatherEditionMenu.js, you can trace how we handle this toggle button with the Coherent debugger.
It’s not directly mapped to a listener event.
Enabling it will trigger a SET_TIME_LOCAL_TO_SYSTEM_TIME call
And it’s enabled/disabled automatically, based on the data received with the ON_GAME_TIME_UPDATED callback.
So any forced time change (SET_LOCAL_TIME for example) will disable the toggle button, and SET_TIME_LOCAL_TO_SYSTEM_TIME will set it back on.
I hope this helps.
Regards,
Sylvain
1 Like
