[Client] Show selected object's refNum & mpNum in console window title

This allows for much easier debugging of all objects and actors.
This commit is contained in:
David Cernat 2018-05-11 00:46:24 +03:00
parent 12727b66ea
commit 57b791ea2a

View file

@ -426,7 +426,18 @@ namespace MWGui
}
else
{
setTitle("#{sConsoleTitle} (" + object.getCellRef().getRefId() + ")");
/*
Start of tes3mp change (major)
Display the selected object's refNumIndex and mpNum alongside its refId in the
title of the console window, for easier debugging of almost everything
*/
setTitle("#{sConsoleTitle} (" + object.getCellRef().getRefId() + ", " +
std::to_string(object.getCellRef().getRefNum().mIndex) + ", " +
std::to_string(object.getCellRef().getMpNum()) + ")");
/*
End of tes3mp change (major)
*/
mPtr = object;
}
// User clicked on an object. Restore focus to the console command line.