This is how i done it if someone want it lol (it's saving the password in regedit and also checkbox not needed):
Under:
Add:MWidget* pWidget = m_IDLResource.FindWidget("LoginID");
Now under this ^MWidget* pWidget2 = m_IDLResource.FindWidget("LoginPassword");
You will see:
Replace all the if with:if(pWidget)
Go to:if(pWidget)
{
char buffer[256];
char buffer2[256];
if (ZGetApplication()->GetSystemValue("LoginID", buffer) && ZGetApplication()->GetSystemValue("LoginPassword", buffer2 ) )
pWidget->SetText(buffer);
pWidget2->SetText(buffer2);
}
Replace all the void with this one:void ZGameInterface::OnLoginDestroy(void)
Have fun guys :Pvoid ZGameInterface::OnLoginDestroy(void)
{
ShowWidget("Login", false);
MWidget* pWidget = m_IDLResource.FindWidget("LoginID");
MWidget* pWidget2 = m_IDLResource.FindWidget("LoginPassword");
if(pWidget)
{
ZGetApplication()->SetSystemValue("LoginID", pWidget->GetText());
ZGetApplication()->SetSystemValue("LoginPassword", pWidget2->GetText());
if ( m_pBackground)
m_pBackground->SetScene(LOGIN_SCENE_FALLDOWN);
}






