Honorable Member Owsap 8174 Posted April 18, 2020 Honorable Member Share Posted April 18, 2020 (edited) M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Nothing much, something quite simple but it gives it’s looks for those who are interested in details, so let’s start with it. Here is a visual appearance of the application window. https://metin2.download/picture/CLRymxi0nXJC1H47POwDJ4zBB2SgzOnt/.gif Sorry for the low quality GIF. Here is a bigger view, https://metin2.download/picture/CLRymxi0nXJC1H47POwDJ4zBB2SgzOnt/.gif UserInterface/Locale_inc.h Spoiler /// 1. // Add #define ENABLE_MAP_LOCATION_APP_NAME // Enable map location on the app name UserInterface/PythonApplicationModule.cpp Spoiler /// 1. // Search PyObject* appLoop(PyObject* poSelf, PyObject* poArgs) // Add above #if defined(ENABLE_MAP_LOCATION_APP_NAME) 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 /// 2. // Search { "Loop", appLoop, METH_VARARGS }, // Add above #if defined(ENABLE_MAP_LOCATION_APP_NAME) { "SetText", appSetText, METH_VARARGS }, #endif /// 3. // Search PyModule_AddIntConstant(poModule, "CAMERA_STOP", CPythonApplication::CAMERA_STOP); // Add below #if defined(ENABLE_MAP_LOCATION_APP_NAME) PyModule_AddIntConstant(poModule, "ENABLE_MAP_LOCATION_APP_NAME", 1); #else PyModule_AddIntConstant(poModule, "ENABLE_MAP_LOCATION_APP_NAME", 0); #endif UserInterface/PythonNetworkStream.cpp Spoiler /// 1. // Search @ bool CPythonNetworkStream::RecvPhasePacket case PHASE_GAME: // °ÔÀÓ È¸é SetGamePhase(); // Add below #if defined(ENABLE_MAP_LOCATION_APP_NAME) PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "SetApplicationText", Py_BuildValue("()")); #endif Client/root/game.py Spoiler ''' 1. ''' # Search # Start def StartGame(self): self.RefreshInventory() self.RefreshEquipment() self.RefreshCharacter() self.RefreshSkill() # Add above if app.ENABLE_MAP_LOCATION_APP_NAME: 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]) Edited August 27, 2022 by Metin2 Dev Core X - External 2 Internal 28 1 1 3 1 24 https://owsap.dev/ / https://osf.owsap.dev/ Link to comment Share on other sites More sharing options...
HITRON 695 Posted April 18, 2020 Share Posted April 18, 2020 (edited) Good release but in some languages there is a problem with encoding with this "system". Edited April 18, 2020 by HITRON Link to comment Share on other sites More sharing options...
lordbecvold 5 Posted April 18, 2020 Share Posted April 18, 2020 Nice idea. Link to comment Share on other sites More sharing options...
vedat1089 3 Posted April 19, 2020 Share Posted April 19, 2020 thx 1 Link to comment Share on other sites More sharing options...
Randaron 2 Posted December 29, 2023 Share Posted December 29, 2023 Thanks, I'm going to try it and see how it goes. Link to comment Share on other sites More sharing options...
hero2 0 Posted January 28 Share Posted January 28 Hello, where does the map get its names from? Link to comment Share on other sites More sharing options...
Marcos17 19 Posted January 28 Share Posted January 28 9 hours ago, hero2 said: Hello, where does the map get its names from? localeinfo.py 1 Link to comment Share on other sites More sharing options...
Recommended Posts