Force off Real Time

How do I disable this button? I’ve tried everything. Setting time vars, Coherent SET_TIME, etc. etc.

Hello @Tailh00k

Don’t you have live weather selected by any chance?

Regards,
Sylvain

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