Hi Moi3dFan,
re:
> One last question, the autosave options only apply when the entire interface is reloaded or if reopen moi3d
I think this is because you need the script code inside of SidePane.htm to run again and currently the code in there is only set to run when the SidePane.htm document is loading.
You'll need to package up the code in SidePane.htm so the timer can be cleared and reset when the settings change.
So for example change the script code in SidePane.htm to something like this (untested):
code:
<script>
var myTimer = false;
function SetAutosaveTimer()
{
if ( myTimer )
clearInterval( myTimer );
... get any value from moi.ini and set up timer
}
// Call SetAutosaveTimer() on SidePane.htm load to get it running.
SetAutosaveTimer();
</script>
Then in some other location like in GeneralOptions.htm when you want to clear and reset the timer, you can call that function inside SidePane.htm like this:
moi.ui.sidePane.SetAutosaveTimer();
- Michael
|