2006-06-14, 03:58
in cguipassword::checkmenulock would it be possible to change the case statement for settings from:
pros: it would allow more use for that window.
cons: it would mean you would have to enter the code for each individual settings window. you also wouldn't have custom settings locked, unless you could add a new constant maybe window_settings_custom.
also this check in activatewindow, could it just return if the password is incorrect, instead of setting the return window to home. it seems it was made for skins like pmiii and not allow more customized skins?
i've briefly tested this so there may be side effects i'm not aware of.
i was also hoping there was a way to avoid asking for the password when a script exits? i know if you use master mode you can avoid this so, that's not that big of a deal.
thanks
Quote:case window_settings_menu: // settingsto:
Quote:case window_settings_mypictures:the reason is that window has more uses like show system info in pmiii, unless you intended for that to be locked also.
case window_settings_myprograms:
case window_settings_myweather:
case window_settings_mymusic:
case window_settings_system:
case window_settings_myvideos:
case window_settings_network:
case window_settings_appearance:
pros: it would allow more use for that window.
cons: it would mean you would have to enter the code for each individual settings window. you also wouldn't have custom settings locked, unless you could add a new constant maybe window_settings_custom.
also this check in activatewindow, could it just return if the password is incorrect, instead of setting the return window to home. it seems it was made for skins like pmiii and not allow more customized skins?
Quote: if(!g_passwordmanager.checkmenulock(iwindowid))
{
clog::log(logerror, "mastercode is wrong: window with id %d will not be loaded! enter a correct mastercode!", iwindowid);
if (getactivewindow() == window_home) // delete
return;
iwindowid = window_home; // delete
}
i've briefly tested this so there may be side effects i'm not aware of.
i was also hoping there was a way to avoid asking for the password when a script exits? i know if you use master mode you can avoid this so, that's not that big of a deal.
thanks