Expression ;
CLIENT SRC
UserInterface / Locale_inc.h opens and is inserted into it;
C++:
#define ENABLE_MAP_NAME_ON_APP_TITLE // The map name you are in appears in the title section of the exen.
UserInterface / PythonApplicationModule.cpp opens and has the following code;
C++:
PyObject* appLoop(PyObject* poSelf, PyObject* poArgs)
C++:
#if defined(ENABLE_MAP_NAME_ON_APP_TITLE)
PyObject* appSetText(PyObject* poSelf, PyObject* poArgs)
{
char* szName;
if (!PyTuple_GetString(poArgs, 0, &szName))
return Py_BuildException();
CPythonApplication& rkApp = CPythonApplication::Instance();
rkApp.SetText(szName);
return Py_BuildNone();
}
#endif
C++:
{ "Loop", appLoop, METH_VARARGS },
C++:
#if defined(ENABLE_MAP_NAME_ON_APP_TITLE)
{ "SetText", appSetText, METH_VARARGS },
#endif
C++:
PyModule_AddIntConstant(poModule, "CAMERA_STOP", CPythonApplication::CAMERA_STOP);
C++:
#if defined(ENABLE_MAP_NAME_ON_APP_TITLE)
PyModule_AddIntConstant(poModule, "ENABLE_MAP_NAME_ON_APP_TITLE", 1);
#else
PyModule_AddIntConstant(poModule, "ENABLE_MAP_NAME_ON_APP_TITLE", 0);
#endif
UserInterface / PythonNetworkStream.cpp opens and the following block of code exists;
C++:
bool CPythonNetworkStream::RecvPhasePacket
C++:
case PHASE_GAME: // °ÔÀÓ È¸é
SetGamePhase();
It is added to the bottom;
C++:
#if defined(ENABLE_MAP_NAME_ON_APP_TITLE)
PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "SetApplicationText", Py_BuildValue("()"));
#endif
Python:
def StartGame(self):
self.RefreshInventory()
self.RefreshEquipment()
self.RefreshCharacter()
self.RefreshSkill()
It is added on top;
Python:
if app.ENABLE_MAP_NAME_ON_APP_TITLE:
def SetApplicationText(self):
mapName = background.GetCurrentMapName()
if mapName in localeInfo.MINIMAP_ZONE_NAME_DICT:
app.SetText(localeInfo.APP_TITLE + " - " + localeInfo.MINIMAP_ZONE_NAME_DICT[mapName])
Last edited:


