ML: HotReload fix TextTail

This commit is contained in:
rtw1x1
2026-02-19 18:55:22 +00:00
parent 3f8a664c2c
commit faa8f99dfc
2 changed files with 8 additions and 1 deletions

View File

@@ -1147,7 +1147,7 @@ bool CInstanceBase::RegisterEffect(UINT eEftType, const char* c_szEftAttachBone,
void CInstanceBase::RegisterTitleName(int iIndex, const char * c_szTitleName) void CInstanceBase::RegisterTitleName(int iIndex, const char * c_szTitleName)
{ {
g_TitleNameMap.insert(std::make_pair(iIndex, c_szTitleName)); g_TitleNameMap[iIndex] = c_szTitleName;
} }
D3DXCOLOR __RGBToD3DXColoru(UINT r, UINT g, UINT b) D3DXCOLOR __RGBToD3DXColoru(UINT r, UINT g, UINT b)

View File

@@ -33,6 +33,12 @@ PyObject * chrmgrRegisterTitleName(PyObject* poSelf, PyObject* poArgs)
return Py_BuildNone(); return Py_BuildNone();
} }
PyObject * chrmgrRefreshAllPCTextTail(PyObject* poSelf, PyObject* poArgs)
{
CPythonCharacterManager::Instance().RefreshAllPCTextTail();
return Py_BuildNone();
}
PyObject * chrmgrRegisterNameColor(PyObject* poSelf, PyObject* poArgs) PyObject * chrmgrRegisterNameColor(PyObject* poSelf, PyObject* poArgs)
{ {
int index; int index;
@@ -756,6 +762,7 @@ void initchrmgr()
{ "SetHorseDustGap", chrmgrSetHorseDustGap, METH_VARARGS }, { "SetHorseDustGap", chrmgrSetHorseDustGap, METH_VARARGS },
{ "RegisterTitleName", chrmgrRegisterTitleName, METH_VARARGS }, { "RegisterTitleName", chrmgrRegisterTitleName, METH_VARARGS },
{ "RefreshAllPCTextTail", chrmgrRefreshAllPCTextTail, METH_VARARGS },
{ "RegisterNameColor", chrmgrRegisterNameColor, METH_VARARGS }, { "RegisterNameColor", chrmgrRegisterNameColor, METH_VARARGS },
{ "RegisterTitleColor", chrmgrRegisterTitleColor, METH_VARARGS }, { "RegisterTitleColor", chrmgrRegisterTitleColor, METH_VARARGS },