int Model_Setting::GetHtmlScaleFactor() { return GetIntSetting("HTMLSCALE", 100); }
void LoadChatFromXML(PCSIDLWND pWindow) { sprintf(szChatXMLSection,"%s.%s", EQADDR_SERVERNAME, ((PCHARINFO)pCharData)->Name); char Buffer[MAX_STRING] = {0}; int iTemp = 0; GetIntSetting("Top", pWindow->Location.top, 10); GetIntSetting("Bottom", pWindow->Location.bottom, 210); if (pWindow->Location.top == pWindow->Location.bottom) { pWindow->Location.bottom += 200; pISInterface->SetSettingi(XMLFileName,szChatXMLSection, "Bottom", pWindow->Location.bottom); } GetIntSetting("Left", pWindow->Location.left, 10); GetIntSetting("Right", pWindow->Location.right, 410); if (pWindow->Location.left == pWindow->Location.right) { pWindow->Location.right += 400; pISInterface->SetSettingi(XMLFileName,szChatXMLSection, "Right", pWindow->Location.right); } GetIntSetting("Locked", pWindow->Locked, 0); GetIntSetting("Fades", pWindow->Fades,1); GetIntSetting("Delay", pWindow->TimeMouseOver, 2000); GetIntSetting("Duration", pWindow->FadeDuration, 500); GetIntSetting("Alpha", pWindow->Alpha, 255); GetIntSetting("FadeToAlpha", pWindow->FadeToAlpha, 255); GetIntSetting("BGType", pWindow->BGType, 1); GetIntSetting("BGTint.red", pWindow->BGColor.R, 255); GetIntSetting("BGTint.green", pWindow->BGColor.G, 255); GetIntSetting("BGTint.blue", pWindow->BGColor.B, 255); GetIntSetting("AutoScroll", MQChatWnd->AutoScroll, 1); GetIntSetting("FontSize", MQChatWnd->FontSize, 4); MQChatWnd->SetChatFont(MQChatWnd->FontSize); if (!pISInterface->GetSetting(XMLFileName, szChatXMLSection, "Title", Buffer, sizeof(Buffer))) { strcpy(Buffer, "ISXEQ"); pISInterface->SetSetting(XMLFileName, szChatXMLSection, "Title", "ISXEQ"); } SetCXStr(&pWindow->WindowText, Buffer); pISInterface->SaveSettings(XMLFileName); }