Retentive state button
Posted: 31 Dec 2020, 01:52
Using your StateButton example, I created a state button to select between two audio sources. It works fine but the problem I have is that it always defaults to the "off" state. For example, if I press the button so it's in the "on" state and then change pages (such as Main) and then return to the original page, the button will be in the "off" state.
Is there a way to make the State Button retentive so the button will remain in the state it was in when returning to the page?
I'm trying to accomplish this with StoreGlobalVar and GetGlobalVar but am a little confused how to use them. Do you have an example?
Is there a way to make the State Button retentive so the button will remain in the state it was in when returning to the page?
I'm trying to accomplish this with StoreGlobalVar and GetGlobalVar but am a little confused how to use them. Do you have an example?