MQ2EQBC Mod for window mode
Posted: Mon Apr 01, 2019 6:02 am
Would like to see this mod pushed to public version of MQ2EQBC.CPP. It restores the MQ2EQBC chat window to work the same way as before the the march 2019 UI changes.
Specific changes are BitON() for resizeborder, minimize and sets the background window and mimic those done for MQ2ChatWnd.cpp.
Here is the complete constructor to make it easier to copy / paste.
Specific changes are BitON() for resizeborder, minimize and sets the background window and mimic those done for MQ2ChatWnd.cpp.
Here is the complete constructor to make it easier to copy / paste.
Code: Select all
CEQBCWnd(CXStr* Template) : CCustomWnd(Template)
{
iCurCommand = -1;
SetWndNotification(CEQBCWnd);
StmlOut = (CStmlWnd *)GetChildItem("CW_ChatOutput");
BitOff(WindowStyle, CWS_TRANSPARENT);
BitOn(WindowStyle, CWS_RESIZEBORDER);
BitOn(WindowStyle, CWS_TITLE);
BitOn(WindowStyle, CWS_MINIMIZE);
BGColor = 0xFF000000;//black background
OutWnd = (CXWnd*)StmlOut;
OutWnd->Clickable = 1;
OutStruct = (_CSIDLWND *)GetChildItem("CW_ChatOutput");
InputBox = (CTextEntryWnd*)GetChildItem("CW_ChatInput");
InputBox->WindowStyle |= 0x800C0;
InputBox->CRNormal |= 0xFFFFFFFF;
CloseOnESC = 0;
InputBox->SetMaxChars(512);
BitOff(WindowStyle, CWS_CLOSE);
// *(unsigned long*)&(((char*)StmlOut)[EQ_CHAT_HISTORY_OFFSET]) = 400;
StmlOut->MaxLines = 400;
};